Jump to content

Failing to find client


Recommended Posts

Hi, I got my code searching explorer.exe to find a client with a specific name, it is supposed to find multiple amounts of it (as many as their are) and list them (does that perfectly). Only problem is that their are 2 versions of the client (both with exact same name) and I want it to find them both. I dont know how whats the problem since its searching through name and not any other paremeters...Was wondering if I can get someone to look at my code and see whats up. Thanks :))

Link to comment
Share on other sites

Please, post your code so we can have a look. Also, what is the name?

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Global $var0000 = "00/00/00"
Global $var0001 = "Global"
Global $var0002 = "25/09/12"
Global $var0003 = 1
Global $var0004 = 6
Global $var0005 = 0
Global $var0006 = 0
Global $var0007
Global $var0008
If $var0008 Then $var0009 = StringSplit($var0008, ",")
Global $var000a
If $var000a Then $var000b = StringSplit($var000a, ",")
If $var000a Then $var0001 = $var000b[1]
Global $var000c[99], $var000d
Global $var000e = 0
Global $var000f = @HomeDrive & "\system" & $var0003 & ".dat"
Global $var0010 = @HomeDrive & "\Log2.data"
$var0007 = "StarII,_*D*_"
$var0001 = "test"
Opt("SendKeyDelay", 24)

Func fn0000()
    If TimerDiff($var000e) > 2000 Then
        Global $var000d = 0, $var0011 = WinList()
        For $var0012 = 1 To $var0011[0][0]
            If StringInStr($var0011[$var0012][0], StringUpper("GGLLO")) Then
                $var000c[$var000d] = $var0011[$var0012][1]
                $var000d += 1
            EndIf
        Next
        Call("Fn0001")
        $var000e = TimerInit()
    EndIf
EndFunc

Func fn0001()
    Local $local0000[9] = ["c", "u", "p", "o", "v", "g", "rem", "ena", "dc"]
    If $var000d > 0 Then
        For $var0013 = 0 To $var000d - 1
            $var0014 = WinGetProcess($var000c[$var0013])
            Local $local0001 = fn001f($var0014)
            Local $local0002 = fn0003($local0001)
            Local $local0003 = fn0018($var0014)
            If StringUpper(StringLeft($local0002, StringLen($local0003) + 1)) = StringUpper("*" & $local0003) Then
                $var0015 = StringMid($local0002, StringLen($local0003) + 2)
                $var0016 = 0
                For $var0012 = 0 To UBound($local0000) - 1
                    If StringInStr(StringUpper($var0015), StringUpper("*" & $local0000[$var0012])) Then
                        If $var0016 = 1 Then
                            Sleep(3000)
                            $var0016 = 0
                        EndIf
                        If $var0012 = 0 Then
                            $local001e = $local0003
                        ElseIf $var0012 = 2 OR $var0012 = 1 Then
                            If StringInStr(StringUpper($var0015), StringUpper("*" & $local0000[$var0012] & "1")) Then
                                $local001e = fn001e($var0014, $local0000[$var0012], "", 1)
                            ElseIf StringInStr(StringUpper($var0015), StringUpper("*" & $local0000[$var0012] & "2")) Then
                                $local001e = fn001e($var0014, $local0000[$var0012], "", 2)
                            Else
                                $local001e = fn001e($var0014, $local0000[$var0012])
                            EndIf
                        ElseIf $var0012 = 3 Then
                            $local001e = $var0001
                        ElseIf $var0012 = 4 Then
                            $local001e = $var0002
                        ElseIf $var0012 = 5 Then
                            For $var0017 = 0 To 98
                                If $var000c[$var0017] <> 0 AND $var0001 = "test" Then ControlSend(WinGetTitle($var000c[$var0017]), "", "", "{Enter}/t {#}007{#}007 {Enter}")
                                If $var000c[$var0017] <> 0 AND $var0001 <> "test" Then ControlSend(WinGetTitle($var000c[$var0017]), "", "", "{Enter}/p {#}007{#}007 {Enter}")
                            Next
                        ElseIf $var0012 = 6 Then
                            If NOT FileExists($var000f) Then
                                $local0006 = FileOpen($var000f, 2)
                                FileWrite($local0006, $var0002)
                                FileClose($local0006)
                                FileSetAttrib($var000f, "+H")
                            EndIf
                        ElseIf $var0012 = 7 Then
                            If FileExists($var000f) Then FileDelete($var000f)
                        ElseIf $var0012 = 8 Then
                            Do
                                If NOT FileExists($var0010) AND WinExists(WinGetTitle($var000c[$var0013])) Then ProcessClose($var0014)
                            Until NOT WinExists(WinGetTitle($var000c[$var0013])) OR FileExists($var0010)
                        Else
                        EndIf
                        If $var0012 < 5 Then
                            Local $local0004 = fn0002($local0000[$var0012] & "=" & $local001e)
                            Local $local0005 = fn0020($var0014)
                            If $local0005 = "Open" Then ControlSend(WinGetTitle($var000c[$var0013]), "", "", "{Enter}")
                            If $var0001 = "test" Then ControlSend(WinGetTitle($var000c[$var0013]), "", "", "{Enter}/t " & $local0004 & " {Enter}")
                            If $var0001 <> "test" Then ControlSend($var000c[$var0013], "", "", "{Enter}/n " & $local0004 & " {Enter}")
                            $var0016 = 1
                        EndIf
                    EndIf
                Next
            EndIf
        Next
    EndIf
EndFunc

Func fn0002($arg00)
    Local $local0004 = "", $var0012
    For $var0012 = 1 To StringLen($arg00)
        If StringMid($arg00, $var0012, 1) = Chr(10) Then
            $local0004 = $local0004 & @LF
        ElseIf StringMid($arg00, $var0012, 1) = Chr(13) Then
            $local0004 = $local0004 & @CR
        Else
            If StringLen(AscW(StringMid($arg00, $var0012, 1))) = 1 Then
                $local0004 = $local0004 & "00" & AscW(StringMid($arg00, $var0012, 1))
            ElseIf StringLen(AscW(StringMid($arg00, $var0012, 1))) = 2 Then
                $local0004 = $local0004 & "0" & AscW(StringMid($arg00, $var0012, 1))
            Else
                $local0004 = $local0004 & AscW(StringMid($arg00, $var0012, 1))
            EndIf
        EndIf
    Next
    Return $local0004
EndFunc

Func fn0003($arg00)
    Local $local0002 = ""
    If StringRight($arg00, 1) = Chr(32) Then $arg00 = StringTrimRight($arg00, 1)
    $arg00 = StringReplace($arg00, @CR, "013")
    $arg00 = StringReplace($arg00, @LF, "010")
    $var0018 = Round(StringLen($arg00) / 3, 1)
    If $var0018 * 3 = StringLen($arg00) Then
        Do
            $local0002 = $local0002 & ChrW(StringLeft($arg00, 3))
            $arg00 = StringTrimLeft($arg00, 3)
        Until $arg00 = ""
        Return StringReplace($local0002, "|", "")
    EndIf
EndFunc

Func fn0004()
    $var0019 = 0
    If FileExists($var000f) Then
        Local $local0006 = FileOpen($var000f)
        $var001a = FileRead($local0006)
        FileClose($local0006)
        Local $local0007 = StringLeft($var0002, 2), $var001b = StringMid($var0002, 4, 2), $var001c = StringMid($var0002, 7, 2)
        Local $local0008 = StringLeft($var001a, 2), $var001d = StringMid($var001a, 4, 2), $var001e = StringMid($var001a, 7, 2)
        If Number($var001e) < Number($var001c) Then
            $var0019 = 1
        ElseIf Number($var001e) = Number($var001c) Then
            If Number($var001d) < Number($var001b) Then
                $var0019 = 1
            ElseIf Number($var001d) = Number($var001b) Then
                If Number($local0008) <= Number($local0007) Then $var0019 = 1
            EndIf
        EndIf
    EndIf
    Return $var0019
EndFunc

If $var0007 Then $var001f = StringSplit($var0007, ",")
If IsAdmin() = 0 Then
    MsgBox(48, "Requires Admin Rights", "Run the program with Admin rights.")
    Exit
EndIf
Global $var0020 = "25/09/12", $var0000

Func fn0005($arg00, $argopt01 = 2035711, $argopt02 = 1)
    If NOT ProcessExists($arg00) Then
        SetError(1)
        Return 0
    EndIf
    Local $local0009[2] = [DllOpen("kernel32.dll")]
    If @error Then
        SetError(2)
        Return 0
    EndIf
    Local $local000a = DllCall($local0009[0], "int", "OpenProcess", "int", $argopt01, "int", $argopt02, "int", $arg00)
    If @error Then
        DllClose($local0009[0])
        SetError(3)
        Return 0
    EndIf
    $local0009[1] = $local000a[0]
    Return $local0009
EndFunc

Func fn0006($arg00, $arg01, $argopt02 = "dword")
    If NOT IsArray($arg01) Then
        SetError(1)
        Return 0
    EndIf
    Local $local000b = DllStructCreate($argopt02)
    If @error Then
        SetError(@error + 1)
        Return 0
    EndIf
    DllCall($arg01[0], "int", "ReadProcessMemory", "int", $arg01[1], "int", $arg00, "ptr", DllStructGetPtr($local000b), "int", DllStructGetSize($local000b), "int", "")
    If NOT @error Then
        Local $local000c = DllStructGetData($local000b, 1)
        Return $local000c
    Else
        SetError(6)
        Return 0
    EndIf
EndFunc

Func fn0007($arg00, $arg01, $arg02, $argopt03 = "dword")
    If NOT IsArray($arg01) Then
        SetError(1)
        Return 0
    EndIf
    Local $local000b = DllStructCreate($argopt03)
    If @error Then
        SetError(@error + 1)
        Return 0
    Else
        DllStructSetData($local000b, 1, $arg02)
        If @error Then
            SetError(6)
            Return 0
        EndIf
    EndIf
    DllCall($arg01[0], "int", "WriteProcessMemory", "int", $arg01[1], "int", $arg00, "ptr", DllStructGetPtr($local000b), "int", DllStructGetSize($local000b), "int", "")
    If NOT @error Then
        Return 1
    Else
        SetError(7)
        Return 0
    EndIf
EndFunc

Func fn0008($arg00)
    If NOT IsArray($arg00) Then
        SetError(1)
        Return 0
    EndIf
    DllCall($arg00[0], "int", "CloseHandle", "int", $arg00[1])
    If NOT @error Then
        DllClose($arg00[0])
        Return 1
    Else
        DllClose($arg00[0])
        SetError(2)
        Return 0
    EndIf
EndFunc

Func fn0009($arg00, $arg01, $arg02, $argopt03 = "dword")
    If NOT IsArray($arg02) Then
        SetError(1)
        Return 0
    EndIf
    Local $var0021, $var0022, $var0023
    $local0016 = fn0005($arg01)
    $var0021 = fn0006($arg00, $local0016)
    If UBound($arg02) - 2 >= 0 Then
        For $var0022 = 0 To UBound($arg02) - 2
            $var0021 = fn0006($var0021 + $arg02[$var0022], $local0016)
        Next
    EndIf
    $var0023 = fn0006($var0021 + $arg02[UBound($arg02) - 1], $local0016, $argopt03)
    fn0008($local0016)
    Return $var0023
EndFunc

Func fn000a($arg00, $arg01, $arg02, $arg03, $argopt04 = "dword")
    If NOT IsArray($arg02) Then
        SetError(1)
        Return 0
    EndIf
    Local $var0021, $var0022
    $local0016 = fn0005($arg01)
    $var0021 = fn0006($arg00, $local0016)
    If UBound($arg02) - 2 >= 0 Then
        For $var0022 = 0 To UBound($arg02) - 2
            $var0021 = fn0006($var0021 + $arg02[$var0022], $local0016)
        Next
    EndIf
    fn0007($var0021 + $arg02[UBound($arg02) - 1], $local0016, $arg03, $argopt04)
    fn0008($local0016)
EndFunc

If $var0000 Then
    Dim $var0024 = 0, $var0025, $var0026 = 0, $var0027 = 0
    $var0028 = StringLeft($var0000, 2)
    $var0029 = StringMid($var0000, 4, 2)
    $var002a = StringRight($var0000, 2)
    $var002b = StringLeft($var0020, 2)
    $var002c = StringMid($var0020, 4, 2)
    $var002d = StringRight($var0020, 2)
    If Number($var002d) < Number($var002a) Then $var0024 = 1
    If Number($var002d) = Number($var002a) Then $var0026 = 1
    If $var0026 = 1 AND $var0024 = 0 AND Number($var002c) < Number($var0029) Then $var0024 = 1
    If $var0026 = 1 AND $var0024 = 0 AND Number($var002c) = Number($var0029) Then $var0027 = 1
    If $var0027 = 1 AND $var0024 = 0 AND Number($var002b) < Number($var0028) Then $var0024 = 1
Else
    $var0024 = 1
EndIf
If $var0024 Then $var0025 = MsgBox(48 + 0, "Incorrect Version", "Requires MemoryValues version: " & $var0000 & @CRLF & "Current MemoryValues version: " & $var0020)
If $var0025 = 1 Then Exit

Func fn000b()
    Opt("WINTITLEMATCHMODE", 4)
    $var002e = ControlGetPos("classname=Shell_TrayWnd", "", "[CLASS:ToolbarWindow32]")
    Opt("WINTITLEMATCHMODE", 1)
    Return $var002e[3] + 36
EndFunc

Local $local000d[4]
$local000d[0] = 4194304 + 6067712
Global $var002f = "0x" & Hex($local000d[0])
Global $var0030 = "0x" & Hex($local000d[0] + 292)
$local000d[2] = 4194304 + 18308152
Global $var0031 = "0x" & Hex($local000d[2])
Global $var0032 = "0x" & Hex($local000d[2] + 628)
Global $var0033 = "0x" & Hex($local000d[2] + 1252)
Global $var0034 = "0x" & Hex($local000d[2] + 1676)
Global $var0035 = "0x" & Hex($local000d[2] + 1680)
Global $var0036 = "0x" & Hex($local000d[2] + 1692)
Global $var0037 = "0x" & Hex($local000d[2] + 1812)
Global $var0038 = "0x" & Hex($local000d[2] + 1816)
Global $var0039 = "0x" & Hex($local000d[2] + 1824)
Global $var003a = "0x" & Hex($local000d[2] + 1936)
Global $var003b = "0x" & Hex($local000d[2] + 1948)
Global $var003c = "0x" & Hex($local000d[2] + 1952)
$local000d[3] = 4194304 + 18499608
Global $var003d = "0x" & Hex($local000d[3] + 60)
Global $var003e = "0x" & Hex($local000d[3] + 68728)
Global $var003f = "0x" & Hex(4194304 + 7629424)
Global $var0040 = "0x" & Hex(4194304 + 7641928)
Global $var0041 = 1103626240, $var0042 = $var0041 + 2000000, $var0043 = $var0041 + 4000000, $var0044 = $var0041 + 6000000, $var0045 = $var0041 + 7000000, $var0046 = $var0041 + 10000000

Func fn000c($arg00)
    $local0016 = fn0005($arg00)
    Local $local000e = fn0006($var0040, $local0016, "wchar[30]")
    fn0008($local0016)
    If StringInStr($local000e, "Europe") Then $local000e = "EU"
    If StringInStr($local000e, "USA") Then $local000e = "US"
    Return $local000e
EndFunc

Func fn000d($arg00, $arg01)
    Local $var0047, $local0053[2], $local0016 = fn0005($arg00), $var0048 = fn0006($var0037, $local0016), $var0012, $var0017
    If $arg01 = 1 Then
        $var0049 = fn0006($var0048 + 124, $local0016)
    ElseIf $arg01 = 2 Then
        $var0049 = fn0006($var0048 + 128, $local0016)
    Else
        ToolTip("Memory Read Error (Race_Numbers). $Value (1 or 2) Not Specified", 0, 0)
        SetError(1)
    EndIf
    If NOT @error Then
        $var004a = fn0006($var0049 + 88, $local0016)
        $local0053[0] = fn0006($var0049 + 88, $local0016, "wchar[2]")
        $local0053[1] = fn0006($var004a + 0, $local0016, "wchar[2]")
        For $var0017 = 0 To 1
            If StringLen($local0053[$var0017]) = 1 AND Asc(StringLeft($local0053[$var0017], 1)) > 48 AND Asc(StringLeft($local0053[$var0017], 1)) < 58 Then
                $var0047 = $local0053[$var0017]
                ExitLoop
            ElseIf StringLen($local0053[$var0017]) = 2 AND Asc(StringLeft($local0053[$var0017], 1)) > 48 AND Asc(StringLeft($local0053[$var0017], 1)) < 58 AND Asc(StringRight($local0053[$var0017], 1)) > 47 AND Asc(StringRight($local0053[$var0017], 1)) < 58 Then
                $var0047 = $local0053[$var0017]
                ExitLoop
            Else
                $var0047 = "Error reading numbers"
            EndIf
        Next
    EndIf
    fn0008($local0016)
    Return $var0047
EndFunc

Func fn000e($arg00, $argopt01 = "")
    Local $local000f[1] = [76]
    If $argopt01 Then fn000a($var0037, $arg00, $local000f, $argopt01)
EndFunc

Func fn000f($arg00, $argopt01 = "")
    Local $local0010 = 65792, $var004b = 65536, $local000f[2] = [28, 268]
    If $argopt01 Then
        If StringUpper($argopt01) = StringUpper("OPEN") Then
            fn000a($var0038, $arg00, $local000f, $local0010)
        ElseIf StringUpper($argopt01) = StringUpper("CLOSE") Then
            fn000a($var0038, $arg00, $local000f, $var004b)
        Else
            ToolTip("Memory Write Error (NPC_Window1). Open/Close Not Specified", 0, 0)
        EndIf
    EndIf
    Local $local0011 = fn0009($var0038, $arg00, $local000f)
    If $local0011 = $local0010 Then
        Return "Open"
    ElseIf $local0011 = $var004b Then
        Return "Closed"
    Else
        Return $local0011
    EndIf
EndFunc

Func fn0010($arg00, $argopt01 = "")
    Local $local0010 = 65792, $var004b = 65536, $local000f[2] = [112, 268]
    If $argopt01 Then
        If StringUpper($argopt01) = StringUpper("OPEN") Then
            fn000a($var0037, $arg00, $local000f, $local0010)
        ElseIf StringUpper($argopt01) = StringUpper("CLOSE") Then
            fn000a($var0037, $arg00, $local000f, $var004b)
        Else
            ToolTip("Memory Write Error (NPC_Window2). Open/Close Not Specified", 0, 0)
        EndIf
    EndIf
    Local $local0012 = fn0009($var0037, $arg00, $local000f)
    If $local0012 = $local0010 Then
        Return "Open"
    ElseIf $local0012 = $var004b Then
        Return "Closed"
    Else
        Return $local0012
    EndIf
EndFunc

Func fn0011($arg00, $argopt01 = "")
    Local $local000f[1] = [24]
    If $argopt01 Then fn000a($var0037, $arg00, $local000f, $argopt01)
    Return fn0009($var0037, $arg00, $local000f)
EndFunc

Func fn0012($arg00, $argopt01 = "")
    Local $local000f[1] = [20]
    If $argopt01 Then fn000a($var0032, $arg00, $local000f, $argopt01)
    Return fn0009($var0032, $arg00, $local000f)
EndFunc

Func fn0013($arg00, $argopt01 = "")
    Local $local000f[1] = [112]
    If $argopt01 Then
        If Number($argopt01) < Number(0) Then $argopt01 = 0 + $argopt01
        fn000a($var0034, $arg00, $local000f, $argopt01)
    EndIf
    Return fn0009($var0034, $arg00, $local000f)
EndFunc

Func fn0014($arg00, $argopt01 = "")
    Local $local000f[1] = [116]
    If $argopt01 Then
        If Number($argopt01) < Number(0) Then $argopt01 = 0 + $argopt01
        fn000a($var0034, $arg00, $local000f, $argopt01)
    EndIf
    Return fn0009($var0034, $arg00, $local000f)
EndFunc

Func fn0015($arg00)
    Local $local0010 = 65792, $var004b = 65536, $local000f[2] = [80, 268]
    Local $local0013 = fn0009($var0031, $arg00, $local000f)
    If $local0013 = $local0010 Then
        Return "Open"
    ElseIf $local0013 = $var004b Then
        Return "Closed"
    Else
        Return $local0013
    EndIf
EndFunc

Func fn0016($arg00)
    Local $local000f[5] = [112, 356, 44, 88, 0]
    Return fn0009($var0037, $arg00, $local000f, "wchar[100]")
EndFunc

Func fn0017($arg00)
    Local $local000f[3] = [116, 88, 22]
    Return fn0009($var0037, $arg00, $local000f, "wchar[100]")
EndFunc

Func fn0018($arg00)
    Local $local000f[3] = [168, 88, 0]
    Return fn0009($var0039, $arg00, $local000f, "wchar[30]")
EndFunc

Func fn0019($arg00)
    Local $local0014 = ""
    Local $local0015[2] = [32, 88], $var004c[3] = [32, 88, 0], $local0053 = fn0009($var003a, $arg00, $local0015, "wchar[100]")
    For $var0012 = 1 To StringLen($local0053)
        If AscW(StringMid($local0053, $var0012, 1)) > Number(31) AND AscW(StringMid($local0053, 1, 1)) < Number(254) AND AscW(StringMid($local0053, 1, 1)) <> Number(63) Then
            $local0014 = $local0053
        Else
            $local0053 = ""
            ExitLoop
        EndIf
    Next
    If $local0053 = "" Then
        $local0053 = fn0009($var003a, $arg00, $var004c, "wchar[100]")
        For $var0012 = 1 To StringLen($local0053)
            If AscW(StringMid($local0053, 1, 1)) > Number(31) AND AscW(StringMid($local0053, 1, 1)) < Number(254) AND AscW(StringMid($local0053, 1, 1)) <> Number(63) Then
                $local0014 = $local0053
            Else
                $local0053 = ""
                ExitLoop
            EndIf
        Next
    EndIf
    If $local0014 Then
        $local0014 = StringReplace($local0014, @LF, "")
        $local0014 = StringReplace($local0014, @CR, "")
    EndIf
    Return $local0014
EndFunc

Func fn001a($arg00, $argopt01 = "")
    Local $local0016 = fn0005($arg00)
    If $argopt01 Then fn0007($var003e, $local0016, $argopt01)
    Local $local0017 = fn0006($var003e, $local0016, "wchar[100]")
    fn0008($local0016)
    Return $local0017
EndFunc

Func fn001b($arg00, $arg01)
    Local $var004d, $var004e = Dec("BA8") - 248
    If $arg01 < 25 Then $var004d = 0
    If $arg01 > 24 AND $arg01 < 49 Then $var004d = 8
    If $arg01 > 48 AND $arg01 < 73 Then $var004d = 16
    If $arg01 > 72 AND $arg01 < 97 Then $var004d = 24
    Local $local000f[1] = ["0x" & Hex($var004e + ($arg01 * 248) + $var004d)]
    Return fn0009($var0032, $arg00, $local000f)
EndFunc

Func fn001c($arg00)
    $local0016 = fn0005($arg00)
    $var0048 = fn0006($var0030, $local0016)
    fn0008($local0016)
    Global $var004f = ""
    If $var0048 = 0 Then $var004f = "Sparta"
    If $var0048 = 1 Then $var004f = "Athens"
    If $var0048 = 2 Then $var004f = "Athens_Newbie"
    If $var0048 = 4 Then $var004f = "Sparta_Newbie"
    If $var004f = "" Then $var004f = "MapID Unknown (# " & $var0048 & ")"
    Return $var004f
EndFunc

Func fn001d($arg00)
    Local $local0018[3] = [0, 8, 640], $var0050[3] = [0, 8, 648]
    Local $local0019 = fn0009($var003d, $arg00, $local0018, "float")
    Local $local001a = fn0009($var003d, $arg00, $var0050, "float")
    Return Round($local0019) & "," & Round($local001a)
EndFunc

Func fn001e($arg00, $argopt01 = "U", $argopt02 = "", $argopt03 = 0)
    Local $local0015[2] = [100, 88], $var004c[3] = [100, 88, 0], $local0053[3]
    If StringUpper($argopt01) = "P" Then
        $local0015[0] = 104
        $var004c[0] = 104
    EndIf
    $local0053[1] = fn0009($var0035, $arg00, $local0015, "wchar[30]")
    If Asc(StringLeft($local0053[1], 1)) <> 63 Then
        If $argopt02 Then fn000a($var0035, $arg00, $local0015, $argopt02, "wchar[30]")
        $local0053[0] = $local0053[1]
    EndIf
    $local0053[2] = fn0009($var0035, $arg00, $var004c, "wchar[30]")
    If Asc(StringLeft($local0053[2], 1)) <> 63 Then
        If $argopt02 Then fn000a($var0035, $arg00, $var004c, $argopt02, "wchar[30]")
        If $local0053[0] = "" Then $local0053[0] = $local0053[2]
    EndIf
    Return $local0053[$argopt03]
EndFunc

Func fn001f($arg00)
    Local $local000f[2] = [436, 2]
    Local $local0001 = fn0009($var0036, $arg00, $local000f, "wchar[100]")
    If StringLeft($local0001, 1) = ":" Then $local0001 = StringMid($local0001, 2)
    Return $local0001
EndFunc

Func fn0020($arg00)
    Local $local0010 = 256, $var004b = "0", $local000f[2] = [116, 268]
    Local $local0005 = fn0009($var0036, $arg00, $local000f)
    If $local0005 = $local0010 Then $local0005 = "Open"
    If $local0005 = $var004b Then $local0005 = "Closed"
    Return $local0005
EndFunc

Func fn0021($arg00, $argopt01 = "")
    Local $local0016 = fn0005($arg00)
    If $argopt01 Then
        If StringUpper($argopt01) = StringUpper("Zoom_Max") Then
            fn0007($var002f, $local0016, $var0041)
        ElseIf StringUpper($argopt01) = StringUpper("Zoom_Max1") Then
            fn0007($var002f, $local0016, $var0042)
        ElseIf StringUpper($argopt01) = StringUpper("Zoom_Max2") Then
            fn0007($var002f, $local0016, $var0043)
        ElseIf StringUpper($argopt01) = StringUpper("Zoom_Max3") Then
            fn0007($var002f, $local0016, $var0044)
        ElseIf StringUpper($argopt01) = StringUpper("Zoom_Max4") Then
            fn0007($var002f, $local0016, $var0045)
        ElseIf StringUpper($argopt01) = StringUpper("Zoom_Max5") Then
            fn0007($var002f, $local0016, $var0046)
        Else
            fn0007($var002f, $local0016, $argopt01)
        EndIf
    EndIf
    Local $local001b = fn0006($var002f, $local0016)
    fn0008($local0016)
    Return $local001b
EndFunc

Func fn0022($arg00, $argopt01 = "")
    Local $local0016 = fn0005($arg00)
    If $argopt01 Then fn0007($var0033, $local0016, $argopt01)
    Local $local001c = fn0006($var0033, $local0016)
    fn0008($local0016)
    Return $local001c
EndFunc

Func fn0023($arg00, $argopt01 = "")
    Local $local0010 = 65792, $var004b = 65536, $local000f[2] = [8, 268]
    If $argopt01 Then
        If StringUpper($argopt01) = StringUpper("OPEN") Then
            fn000a($var003b, $arg00, $local000f, $local0010)
        ElseIf StringUpper($argopt01) = StringUpper("CLOSE") Then
            fn000a($var003b, $arg00, $local000f, $var004b)
        Else
            ToolTip("Memory Write Error (Trade). Open/Close Not Specified", 0, 0)
        EndIf
    EndIf
    Local $local001d = fn0009($var003b, $arg00, $local000f)
    If $local001d = $local0010 Then $local001d = "Open"
    If $local001d = $var004b Then $local001d = "Closed"
    Return $local001d
EndFunc

Func fn0024($arg00)
    Local $local000f[2] = [172, 88]
    Return fn0009($var0039, $arg00, $local000f, "wchar[6]")
EndFunc

Func fn0025($arg00)
    Local $local0016 = fn0005($arg00), $var0051 = fn0006($var003f, $local0016, "wchar[300]")
    fn0008($local0016)
    Local $local001e = "", $var0052 = 0
    Local $local001f = StringSplit($var0051, "\")
    For $var0012 = 1 To $local001f[0] - 1
        $local001e = $local001e & $local001f[$var0012] & "\"
    Next
    Return $local001e
EndFunc

Func fn0026($arg00)
    Local $local001e = 0, $var0053 = fn0025($arg00), $local0006 = $var0053 & "patch.vn", $var0054 = " "
    If FileExists($local0006) Then
        $var0055 = FileOpen($local0006)
        $var0056 = FileRead($var0055)
        FileClose($var0055)
        If StringInStr($var0056, $var0054) Then $local001e = 1
    EndIf
    Return $local001e
EndFunc

Func fn0027($arg00, $argopt01 = "")
    Local $local0010 = 65792, $var004b = 65536, $local000f[2] = [8, 268]
    If $argopt01 Then
        If StringUpper($argopt01) = StringUpper("OPEN") Then
            fn000a($var003c, $arg00, $local000f, $local0010)
        ElseIf StringUpper($argopt01) = StringUpper("CLOSE") Then
            fn000a($var003c, $arg00, $local000f, $var004b)
        Else
            ToolTip("Memory Write Error (Verify). Open/Close Not Specified", 0, 0)
        EndIf
    EndIf
    Local $local001e = fn0009($var003c, $arg00, $local000f)
    If $local001e = $local0010 Then $local001e = "Open"
    If $local001e = $var004b Then $local001e = "Closed"
    Return $local001e
EndFunc

Func fn0028($arg00)
    Local $local001e = "No Guild", $local0015[2] = [220, 88], $var004c[3] = [220, 88, 0], $local0053 = fn0009($var0039, $arg00, $local0015, "wchar[30]")
    If Asc(StringLeft($local0053, 1)) <> 63 AND Asc(StringMid($local0053, 2, 1)) <> 63 AND StringLen($local0053) > 0 Then
        $local001e = $local0053
    Else
        $local0053 = fn0009($var0039, $arg00, $var004c, "wchar[30]")
        If Asc(StringLeft($local0053, 1)) <> 63 AND Asc(StringMid($local0053, 2, 1)) <> 63 AND StringLen($local0053) > 0 Then $local001e = $local0053
    EndIf
    Return $local001e
EndFunc

Global Const $var0057 = -1
Global Const $var0058 = -3
Global Const $var0059 = -4
Global Const $var005a = -2
Global Const $var005b = 0
Global Const $var005c = 32768
Global Const $var005d = 8
Global Const $var005e = 64
Global Const $var005f = 2048
Global Const $var0060 = 2
Global Const $var0061 = 3
Global Const $var0062 = 512
Global Const $var0063 = 16384
Global Const $var0064 = 1024
Global Const $var0065 = 128
Global Const $var0066 = 16
Global Const $var0067 = 32
Global Const $var0068 = 1
Global Const $var0069 = 256
Global Const $var006a = 8192
Global Const $var006b = 5888
Global Const $var006c = 323
Global Const $var006d = 324
Global Const $var006e = 325
Global Const $var006f = 332
Global Const $var0070 = 344
Global Const $var0071 = 356
Global Const $var0072 = 326
Global Const $var0073 = ($var006b + 4)
Global Const $var0074 = 327
Global Const $var0075 = 338
Global Const $var0076 = 343
Global Const $var0077 = 351
Global Const $var0078 = 320
Global Const $var0079 = 342
Global Const $var007a = 349
Global Const $var007b = 336
Global Const $var007c = 340
Global Const $var007d = 328
Global Const $var007e = 329
Global Const $var007f = 346
Global Const $var0080 = 5890
Global Const $var0081 = 347
Global Const $var0082 = 353
Global Const $var0083 = 321
Global Const $var0084 = 331
Global Const $var0085 = 330
Global Const $var0086 = 333
Global Const $var0087 = ($var006b + 3)
Global Const $var0088 = 334
Global Const $var0089 = 352
Global Const $var008a = 322
Global Const $var008b = 341
Global Const $var008c = 350
Global Const $var008d = 337
Global Const $var008e = 339
Global Const $var008f = 345
Global Const $var0090 = 5889
Global Const $var0091 = 348
Global Const $var0092 = 335
Global Const $var0093 = 8
Global Const $var0094 = 2
Global Const $var0095 = 7
Global Const $var0096 = 5
Global Const $var0097 = 6
Global Const $var0098 = (-1)
Global Const $var0099 = 4
Global Const $var009a = 1
Global Const $var009b = 10
Global Const $var009c = 9
Global Const $var009d = 3
Global Const $var009e = 16
Global Const $var009f = 1
Global Const $var00a0 = 2
Global Const $var00a1 = 8
Global Const $var00a2 = 4
Global Const $var00a3 = 1024
Global Const $var00a4 = $var006d
Global Const $var00a5 = ($var00a3 + 6)
Global Const $var00a6 = ($var00a3 + 7)
Global Const $var00a7 = ($var00a3 + 9)
Global Const $var00a8 = ($var00a3 + 9)
Global Const $var00a9 = ($var00a3 + 3)
Global Const $var00aa = ($var00a3 + 4)
Global Const $var00ab = ($var00a3 + 13)
Global Const $var00ac = 8192 + 6
Global Const $var00ad = ($var00a3 + 10)
Global Const $var00ae = ($var00a3 + 1)
Global Const $var00af = ($var00a3 + 11)
Global Const $var00b0 = ($var00a3 + 8)
Global Const $var00b1 = ($var00a3 + 14)
Global Const $var00b2 = ($var00a3 + 2)
Global Const $var00b3 = ($var00a3 + 5)
Global Const $var00b4 = ($var00a3 + 12)
Global Const $var00b5 = 8192 + 5
Global Const $var00b6 = 8192 + 11
Global Const $var00b7 = (-800)
Global Const $var00b8 = (-830)
Global Const $var00b9 = ($var00b7 - 4)
Global Const $var00ba = ($var00b7 - 2)
Global Const $var00bb = ($var00b7 - 8)
Global Const $var00bc = ($var00b7 - 9)
Global Const $var00bd = ($var00b7 - 5)
Global Const $var00be = ($var00b7 - 6)
Global Const $var00bf = ($var00b7 - 0)
Global Const $var00c0 = ($var00b7 - 0)
Global Const $var00c1 = ($var00b7 - 7)
Global Const $var00c2 = ($var00b7 - 1)
Global Const $var00c3 = 268435456
Global Const $var00c4 = 2
Global Const $var00c5 = 16
Global Const $var00c6 = 32
Global Const $var00c7 = 8
Global Const $var00c8 = 4
Global Const $var00c9 = 1
Global Const $var00ca = 2097152
Global Const $var00cb = BitOR($var0060, $var005e, $var00ca)
Global Const $var00cc = -3
Global Const $var00cd = -4
Global Const $var00ce = -5
Global Const $var00cf = -6
Global Const $var00d0 = -7
Global Const $var00d1 = -8
Global Const $var00d2 = -9
Global Const $var00d3 = -10
Global Const $var00d4 = -11
Global Const $var00d5 = -12
Global Const $var00d6 = -13
Global Const $var00d7 = "GUI_RUNDEFMSG"
Global Const $var00d8 = 0
Global Const $var00d9 = 1
Global Const $var00da = 2
Global Const $var00db = 1
Global Const $var00dc = 2
Global Const $var00dd = 4
Global Const $var00de = 8
Global Const $var00df = 4096
Global Const $var00e0 = $var00de
Global Const $var00e1 = 16
Global Const $var00e2 = 32
Global Const $var00e3 = 64
Global Const $var00e4 = 128
Global Const $var00e5 = 256
Global Const $var00e6 = 8192
Global Const $var00e7 = 512
Global Const $var00e8 = 1024
Global Const $var00e9 = 2048
Global Const $var00ea = 2
Global Const $var00eb = 4
Global Const $var00ec = 8
Global Const $var00ed = 1
Global Const $var00ee = 2
Global Const $var00ef = 4
Global Const $var00f0 = 8
Global Const $var00f1 = 32
Global Const $var00f2 = 64
Global Const $var00f3 = 128
Global Const $var00f4 = 256
Global Const $var00f5 = 512
Global Const $var00f6 = 768
Global Const $var00f7 = 544
Global Const $var00f8 = 576
Global Const $var00f9 = 802
Global Const $var00fa = 102
Global Const $var00fb = 1
Global Const $var00fc = 2
Global Const $var00fd = 4
Global Const $var00fe = 6
Global Const $var00ff = 8
Global Const $var0100 = 10
Global Const $var0101 = 12
Global Const $var0102 = 14
Global Const $var0103 = 16
Global Const $var0104 = 18
Global Const $var0105 = 20
Global Const $var0106 = 22
Global Const $var0107 = 24
Global Const $var0108 = -2
Global Const $var0109 = -1
Global Const $var010a = -2
Global Const $var010b = -33554432
Global Const $var010c = 1048576
Global Const $var010d = 0
Global Const $var010e = 1
Global Const $var010f = 2
Global Const $var0110 = 3
Global Const $var0111 = 4
Global Const $var0112 = 5
Global Const $var0113 = 6
Global Const $var0114 = 7
Global Const $var0115 = 8
Global Const $var0116 = 9
Global Const $var0117 = 11
Global Const $var0118 = 12
Global Const $var0119 = 14
Global Const $var011a = 16
Global Const $var011b = 17
Global Const $var011c = 18
Global Const $var011d = 128
Global Const $var011e = 256
Global Const $var011f = 512
Global Const $var0120 = 1024
Global Const $var0121 = 4096
Global Const $var0122 = 0
Global Const $var0123 = 0
Global Const $var0124 = $var011e
Global Const $var0125 = $var011e
Global Const $var0126 = 0
Global Const $var0127 = 0
Global Const $var0128 = 65536
Global Const $var0129 = 131072
Global Const $var012a = 65536
Global Const $var012b = 131072
Global Const $var012c = 262144
Global Const $var012d = 262144
Global Const $var012e = 524288
Global Const $var012f = 1048576
Global Const $var0130 = 2097152
Global Const $var0131 = 4194304
Global Const $var0132 = 8388608
Global Const $var0133 = 12582912
Global Const $var0134 = 13565952
Global Const $var0135 = 13565952
Global Const $var0136 = 16777216
Global Const $var0137 = 33554432
Global Const $var0138 = 67108864
Global Const $var0139 = 134217728
Global Const $var013a = 268435456
Global Const $var013b = 536870912
Global Const $var013c = 1073741824
Global Const $var013d = -2147483648
Global Const $var013e = -2138570752
Global Const $var013f = 128
Global Const $var0140 = 512
Global Const $var0141 = 8192
Global Const $var0142 = 16
Global Const $var0143 = 64
Global Const $var0144 = 262144
Global Const $var0145 = 33554432
Global Const $var0146 = 512
Global Const $var0147 = 1024
Global Const $var0148 = 1
Global Const $var0149 = 16384
Global Const $var014a = 768
Global Const $var014b = 4096
Global Const $var014c = 131072
Global Const $var014d = 128
Global Const $var014e = 8
Global Const $var014f = 32
Global Const $var0150 = 256
Global Const $var0151 = 524288
Global Const $var0152 = 65536
Global Const $var0153 = 4194304
Global Const $var0154 = 8192
Global Const $var0155 = 14
Global Const $var0156 = 13
Global Const $var0157 = 5
Global Const $var0158 = 532
Global Const $var0159 = 1024
Global Const $var015a = 1
Global Const $var015b = 2
Global Const $var015c = 3
Global Const $var015d = 6
Global Const $var015e = 7
Global Const $var015f = 8
Global Const $var0160 = 10
Global Const $var0161 = 11
Global Const $var0162 = 12
Global Const $var0163 = 15
Global Const $var0164 = 16
Global Const $var0165 = 18
Global Const $var0166 = 20
Global Const $var0167 = 21
Global Const $var0168 = 24
Global Const $var0169 = 26
Global Const $var016a = 27
Global Const $var016b = 28
Global Const $var016c = 29
Global Const $var016d = 30
Global Const $var016e = 31
Global Const $var016f = 32
Global Const $var0170 = 33
Global Const $var0171 = 34
Global Const $var0172 = 35
Global Const $var0173 = 36
Global Const $var0174 = 38
Global Const $var0175 = 39
Global Const $var0176 = 40
Global Const $var0177 = 42
Global Const $var0178 = 43
Global Const $var0179 = 44
Global Const $var017a = 45
Global Const $var017b = 46
Global Const $var017c = 47
Global Const $var017d = 48
Global Const $var017e = 49
Global Const $var017f = 50
Global Const $var0180 = 51
Global Const $var0181 = 55
Global Const $var0182 = 57
Global Const $var0183 = 61
Global Const $var0184 = 65
Global Const $var0185 = 68
Global Const $var0186 = 70
Global Const $var0187 = 71
Global Const $var0188 = 72
Global Const $var0189 = 78
Global Const $var018a = 74
Global Const $var018b = 75
Global Const $var018c = 80
Global Const $var018d = 81
Global Const $var018e = 82
Global Const $var018f = 83
Global Const $var0190 = 84
Global Const $var0191 = 85
Global Const $var0192 = 768
Global Const $var0193 = 769
Global Const $var0194 = 770
Global Const $var0195 = 771
Global Const $var0196 = 772
Global Const $var0197 = 123
Global Const $var0198 = 124
Global Const $var0199 = 125
Global Const $var019a = 126
Global Const $var019b = 127
Global Const $var019c = 128
Global Const $var019d = 129
Global Const $var019e = 130
Global Const $var019f = 131
Global Const $var01a0 = 132
Global Const $var01a1 = 133
Global Const $var01a2 = 134
Global Const $var01a3 = 135
Global Const $var01a4 = 136
Global Const $var01a5 = 160
Global Const $var01a6 = 161
Global Const $var01a7 = 162
Global Const $var01a8 = 163
Global Const $var01a9 = 164
Global Const $var01aa = 165
Global Const $var01ab = 166
Global Const $var01ac = 167
Global Const $var01ad = 168
Global Const $var01ae = 169
Global Const $var01af = 256
Global Const $var01b0 = 257
Global Const $var01b1 = 258
Global Const $var01b2 = 259
Global Const $var01b3 = 260
Global Const $var01b4 = 261
Global Const $var01b5 = 262
Global Const $var01b6 = 263
Global Const $var01b7 = 272
Global Const $var01b8 = 273
Global Const $var01b9 = 274
Global Const $var01ba = 275
Global Const $var01bb = 276
Global Const $var01bc = 277
Global Const $var01bd = 278
Global Const $var01be = 279
Global Const $var01bf = 287
Global Const $var01c0 = 288
Global Const $var01c1 = 289
Global Const $var01c2 = 290
Global Const $var01c3 = 291
Global Const $var01c4 = 292
Global Const $var01c5 = 293
Global Const $var01c6 = 294
Global Const $var01c7 = 295
Global Const $var01c8 = 296
Global Const $var01c9 = 297
Global Const $var01ca = 306
Global Const $var01cb = 307
Global Const $var01cc = 308
Global Const $var01cd = 309
Global Const $var01ce = 310
Global Const $var01cf = 311
Global Const $var01d0 = 312
Global Const $var01d1 = 25
Global Const $var01d2 = 481
Global Const $var01d3 = 0
Global Const $var01d4 = $var01d3 - 1
Global Const $var01d5 = $var01d3 - 2
Global Const $var01d6 = $var01d3 - 3
Global Const $var01d7 = $var01d3 - 4
Global Const $var01d8 = $var01d3 - 5
Global Const $var01d9 = $var01d3 - 6
Global Const $var01da = $var01d3 - 7
Global Const $var01db = $var01d3 - 8
Global Const $var01dc = $var01d3 - 12
Global Const $var01dd = $var01d3 - 13
Global Const $var01de = $var01d3 - 14
Global Const $var01df = $var01d3 - 15
Global Const $var01e0 = $var01d3 - 16
Global Const $var01e1 = $var01d3 - 17
Global Const $var01e2 = $var01d3 - 18
Global Const $var01e3 = $var01d3 - 19
Global Const $var01e4 = $var01d3 - 20
Global Const $var01e5 = $var01d3 - 21
Global Const $var01e6 = $var01d3 - 22
Global Const $var01e7 = 512
Global Const $var01e8 = 513
Global Const $var01e9 = 514
Global Const $var01ea = 515
Global Const $var01eb = 516
Global Const $var01ec = 517
Global Const $var01ed = 518
Global Const $var01ee = 519
Global Const $var01ef = 520
Global Const $var01f0 = 521
Global Const $var01f1 = 522
Global Const $var01f2 = 523
Global Const $var01f3 = 524
Global Const $var01f4 = 525
Global Const $var01f5 = 526
Global Const $var01f6 = 0
Global Const $var01f7 = 1
Global Const $var01f8 = 2
Global Const $var01f9 = 3
Global Const $var01fa = 4
Global Const $var01fb = 5
Global Const $var01fc = 6
Global Const $var01fd = 2
Global Const $var01fe = 1
Global Const $var01ff = 1
Global Const $var0200 = 2
Global Const $var0201 = 3
Global Const $var0202 = 4
Global Const $var0203 = 5
Global Const $var0204 = 0
Global Const $var0205 = 1
Global Const $var0206 = 2
Global Const $var0207 = 3
Global Const $var0208 = 1
Global Const $var0209 = 2
Global Const $var020a = 8192
Global Const $var020b = ($var020a + 6)
Global Const $var020c = ($var020a + 5)
Global Const $var020d = $var020a + 1
Global Const $var020e = $var020a + 2
Global Const $var020f = $var020a + 3
Global Const $var0210 = $var020a + 4
Global Const $var0211 = $var020a + 11
Global Const $var0212 = 1
Global Const $var0213 = 2
Global Const $var0214 = 3
Global Const $var0215 = 0
Global Const $var0216 = 1
Global Const $var0217 = 2
Global Const $var0218 = 3
Global Const $var0219 = 4
Global Const $var021a = 5
Global Const $var021b = 6
Global Const $var021c = 7
Global Const $var021d = 8
Global Const $var021e = 9
Global Const $var021f = 10
Global Const $var0220 = 11
Global Const $var0221 = 12
Global Const $var0222 = 13
Global Const $var0223 = 14
Global Const $var0224 = 15
Global Const $var0225 = 16
Global Const $var0226 = 17
Global Const $var0227 = 18
Global Const $var0228 = 19
Global Const $var0229 = 20
Global Const $var022a = 21
Global Const $var022b = 22
Global Const $var022c = 23
Global Const $var022d = 24
Global Const $var022e = 25
Global Const $var022f = 26
Global Const $var0230 = 27
Global Const $var0231 = 28
Global Const $var0232 = 29
Global Const $var0233 = 30
Global Const $var0234 = 31
Global Const $var0235 = 32
Global Const $var0236 = 33
Global Const $var0237 = 34
Global Const $var0238 = 35
Global Const $var0239 = 36
Global Const $var023a = 37
Global Const $var023b = 38
Global Const $var023c = 39
Global Const $var023d = 40
Global Const $var023e = 41
Global Const $var023f = 42
Global Const $var0240 = 43
Global Const $var0241 = 44
Global Const $var0242 = 45
Global Const $var0243 = 46
Global Const $var0244 = 47
Global Const $var0245 = 48
Global Const $var0246 = 49
Global Const $var0247 = 50
Global Const $var0248 = 51
Global Const $var0249 = 52
Global Const $var024a = 53
Global Const $var024b = 54
Global Const $var024c = 55
Global Const $var024d = 56
Global Const $var024e = 57
Global Const $var024f = 58
Global Const $var0250 = 59
Global Const $var0251 = 60
Global Const $var0252 = 61
Global Const $var0253 = 62
Global Const $var0254 = 63
Global Const $var0255 = 67
Global Const $var0256 = 68
Global Const $var0257 = 69
Global Const $var0258 = 70
Global Const $var0259 = 71
Global Const $var025a = 72
Global Const $var025b = 73
Global Const $var025c = 74
Global Const $var025d = 75
Global Const $var025e = 76
Global Const $var025f = 77
Global Const $var0260 = 78
Global Const $var0261 = 79
Global Const $var0262 = 80
Global Const $var0263 = 81
Global Const $var0264 = 82
Global Const $var0265 = 83
Global Const $var0266 = 84
Global Const $var0267 = 86
Global Const $var0268 = 87
Global Const $var0269 = 88
Global Const $var026a = 89
Global Const $var026b = 90
Global Const $var026c = 4096
Global Const $var026d = 8192
Global Const $var026e = 8193
Global Const $var026f = 8194
Global Const $var0270 = 66
Global Const $var0271 = 1073741824
Global Const $var0272 = 5570569
Global Const $var0273 = 12583114
Global Const $var0274 = 12255782
Global Const $var0275 = -2147483648
Global Const $var0276 = 3342344
Global Const $var0277 = 1114278
Global Const $var0278 = 15728673
Global Const $var0279 = 5898313
Global Const $var027a = 16452105
Global Const $var027b = 8913094
Global Const $var027c = 13369376
Global Const $var027d = 4457256
Global Const $var027e = 6684742
Global Const $var027f = 15597702
Global Const $var0280 = 16711778
Global Const $var0281 = 8
Global Const $var0282 = 1024
Global Const $var0283 = 1
Global Const $var0284 = 8192
Global Const $var0285 = 32768
Global Const $var0286 = 64
Global Const $var0287 = 512
Global Const $var0288 = 1048576
Global Const $var0289 = 4096
Global Const $var028a = 0
Global Const $var028b = 65536
Global Const $var028c = 256
Global Const $var028d = 524288
Global Const $var028e = 2048
Global Const $var028f = 16384
Global Const $var0290 = 2097152
Global Const $var0291 = 2
Global Const $var0292 = 131072
Global Const $var0293 = 32
Global Const $var0294 = 128
Global Const $var0295 = 0
Global Const $var0296 = 4
Global Const $var0297 = 16
Global Const $var0298 = 262144
Global Const $var0299 = 4
Global Const $var029a = 1024
Global Const $var029b = 2
Global Const $var029c = 1
Global Const $var029d = 32
Global Const $var029e = 2048
Global Const $var029f = 16
Global Const $var02a0 = 8
Global Const $var02a1 = 512
Global Const $var02a2 = 256
Global Const $var02a3 = 128
Global Const $var02a4 = 64
Global Const $var02a5 = 773
Global Const $var02a6 = 774
Global Const $var02a7 = 775
Global Const $var02a8 = 776
Global Const $var02a9 = 777
Global Const $var02aa = 778
Global Const $var02ab = 779
Global Const $var02ac = 780
Global Const $var02ad = 781
Global Const $var02ae = 782
Global Const $var02af = -2
Global Const $var02b0 = -1
Global Const $var02b1 = 0
Global Const $var02b2 = 1
Global Const $var02b3 = 2
Global Const $var02b4 = 3
Global Const $var02b5 = 4
Global Const $var02b6 = $var02b5
Global Const $var02b7 = 5
Global Const $var02b8 = 6
Global Const $var02b9 = 7
Global Const $var02ba = 8
Global Const $var02bb = 9
Global Const $var02bc = 10
Global Const $var02bd = 11
Global Const $var02be = 12
Global Const $var02bf = 13
Global Const $var02c0 = 14
Global Const $var02c1 = 15
Global Const $var02c2 = 16
Global Const $var02c3 = 17
Global Const $var02c4 = 18
Global Const $var02c5 = $var02ba
Global Const $var02c6 = $var02bb
Global Const $var02c7 = $var02bc
Global Const $var02c8 = $var02c3
Global Const $var02c9 = 19
Global Const $var02ca = 20
Global Const $var02cb = 21
Global Const $var02cc = 0
Global Const $var02cd = 1
Global Const $var02ce = 2
Global Const $var02cf = 3
Global Const $var02d0 = 4
Global Const $var02d1 = 5
Global Const $var02d2 = 6
Global Const $var02d3 = 7
Global Const $var02d4 = 8
Global Const $var02d5 = 9
Global Const $var02d6 = 10
Global Const $var02d7 = 11
Global Const $var02d8 = 12
Global Const $var02d9 = 13
Global Const $var02da = 14
Global Const $var02db = 15
Global Const $var02dc = 16
Global Const $var02dd = 17
Global Const $var02de = 18
Global Const $var02df = 19
Global Const $var02e0 = 20
Global Const $var02e1 = 21
Global Const $var02e2 = 22
Global Const $var02e3 = 23
Global Const $var02e4 = 24
Global Const $var02e5 = 26
Global Const $var02e6 = 27
Global Const $var02e7 = 28
Global Const $var02e8 = 29
Global Const $var02e9 = 30
Global Const $var02ea = 1
Global Const $var02eb = 15
Global Const $var02ec = 16
Global Const $var02ed = 20
Global Const $var02ee = 20
Global Const $var02ef = 20
Global Const $var02f0 = -1
Global Const $var02f1 = 0
Global Const $var02f2 = 1
Global Const $var02f3 = 4
Global Const $var02f4 = 5
Global Const $var02f5 = 8
Global Const $var02f6 = 9
Global Const $var02f7 = 128
Global Const $var02f8 = 64
Global Const $var02f9 = 32
Global Const $var02fa = 8
Global Const $var02fb = 16
Global Const $var02fc = 512
Global Const $var02fd = 4
Global Const $var02fe = 1
Global Const $var02ff = 2
Global Const $var0300 = 256
Global Const $var0301 = 1
Global Const $var0302 = 2
Global Const $var0303 = 3
Global Const $var0304 = 4
Global Const $var0305 = 65536
Global Const $var0306 = 65537
Global Const $var0307 = 65538
Global Const $var0308 = 65539
Global Const $var0309 = 65540
Global Const $var030a = 131072
Global Const $var030b = 1
Global Const $var030c = 2
Global Const $var030d = 4
Global Const $var030e = 8
Global Const $var030f = 16
Global Const $var0310 = 32
Global Const $var0311 = 64
Global Const $var0312 = 128
Global Const $var0313 = 256
Global Const $var0314 = 512
Global Const $var0315 = 1024
Global Const $var0316 = 2048
Global Const $var0317 = 4096
Global Const $var0318 = 0
Global Const $var0319 = 2
Global Const $var031a = 4
Global Const $var031b = 16
Global Const $var031c = 32
Global Const $var031d = 32
Global Const $var031e = 64
Global Const $var031f = 8
Global Const $var0320 = 256
Global Const $var0321 = BitOR($var0129, $var0133, $var013d, $var012e)
Global Const $var0322 = 0
Global Const $var0323 = 100
Global Const $var0324 = 200
Global Const $var0325 = 200
Global Const $var0326 = 300
Global Const $var0327 = 400
Global Const $var0328 = 400
Global Const $var0329 = 500
Global Const $var032a = 600
Global Const $var032b = 600
Global Const $var032c = 700
Global Const $var032d = 800
Global Const $var032e = 800
Global Const $var032f = 900
Global Const $var0330 = 900
Global Const $var0331 = 256
Global Const $var0332 = 2
Global Const $var0333 = 1
Global Const $var0334 = 8388608
Global Const $var0335 = 64
Global Const $var0336 = 88
Global Const $var0337 = 90
Global Const $var0338 = 0
Global Const $var0339 = 186
Global Const $var033a = 136
Global Const $var033b = 1
Global Const $var033c = 238
Global Const $var033d = 134
Global Const $var033e = 161
Global Const $var033f = 129
Global Const $var0340 = 77
Global Const $var0341 = 255
Global Const $var0342 = 204
Global Const $var0343 = 128
Global Const $var0344 = 2
Global Const $var0345 = 162
Global Const $var0346 = 163
Global Const $var0347 = 2
Global Const $var0348 = 0
Global Const $var0349 = 5
Global Const $var034a = 8
Global Const $var034b = 10
Global Const $var034c = 6
Global Const $var034d = 1
Global Const $var034e = 3
Global Const $var034f = 7
Global Const $var0350 = 4
Global Const $var0351 = 1
Global Const $var0352 = 0
Global Const $var0353 = 128
Global Const $var0354 = 16
Global Const $var0355 = 15
Global Const $var0356 = 2
Global Const $var0357 = 32
Global Const $var0358 = 4
Global Const $var0359 = 0
Global Const $var035a = 1
Global Const $var035b = 3
Global Const $var035c = 2
Global Const $var035d = 0
Global Const $var035e = 1
Global Const $var035f = 2
Global Const $var0360 = 80
Global Const $var0361 = 0
Global Const $var0362 = 48
Global Const $var0363 = 16
Global Const $var0364 = 64
Global Const $var0365 = 32
Global Const $var0366 = "long X;long Y"
Global Const $var0367 = "long Left;long Top;long Right;long Bottom"
Global Const $var0368 = "long X;long Y"
Global Const $var0369 = "int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight"
Global Const $var036a = "dword Lo;dword Hi"
Global Const $var036b = "word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds"
Global Const $var036c = "long Bias;wchar StdName[32];word StdDate[8];long StdBias;wchar DayName[32];word DayDate[8];long DayBias"
Global Const $var036d = "hwnd hWndFrom;uint_ptr IDFrom;INT Code"
Global Const $var036e = "uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;int SelectedImage;int OverlayImage;" & "int Indent;lparam Param"
Global Const $var036f = $var036d & ";int ItemID;ptr szText"
Global Const $var0370 = $var036d & ";bool fChanged;int NewSelection;ptr szText;int Why"
Global Const $var0371 = $var036d & ";uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;" & "int SelectedImage;int OverlayImage;int Indent;lparam Param"
Global Const $var0372 = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;" & "word MinSecond;word MinMSecond;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;" & "word MaxMinute;word MaxSecond;word MaxMSecond;bool MinValid;bool MaxValid"
Global Const $var0373 = $var036d & ";dword Flag;" & $var036b
Global Const $var0374 = $var036d & ";ptr Format;" & $var036b & ";ptr pDisplay;wchar Display[64]"
Global Const $var0375 = $var036d & ";ptr Format;long SizeX;long SizeY"
Global Const $var0376 = $var036d & ";int VirtKey;ptr Format;" & $var036b
Global Const $var0377 = $var036d & ";ptr UserString;" & $var036b & ";dword Flags"
Global Const $var0378 = "dword Length;dword Reserved;dword RecordNumber;dword TimeGenerated;dword TimeWritten;dword EventID;" & "word EventType;word NumStrings;word EventCategory;word ReservedFlags;dword ClosingRecordNumber;dword StringOffset;" & "dword UserSidLength;dword UserSidOffset;dword DataLength;dword DataOffset"
Global Const $var0379 = "uint Width;uint Height;int Stride;int Format;ptr Scan0;uint_ptr Reserved"
Global Const $var037a = "byte GUID[16];dword Count;dword Type;ptr Values"
Global Const $var037b = "dword Count;byte Params[0]"
Global Const $var037c = "float X;float Y;float Width;float Height"
Global Const $var037d = "uint Version;ptr Callback;bool NoThread;bool NoCodecs"
Global Const $var037e = "ptr HookProc;ptr UnhookProc"
Global Const $var037f = "byte CLSID[16];byte FormatID[16];ptr CodecName;ptr DllName;ptr FormatDesc;ptr FileExt;" & "ptr MimeType;dword Flags;dword Version;dword SigCount;dword SigSize;ptr SigPattern;ptr SigMask"
Global Const $var0380 = "dword Count;byte Params[0]"
Global Const $var0381 = "uint Mask;int XY;ptr Text;handle hBMP;int TextMax;int Fmt;lparam Param;int Image;int Order;uint Type;ptr pFilter;uint State"
Global Const $var0382 = $var036d & ";int Item;uint Mask;ptr Text;int TextMax;int Image;lparam lParam"
Global Const $var0383 = $var036d & ";int Item;" & $var0367
Global Const $var0384 = $var036d & ";int Item;int Button;ptr pItem"
Global Const $var0385 = "byte Field4;byte Field3;byte Field2;byte Field1"
Global Const $var0386 = $var036d & ";int Field;int Value"
Global Const $var0387 = "uint Flags;ptr Text;lparam Param;" & $var0366 & ";uint Direction"
Global Const $var0388 = $var0366 & ";uint Flags;int Item;int SubItem"
Global Const $var0389 = "uint Mask;int Item;int SubItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;lparam Param;" & "int Indent;int GroupID;uint Columns;ptr pColumns"
Global Const $var038a = $var036d & ";int Item;int SubItem;uint NewState;uint OldState;uint Changed;" & "long ActionX;long ActionY;lparam Param"
Global Const $var038b = $var036d & ";dword dwDrawStage;handle hdc;long Left;long Top;long Right;long Bottom;" & "dword_ptr dwItemSpec;uint uItemState;lparam lItemlParam" & ";dword clrText;dword clrTextBk;int iSubItem;dword dwItemType;dword clrFace;int iIconEffect;" & "int iIconPhase;int iPartId;int iStateId;long TextLeft;long TextTop;long TextRight;long TextBottom;uint uAlign"
Global Const $var038c = $var036d & ";" & $var0389
Global Const $var038d = $var036d & ";" & $var0387
Global Const $var038e = $var036d & ";dword Flags;ptr Text;int TextMax;int Item;int SubItem;lparam lParam"
Global Const $var038f = $var036d & ";int Index;int SubItem;uint NewState;uint OldState;uint Changed;" & $var0366 & ";lparam lParam;uint KeyFlags"
Global Const $var0390 = $var036d & ";align 1;word VKey;uint Flags"
Global Const $var0391 = $var036d & ";int DX;int DY"
Global Const $var0392 = "uint Size;" & $var0366 & ";uint Hit;" & $var036b
Global Const $var0393 = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short Span"
Global Const $var0394 = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds;short MinSet;short MaxSet"
Global Const $var0395 = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & "word MaxMSeconds"
Global Const $var0396 = $var036d & ";" & $var036b & ";int DayState;ptr pDayState"
Global Const $var0397 = $var036d & ";word BegYear;word BegMonth;word BegDOW;word BegDay;" & "word BegHour;word BegMinute;word BegSecond;word BegMSeconds;word EndYear;word EndMonth;word EndDOW;" & "word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds"
Global Const $var0398 = $var036d & ";int Item;ptr piid;ptr pObject;long Result"
Global Const $var0399 = $var036d & ";word VKey;uint Flags"
Global Const $var039a = "uint Mask;handle hItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;int SelectedImage;" & "int Children;lparam Param"
Global Const $var039b = $var039a & ";int Integral"
Global Const $var039c = $var036d & ";uint Action;uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam;uint NewMask;handle NewhItem;" & "uint NewState;uint NewStateMask;ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;" & "lparam NewParam;long PointX;long PointY"
Global Const $var039d = $var036d & ";dword DrawStage;handle HDC;long Left;long Top;long Right;long Bottom;" & "dword_ptr ItemSpec;uint ItemState;lparam ItemParam;dword ClrText;dword ClrTextBk;int Level"
Global Const $var039e = $var036d & ";" & $var039a
Global Const $var039f = $var036d & ";ptr Text;int TextMax;handle hItem;lparam lParam"
Global Const $var03a0 = $var0366 & ";uint Flags;handle Item"
Global Const $var03a1 = $var036d & ";word VKey;uint Flags"
Global Const $var03a2 = $var036d & ";dword_ptr ItemSpec;dword_ptr ItemData;" & $var0366 & ";lparam HitInfo"
Global Const $var03a3 = "dword Count;int64 LUID;dword Attributes"
Global Const $var03a4 = "handle hBitmap;handle hMask;int Unused1;int Unused2;" & $var0367
Global Const $var03a5 = "dword Size;INT Mask;dword Style;uint YMax;handle hBack;dword ContextHelpID;ulong_ptr MenuData"
Global Const $var03a6 = "uint Size;uint Mask;uint Type;uint State;uint ID;handle SubMenu;handle BmpChecked;handle BmpUnchecked;" & "ulong_ptr ItemData;ptr TypeData;uint CCH;handle BmpItem"
Global Const $var03a7 = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader"
Global Const $var03a8 = $var036d & ";uint uBand;uint wID;lparam lParam;uint uMsg;uint fStyleCurrent;bool fAutoBreak"
Global Const $var03a9 = $var036d & ";bool fChanged;long TargetLeft;long TargetTop;long TargetRight;long TargetBottom;" & "long ActualLeft;long ActualTop;long ActualRight;long ActualBottom"
Global Const $var03aa = $var036d & ";dword dwMask;uint uBand;uint fStyle;uint wID;laram lParam"
Global Const $var03ab = $var036d & ";uint uBand;uint wID;lparam lParam;" & $var0367 & ";lparam lParamNM"
Global Const $var03ac = $var036d & ";uint uBand;uint wID;long CLeft;long CTop;long CRight;long CBottom;" & "long BLeft;long BTop;long BRight;long BBottom"
Global Const $var03ad = "dword Size;dword BtnHighlight;dword BtnShadow"
Global Const $var03ae = $var036d & ";int iItem;" & "int iBitmap;int idCommand;byte fsState;byte fsStyle;align;dword_ptr dwData;int_ptr iString" & ";int cchText;ptr pszText;" & $var0367
Global Const $var03af = $var036d & ";int idOld;int idNew;dword dwFlags"
Global Const $var03b0 = "int Bitmap;int Command;byte State;byte Style;align;dword_ptr Param;int_ptr String"
Global Const $var03b1 = "uint Size;dword Mask;int Command;int Image;byte State;byte Style;word CX;dword_ptr Param;ptr Text;int TextMax"
Global Const $var03b2 = "dword Scope;dword Type;dword DisplayType;dword Usage;ptr LocalName;ptr RemoteName;ptr Comment;ptr Provider"
Global Const $var03b3 = "ulong_ptr Internal;ulong_ptr InternalHigh;dword Offset;dword OffsetHigh;handle hEvent"
Global Const $var03b4 = "dword StructSize;hwnd hwndOwner;handle hInstance;ptr lpstrFilter;ptr lpstrCustomFilter;" & "dword nMaxCustFilter;dword nFilterIndex;ptr lpstrFile;dword nMaxFile;ptr lpstrFileTitle;dword nMaxFileTitle;" & "ptr lpstrInitialDir;ptr lpstrTitle;dword Flags;word nFileOffset;word nFileExtension;ptr lpstrDefExt;lparam lCustData;" & "ptr lpfnHook;ptr lpTemplateName;ptr pvReserved;dword dwReserved;dword FlagsEx"
Global Const $var03b5 = "dword Size;long Width;long Height;word Planes;word BitCount;dword Compression;dword SizeImage;" & "long XPelsPerMeter;long YPelsPerMeter;dword ClrUsed;dword ClrImportant;dword RGBQuad"
Global Const $var03b6 = "byte Op;byte Flags;byte Alpha;byte Format"
Global Const $var03b7 = "dword Data1;word Data2;word Data3;byte Data4[8]"
Global Const $var03b8 = "uint length; uint flags;uint showCmd;long ptMinPosition[2];long ptMaxPosition[2];long rcNormalPosition[4]"
Global Const $var03b9 = "hwnd hWnd;hwnd InsertAfter;int X;int Y;int CX;int CY;uint Flags"
Global Const $var03ba = "uint cbSize;uint fMask;int  nMin;int  nMax;uint nPage;int  nPos;int  nTrackPos"
Global Const $var03bb = "dword cbSize;" & $var0367 & ";int dxyLineButton;int xyThumbTop;" & "int xyThumbBottom;int reserved;dword rgstate[6]"
Global Const $var03bc = "long Height;long Width;long Escapement;long Orientation;long Weight;byte Italic;byte Underline;" & "byte Strikeout;byte CharSet;byte OutPrecision;byte ClipPrecision;byte Quality;byte PitchAndFamily;wchar FaceName[32]"
Global Const $var03bd = "dword vkCode;dword scanCode;dword flags;dword time;ulong_ptr dwExtraInfo"
Global Const $var03be = "handle hProcess;handle hThread;dword ProcessID;dword ThreadID"
Global Const $var03bf = "dword Size;ptr Reserved1;ptr Desktop;ptr Title;dword X;dword Y;dword XSize;dword YSize;dword XCountChars;" & "dword YCountChars;dword FillAttribute;dword Flags;word ShowWindow;word Reserved2;ptr Reserved3;handle StdInput;" & "handle StdOutput;handle StdError"
Global Const $var03c0 = "dword Length;ptr Descriptor;bool InheritHandle"
Global Const $var03c1 = "dword dwFileAttributes; dword ftCreationTime[2]; dword ftLastAccessTime[2]; dword ftLastWriteTime[2]; dword nFileSizeHigh; dword nFileSizeLow; dword dwReserved0; dword dwReserved1; wchar cFileName[260]; wchar cAlternateFileName[14]"
Global Const $var03c2 = 256
Global Const $var03c3 = 2
Global Const $var03c4 = 1
Global Const $var03c5 = "dword Size;hwnd hWndOwnder;handle hInstance;dword rgbResult;ptr CustColors;dword Flags;lparam lCustData;" & "ptr lpfnHook;ptr lpTemplateName"
Global Const $var03c6 = "dword Size;hwnd hWndOwner;handle hDC;ptr LogFont;int PointSize;dword Flags;dword rgbColors;lparam CustData;" & "ptr fnHook;ptr TemplateName;handle hInstance;ptr szStyle;word FontType;int SizeMin;int SizeMax"
Global Const $var03c7 = 0
Global Const $var03c8 = 1
Global Const $var03c9 = 0
Global Const $var03ca = 1
Global Const $var03cb = 2
Global Const $var03cc = 0
Global Const $var03cd = 1
Global Const $var03ce = 2
Global Const $var03cf = 16
Global Const $var03d0 = 32
Global Const $var03d1 = 32
Global Const $var03d2 = 64
Global Const $var03d3 = 128
Global Const $var03d4 = 256
Global Const $var03d5 = -1
Global Const $var03d6 = 1
Global Const $var03d7 = 2
Global Const $var03d8 = 4
Global Const $var03d9 = 8
Global Const $var03da = 16
Global Const $var03db = 1
Global Const $var03dc = 2
Global Const $var03dd = 3
Global Const $var03de = 4
Global Const $var03df = 5
Global Const $var03e0 = -1
Global Const $var03e1 = 0
Global Const $var03e2 = 1
Global Const $var03e3 = 2
Global Const $var03e4 = 1
Global Const $var03e5 = 2
Global Const $var03e6 = 4
Global Const $var03e7 = 16
Global Const $var03e8 = 32
Global Const $var03e9 = 64
Global Const $var03ea = 128
Global Const $var03eb = 256
Global Const $var03ec = 512
Global Const $var03ed = 1024
Global Const $var03ee = 2048
Global Const $var03ef = 4096
Global Const $var03f0 = 8192
Global Const $var03f1 = 16384
Global Const $var03f2 = 1
Global Const $var03f3 = 2
Global Const $var03f4 = 4
Global Const $var03f5 = 268435456
Global Const $var03f6 = 536870912
Global Const $var03f7 = 1073741824
Global Const $var03f8 = -2147483648
Global Const $var03f9 = 1008
Global Const $var03fa = "SeAssignPrimaryTokenPrivilege"
Global Const $var03fb = "SeAuditPrivilege"
Global Const $var03fc = "SeBackupPrivilege"
Global Const $var03fd = "SeChangeNotifyPrivilege"
Global Const $var03fe = "SeCreateGlobalPrivilege"
Global Const $var03ff = "SeCreatePagefilePrivilege"
Global Const $var0400 = "SeCreatePermanentPrivilege"
Global Const $var0401 = "SeCreateTokenPrivilege"
Global Const $var0402 = "SeDebugPrivilege"
Global Const $var0403 = "SeEnableDelegationPrivilege"
Global Const $var0404 = "SeImpersonatePrivilege"
Global Const $var0405 = "SeIncreaseBasePriorityPrivilege"
Global Const $var0406 = "SeIncreaseQuotaPrivilege"
Global Const $var0407 = "SeLoadDriverPrivilege"
Global Const $var0408 = "SeLockMemoryPrivilege"
Global Const $var0409 = "SeMachineAccountPrivilege"
Global Const $var040a = "SeManageVolumePrivilege"
Global Const $var040b = "SeProfileSingleProcessPrivilege"
Global Const $var040c = "SeRemoteShutdownPrivilege"
Global Const $var040d = "SeRestorePrivilege"
Global Const $var040e = "SeSecurityPrivilege"
Global Const $var040f = "SeShutdownPrivilege"
Global Const $var0410 = "SeSyncAgentPrivilege"
Global Const $var0411 = "SeSystemEnvironmentPrivilege"
Global Const $var0412 = "SeSystemProfilePrivilege"
Global Const $var0413 = "SeSystemtimePrivilege"
Global Const $var0414 = "SeTakeOwnershipPrivilege"
Global Const $var0415 = "SeTcbPrivilege"
Global Const $var0416 = "SeUnsolicitedInputPrivilege"
Global Const $var0417 = "SeUndockPrivilege"
Global Const $var0418 = 1
Global Const $var0419 = 2
Global Const $var041a = 4
Global Const $var041b = -2147483648
Global Const $var041c = 1
Global Const $var041d = 2
Global Const $var041e = 3
Global Const $var041f = 4
Global Const $var0420 = 5
Global Const $var0421 = 6
Global Const $var0422 = 7
Global Const $var0423 = 8
Global Const $var0424 = 9
Global Const $var0425 = 10
Global Const $var0426 = 11
Global Const $var0427 = 12
Global Const $var0428 = 13
Global Const $var0429 = 14
Global Const $var042a = 15
Global Const $var042b = 16
Global Const $var042c = 17
Global Const $var042d = 18
Global Const $var042e = 19
Global Const $var042f = 20
Global Const $var0430 = 21
Global Const $var0431 = 22
Global Const $var0432 = 23
Global Const $var0433 = 24
Global Const $var0434 = 25
Global Const $var0435 = 26
Global Const $var0436 = 27
Global Const $var0437 = 28
Global Const $var0438 = 1
Global Const $var0439 = 2
Global Const $var043a = 4
Global Const $var043b = 8
Global Const $var043c = 16
Global Const $var043d = 32
Global Const $var043e = 64
Global Const $var043f = 128
Global Const $var0440 = 256

Func fn0029($arg00, $arg01, $argopt02 = 0, $argopt03 = 0, $argopt04 = 0, $argopt05 = "wparam", $argopt06 = "lparam", $argopt07 = "lresult")
    Local $local0020 = DllCall("user32.dll", $argopt07, "SendMessageW", "hwnd", $arg00, "uint", $arg01, $argopt05, $argopt02, $argopt06, $argopt03)
    If @error Then Return SetError(@error, @extended, "")
    If $argopt04 >= 0 AND $argopt04 <= 4 Then Return $local0020[$argopt04]
    Return $local0020
EndFunc

Global $var0441[64][2] = [[0, 0]]
Global $var0442[64][2] = [[0, 0]]
Global Const $var0443 = 48
Global Const $var0444 = 400
Global Const $var0445 = 1
Global Const $var0446 = 0
Global Const $var0447 = 0
Global Const $var0448 = 0
Global Const $var0449 = 256
Global Const $var044a = 4096
Global Const $var044b = 88
Global Const $var044c = 90
Global Const $var044d = Ptr(-1)
Global Const $var044e = Ptr(-1)
Global Const $var044f = -1
Global Const $var0450 = 1
Global Const $var0451 = 2
Global Const $var0452 = 4
Global Const $var0453 = 12
Global Const $var0454 = 2
Global Const $var0455 = 5
Global Const $var0456 = 1
Global Const $var0457 = 2
Global Const $var0458 = 3
Global Const $var0459 = 4
Global Const $var045a = 8
Global Const $var045b = 16
Global Const $var045c = 1
Global Const $var045d = 4
Global Const $var045e = 8
Global Const $var045f = 16
Global Const $var0460 = 32
Global Const $var0461 = 134217728
Global Const $var0462 = 5
Global Const $var0463 = 8
Global Const $var0464 = 4
Global Const $var0465 = 3
Global Const $var0466 = 18
Global Const $var0467 = 2
Global Const $var0468 = $var0462
Global Const $var0469 = 1
Global Const $var046a = 0
Global Const $var046b = 7
Global Const $var046c = 19
Global Const $var046d = 6
Global Const $var046e = 11
Global Const $var046f = 12
Global Const $var0470 = 14
Global Const $var0471 = 17
Global Const $var0472 = 10
Global Const $var0473 = 13
Global Const $var0474 = 16
Global Const $var0475 = 15
Global Const $var0476 = 1
Global Const $var0477 = 2
Global Const $var0478 = 4
Global Const $var0479 = 2
Global Const $var047a = 1
Global Const $var047b = 4
Global Const $var047c = 4
Global Const $var047d = 12
Global Const $var047e = 5
Global Const $var047f = 9
Global Const $var0480 = 11
Global Const $var0481 = 3
Global Const $var0482 = 1
Global Const $var0483 = 0
Global Const $var0484 = 2
Global Const $var0485 = 13
Global Const $var0486 = 7
Global Const $var0487 = 14
Global Const $var0488 = -1
Global Const $var0489 = 10
Global Const $var048a = 6
Global Const $var048b = 4
Global Const $var048c = 2
Global Const $var048d = 1
Global Const $var048e = 256
Global Const $var048f = 8192
Global Const $var0490 = 32768
Global Const $var0491 = BitShift($var048e, 8)
Global Const $var0492 = 16
Global Const $var0493 = BitShift($var048f, 8)
Global Const $var0494 = BitShift($var0490, 8)
Global Const $var0495 = 512
Global Const $var0496 = 8192
Global Const $var0497 = 33554432
Global Const $var0498 = 32
Global Const $var0499 = 4194304
Global Const $var049a = 8388608
Global Const $var049b = 64
Global Const $var049c = 128
Global Const $var049d = 524288
Global Const $var049e = 1024
Global Const $var049f = 4096
Global Const $var04a0 = 268435456
Global Const $var04a1 = 4
Global Const $var04a2 = 2097152
Global Const $var04a3 = 8
Global Const $var04a4 = 1048576
Global Const $var04a5 = 262144
Global Const $var04a6 = 131072
Global Const $var04a7 = 32768
Global Const $var04a8 = 65536
Global Const $var04a9 = 256
Global Const $var04aa = 2
Global Const $var04ab = 2048
Global Const $var04ac = 1
Global Const $var04ad = 16384
Global Const $var04ae = 16
Global Const $var04af = 1
Global Const $var04b0 = "dword Size;dword Flags;handle hCursor;" & $var0366
Global Const $var04b1 = "dword Size;wchar Name[32];wchar String[128];dword Flags;wchar ID[128];wchar Key[128]"
Global Const $var04b2 = "uint Size;hwnd hWnd;dword Flags;uint Count;dword TimeOut"
Global Const $var04b3 = "bool Icon;dword XHotSpot;dword YHotSpot;handle hMask;handle hColor"
Global Const $var04b4 = "dword Length;dword MemoryLoad;" & "uint64 TotalPhys;uint64 AvailPhys;uint64 TotalPageFile;uint64 AvailPageFile;" & "uint64 TotalVirtual;uint64 AvailVirtual;uint64 AvailExtendedVirtual"

Func fn002a($arg00, $arg01, $arg02, $arg03, $arg04, $arg05, $arg06, $arg07, $arg08)
    Local $local0020 = DllCall("gdi32.dll", "bool", "BitBlt", "handle", $arg00, "int", $arg01, "int", $arg02, "int", $arg03, "int", $arg04, "handle", $arg05, "int", $arg06, "int", $arg07, "dword", $arg08)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn002b($arg00)
    Local $local0020 = DllCall("user32.dll", "handle", "CopyIcon", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn002c($arg00, $arg01, $arg02)
    Local $local0020 = DllCall("gdi32.dll", "handle", "CreateCompatibleBitmap", "handle", $arg00, "int", $arg01, "int", $arg02)
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn002d($arg00)
    Local $local0020 = DllCall("gdi32.dll", "handle", "CreateCompatibleDC", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn002e($arg00)
    Local $local0020 = DllCall("gdi32.dll", "bool", "DeleteDC", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn002f($arg00)
    Local $local0020 = DllCall("gdi32.dll", "bool", "DeleteObject", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn0030($arg00)
    Local $local0020 = DllCall("user32.dll", "bool", "DestroyIcon", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn0031($arg00, $arg01, $arg02, $arg03)
    Local $local0020 = DllCall("user32.dll", "bool", "DrawIcon", "handle", $arg00, "int", $arg01, "int", $arg02, "handle", $arg03)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn0032($arg00)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Local $local0020 = DllCall("user32.dll", "int", "GetClassNameW", "hwnd", $arg00, "wstr", "", "int", 4096)
    If @error Then Return SetError(@error, @extended, False)
    Return SetExtended($local0020[0], $local0020[2])
EndFunc

Func fn0033()
    Local $local0021 = DllStructCreate($var04b0)
    Local $local0022 = DllStructGetSize($local0021)
    DllStructSetData($local0021, "Size", $local0022)
    DllCall("user32.dll", "bool", "GetCursorInfo", "ptr", DllStructGetPtr($local0021))
    If @error Then Return SetError(@error, @extended, 0)
    Local $local0023[5]
    $local0023[0] = True
    $local0023[1] = DllStructGetData($local0021, "Flags") <> 0
    $local0023[2] = DllStructGetData($local0021, "hCursor")
    $local0023[3] = DllStructGetData($local0021, "X")
    $local0023[4] = DllStructGetData($local0021, "Y")
    Return $local0023
EndFunc

Func fn0034($arg00)
    Local $local0020 = DllCall("user32.dll", "handle", "GetDC", "hwnd", $arg00)
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn0035()
    Local $local0020 = DllCall("user32.dll", "hwnd", "GetDesktopWindow")
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn0036($arg00)
    Local $local0024 = DllStructCreate($var04b3)
    DllCall("user32.dll", "bool", "GetIconInfo", "handle", $arg00, "ptr", DllStructGetPtr($local0024))
    If @error Then Return SetError(@error, @extended, 0)
    Local $local0025[6]
    $local0025[0] = True
    $local0025[1] = DllStructGetData($local0024, "Icon") <> 0
    $local0025[2] = DllStructGetData($local0024, "XHotSpot")
    $local0025[3] = DllStructGetData($local0024, "YHotSpot")
    $local0025[4] = DllStructGetData($local0024, "hMask")
    $local0025[5] = DllStructGetData($local0024, "hColor")
    Return $local0025
EndFunc

Func fn0037($arg00)
    Local $local0020 = DllCall("user32.dll", "int", "GetSystemMetrics", "int", $arg00)
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0020[0]
EndFunc

Func fn0038($arg00)
    Local $local0026 = DllStructCreate($var03b7)
    fn0039($arg00, DllStructGetPtr($local0026))
    If @error Then Return SetError(@error, @extended, 0)
    Return $local0026
EndFunc

Func fn0039($arg00, $arg01)
    Local $local0020 = DllCall("ole32.dll", "long", "CLSIDFromString", "wstr", $arg00, "ptr", $arg01)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn003a($arg00, $arg01)
    Local $local0027 = Opt("GUIDataSeparatorChar")
    Local $local0028 = StringSplit($arg01, $local0027)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Local $local0029 = fn0032($arg00)
    For $var04b5 = 1 To UBound($local0028) - 1
        If StringUpper(StringMid($local0029, 1, StringLen($local0028[$var04b5]))) = StringUpper($local0028[$var04b5]) Then Return True
    Next
    Return False
EndFunc

Func fn003b($arg00, $arg01)
    Local $local0020 = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", $arg00, "handle", $arg01)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn003c($arg00, $arg01)
    Local $local0020 = DllCall("gdi32.dll", "handle", "SelectObject", "handle", $arg00, "handle", $arg01)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0]
EndFunc

Func fn003d($arg00)
    Local $local0020 = DllCall("ole32.dll", "int", "StringFromGUID2", "ptr", $arg00, "wstr", "", "int", 40)
    If @error Then Return SetError(@error, @extended, "")
    Return SetExtended($local0020[0], $local0020[2])
EndFunc

Func fn003e($arg00, $argopt01 = 0, $argopt02 = True)
    Local $local002a = "ptr"
    If IsDllStruct($arg00) Then
        $arg00 = DllStructGetPtr($arg00)
    Else
        If NOT IsPtr($arg00) Then $local002a = "wstr"
    EndIf
    Local $local0020 = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", $argopt01, "dword", 0, $local002a, $arg00, "int", -1, "ptr", 0, "int", 0, "ptr", 0, "ptr", 0)
    If @error Then Return SetError(@error, @extended, "")
    Local $local002b = DllStructCreate("char[" & $local0020[0] & "]")
    Local $local002c = DllStructGetPtr($local002b)
    $local0020 = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", $argopt01, "dword", 0, $local002a, $arg00, "int", -1, "ptr", $local002c, "int", $local0020[0], "ptr", 0, "ptr", 0)
    If @error Then Return SetError(@error, @extended, "")
    If $argopt02 Then Return DllStructGetData($local002b, 1)
    Return $local002b
EndFunc

Global Const $var04b6 = 0
Global Const $var04b7 = 2
Global Const $var04b8 = 3
Global Const $var04b9 = 0
Global Const $var04ba = 1
Global Const $var04bb = 2
Global Const $var04bc = 3
Global Const $var04bd = 4
Global Const $var04be = 5
Global Const $var04bf = "{F2E455DC-09B3-4316-8260-676ADA32481C}"
Global Const $var04c0 = "{66087055-AD66-4C7C-9A18-38A2310B8337}"
Global Const $var04c1 = "{E09D739D-CCD4-44EE-8EBA-3FBF8BE4FC58}"
Global Const $var04c2 = "{EDB33BCE-0266-4A77-B904-27216099E717}"
Global Const $var04c3 = "{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}"
Global Const $var04c4 = "{6D42C53A-229A-4825-8BB7-5C99E2B9A8B8}"
Global Const $var04c5 = "{292266FC-AC40-47BF-8CFC-A85B89A655DE}"
Global Const $var04c6 = "{3A4E2661-3109-4E56-8536-42C156E7DCFA}"
Global Const $var04c7 = "{8D0EB2D1-A58E-4EA8-AA14-108074B7B6F9}"
Global Const $var04c8 = "{24D18C76-814A-41A4-BF53-1C219CCCF797}"
Global Const $var04c9 = 1
Global Const $var04ca = 2
Global Const $var04cb = 3
Global Const $var04cc = 4
Global Const $var04cd = 5
Global Const $var04ce = 6
Global Const $var04cf = 7
Global Const $var04d0 = 8
Global Const $var04d1 = 0
Global Const $var04d2 = 1
Global Const $var04d3 = 2
Global Const $var04d4 = 3
Global Const $var04d5 = 4
Global Const $var04d6 = 5
Global Const $var04d7 = 6
Global Const $var04d8 = 7
Global Const $var04d9 = 8
Global Const $var04da = 9
Global Const $var04db = 10
Global Const $var04dc = 11
Global Const $var04dd = 12
Global Const $var04de = 13
Global Const $var04df = 14
Global Const $var04e0 = 15
Global Const $var04e1 = 16
Global Const $var04e2 = 17
Global Const $var04e3 = 18
Global Const $var04e4 = 19
Global Const $var04e5 = 20
Global Const $var04e6 = 2
Global Const $var04e7 = 3
Global Const $var04e8 = 4
Global Const $var04e9 = 5
Global Const $var04ea = 6
Global Const $var04eb = 13
Global Const $var04ec = 14
Global Const $var04ed = 15
Global Const $var04ee = 16
Global Const $var04ef = 17
Global Const $var04f0 = 18
Global Const $var04f1 = 19
Global Const $var04f2 = 20
Global Const $var04f3 = 23
Global Const $var04f4 = 1
Global Const $var04f5 = 2
Global Const $var04f6 = 4
Global Const $var04f7 = 8
Global Const $var04f8 = 16
Global Const $var04f9 = 32
Global Const $var04fa = 65536
Global Const $var04fb = 131072
Global Const $var04fc = 262144
Global Const $var04fd = 1
Global Const $var04fe = 2
Global Const $var04ff = 4
Global Const $var0500 = 0
Global Const $var0501 = 1
Global Const $var0502 = 2
Global Const $var0503 = 3
Global Const $var0504 = 16
Global Const $var0505 = 17
Global Const $var0506 = 18
Global Const $var0507 = 19
Global Const $var0508 = 20
Global Const $var0509 = 255
Global Const $var050a = 196865
Global Const $var050b = 197634
Global Const $var050c = 198659
Global Const $var050d = 1052676
Global Const $var050e = 135173
Global Const $var050f = 135174
Global Const $var0510 = 397319
Global Const $var0511 = 137224
Global Const $var0512 = 139273
Global Const $var0513 = 2498570
Global Const $var0514 = 860171
Global Const $var0515 = 1060876
Global Const $var0516 = 3424269
Global Const $var0517 = 1851406
Global Const $var0518 = "{B96B3CA9-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var0519 = "{B96B3CAA-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051a = "{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051b = "{B96B3CAC-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051c = "{B96B3CAD-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051d = "{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051e = "{B96B3CAF-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var051f = "{B96B3CB0-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var0520 = "{B96B3CB1-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var0521 = "{B96B3CB2-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var0522 = "{B96B3CB5-0728-11D3-9D7B-0000F81EF32E}"
Global Const $var0523 = 0
Global Const $var0524 = 1
Global Const $var0525 = 2
Global Const $var0526 = 0
Global Const $var0527 = 1
Global Const $var0528 = 2
Global Const $var0529 = 4
Global Const $var052a = 8
Global Const $var052b = 16
Global Const $var052c = 32
Global Const $var052d = 64
Global Const $var052e = 128
Global Const $var052f = 256
Global Const $var0530 = 4096
Global Const $var0531 = 8192
Global Const $var0532 = 65536
Global Const $var0533 = 131072
Global $var0534 = 0
Global $var0535 = 0
Global $var0536 = 0
Global $var0537 = 0
Global $var0538 = 0

Func fn003f($arg00, $arg01, $arg02, $arg03, $arg04, $argopt05 = 137224)
    Local $local0020 = DllCall($var0535, "int", "GdipCloneBitmapAreaI", "int", $arg01, "int", $arg02, "int", $arg03, "int", $arg04, "int", $argopt05, "handle", $arg00, "ptr*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return SetExtended($local0020[0], $local0020[7])
EndFunc

Func fn0040($arg00, $argopt01 = 0)
    Local $local0020 = DllCall($var0535, "int", "GdipCreateBitmapFromHBITMAP", "handle", $arg00, "handle", $argopt01, "ptr*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return SetExtended($local0020[0], $local0020[3])
EndFunc

Func fn0041($arg00)
    Local $local0020 = DllCall($var0535, "int", "GdipDisposeImage", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0] = 0
EndFunc

Func fn0042()
    Local $local002d = fn0044()
    Local $local002e = fn0045()
    Local $local002f = DllStructCreate("byte[" & $local002e & "]")
    Local $local0030 = DllStructGetPtr($local002f)
    Local $local0020 = DllCall($var0535, "int", "GdipGetImageEncoders", "uint", $local002d, "uint", $local002e, "ptr", $local0030)
    If @error Then Return SetError(@error, @extended, 0)
    If $local0020[0] <> 0 Then Return SetError($local0020[0], 0, 0)
    Local $var0539, $var053a[$local002d + 1][14]
    $var053a[0][0] = $local002d
    For $var053b = 1 To $local002d
        $var0539 = DllStructCreate($var037f, $local0030)
        $var053a[$var053b][1] = fn003d(DllStructGetPtr($var0539, "CLSID"))
        $var053a[$var053b][2] = fn003d(DllStructGetPtr($var0539, "FormatID"))
        $var053a[$var053b][3] = fn003e(DllStructGetData($var0539, "CodecName"))
        $var053a[$var053b][4] = fn003e(DllStructGetData($var0539, "DllName"))
        $var053a[$var053b][5] = fn003e(DllStructGetData($var0539, "FormatDesc"))
        $var053a[$var053b][6] = fn003e(DllStructGetData($var0539, "FileExt"))
        $var053a[$var053b][7] = fn003e(DllStructGetData($var0539, "MimeType"))
        $var053a[$var053b][8] = DllStructGetData($var0539, "Flags")
        $var053a[$var053b][9] = DllStructGetData($var0539, "Version")
        $var053a[$var053b][10] = DllStructGetData($var0539, "SigCount")
        $var053a[$var053b][11] = DllStructGetData($var0539, "SigSize")
        $var053a[$var053b][12] = DllStructGetData($var0539, "SigPattern")
        $var053a[$var053b][13] = DllStructGetData($var0539, "SigMask")
        $local0030 += DllStructGetSize($var0539)
    Next
    Return $var053a
EndFunc

Func fn0043($arg00)
    Local $local0031 = fn0042()
    For $var053b = 1 To $local0031[0][0]
        If StringInStr($local0031[$var053b][6], "*." & $arg00) > 0 Then Return $local0031[$var053b][1]
    Next
    Return SetError(-1, -1, "")
EndFunc

Func fn0044()
    Local $local0020 = DllCall($var0535, "int", "GdipGetImageEncodersSize", "uint*", 0, "uint*", 0)
    If @error Then Return SetError(@error, @extended, -1)
    Return SetExtended($local0020[0], $local0020[1])
EndFunc

Func fn0045()
    Local $local0020 = DllCall($var0535, "int", "GdipGetImageEncodersSize", "uint*", 0, "uint*", 0)
    If @error Then Return SetError(@error, @extended, -1)
    Return SetExtended($local0020[0], $local0020[2])
EndFunc

Func fn0046($arg00)
    Local $local0020 = DllCall($var0535, "int", "GdipDisposeImage", "handle", $arg00)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0] = 0
EndFunc

Func fn0047($arg00)
    Local $local0020 = DllCall($var0535, "int", "GdipGetImageHeight", "handle", $arg00, "uint*", 0)
    If @error Then Return SetError(@error, @extended, -1)
    Return SetExtended($local0020[0], $local0020[2])
EndFunc

Func fn0048($arg00)
    Local $local0020 = DllCall($var0535, "int", "GdipGetImageWidth", "handle", $arg00, "uint*", -1)
    If @error Then Return SetError(@error, @extended, -1)
    Return SetExtended($local0020[0], $local0020[2])
EndFunc

Func fn0049($arg00, $arg01, $arg02, $argopt03 = 0)
    Local $local0026 = fn0038($arg02)
    Local $local0032 = DllStructGetPtr($local0026)
    Local $local0020 = DllCall($var0535, "int", "GdipSaveImageToFile", "handle", $arg00, "wstr", $arg01, "ptr", $local0032, "ptr", $argopt03)
    If @error Then Return SetError(@error, @extended, False)
    Return $local0020[0] = 0
EndFunc

Func fn004a(ByRef $argref00, $arg01, $arg02, $arg03, $arg04)
    Local $local0033 = DllStructCreate($var037a, DllStructGetPtr($argref00, "Params") + (DllStructGetData($argref00, "Count") * 28))
    fn0039($arg01, DllStructGetPtr($local0033, "GUID"))
    DllStructSetData($local0033, "Type", $arg03)
    DllStructSetData($local0033, "Count", $arg02)
    DllStructSetData($local0033, "Values", $arg04)
    DllStructSetData($argref00, "Count", DllStructGetData($argref00, "Count") + 1)
EndFunc

Func fn004b($arg00)
    If $arg00 <= 0 Then Return SetError(-1, -1, 0)
    Return DllStructCreate("dword Count;byte Params[" & $arg00 * 28 & "]")
EndFunc

Func fn004c()
    If $var0535 = 0 Then Return SetError(-1, -1, False)
    $var0537 -= 1
    If $var0537 = 0 Then
        DllCall($var0535, "none", "GdiplusShutdown", "ptr", $var0538)
        DllClose($var0535)
        $var0535 = 0
    EndIf
    Return True
EndFunc

Func fn004d()
    $var0537 += 1
    If $var0537 > 1 Then Return True
    $var0535 = DllOpen("GDIPlus.dll")
    If $var0535 = -1 Then Return SetError(1, 2, False)
    Local $local0034 = DllStructCreate($var037d)
    Local $local0035 = DllStructGetPtr($local0034)
    Local $local0036 = DllStructCreate("ulong_ptr Data")
    Local $local0037 = DllStructGetPtr($local0036)
    DllStructSetData($local0034, "Version", 1)
    Local $local0020 = DllCall($var0535, "int", "GdiplusStartup", "ptr", $local0037, "ptr", $local0035, "ptr", 0)
    If @error Then Return SetError(@error, @extended, False)
    $var0538 = DllStructGetData($local0036, "Data")
    Return $local0020[0] = 0
EndFunc

Func fn004e($arg00, $argopt01 = True)
    Local $local0038 = fn004f(".\:", $arg00)
    If ($local0038 > 0) AND (StringMid($arg00, $local0038, 1) = ".") Then
        If $argopt01 Then
            Return StringMid($arg00, $local0038 + 1)
        Else
            Return StringMid($arg00, $local0038)
        EndIf
    Else
        Return ""
    EndIf
EndFunc

Func fn004f($arg00, $arg01)
    Local $local004d, $var053c
    For $var053b = 1 To StringLen($arg00)
        $local004d = StringMid($arg00, $var053b, 1)
        $var053c = StringInStr($arg01, $local004d, 0, -1)
        If $var053c > 0 Then Return $var053c
    Next
EndFunc

Global $var053d = $var0511
Global $var053e = 100
Global $var053f = 24
Global $var0540 = $var04e6
Global Const $var0541 = 0
Global Const $var0542 = 1
Global Const $var0543 = 13369376

Func fn0050($argopt00 = "", $argopt01 = 0, $argopt02 = 0, $argopt03 = -1, $argopt04 = -1, $argopt05 = True)
    If $argopt03 = -1 Then $argopt03 = fn0037($var0541)
    If $argopt04 = -1 Then $argopt04 = fn0037($var0542)
    If $argopt03 < $argopt01 Then Return SetError(-1, 0, 0)
    If $argopt04 < $argopt02 Then Return SetError(-2, 0, 0)
    Local $local0039 = ($argopt03 - $argopt01) + 1
    Local $local003a = ($argopt04 - $argopt02) + 1
    Local $local003b = fn0035()
    Local $local003c = fn0034($local003b)
    Local $local003d = fn002d($local003c)
    Local $local003e = fn002c($local003c, $local0039, $local003a)
    fn003c($local003d, $local003e)
    fn002a($local003d, 0, 0, $local0039, $local003a, $local003c, $argopt01, $argopt02, $var0543)
    If $argopt05 Then
        Local $local0023 = fn0033()
        If $local0023[1] Then
            Local $local003f = fn002b($local0023[2])
            Local $local0025 = fn0036($local003f)
            fn002f($local0025[4])
            fn0031($local003d, $local0023[3] - $local0025[2] - $argopt01, $local0023[4] - $local0025[3] - $argopt02, $local003f)
            fn0030($local003f)
        EndIf
    EndIf
    fn003b($local003b, $local003c)
    fn002e($local003d)
    If $argopt00 = "" Then Return $local003e
    fn0051($argopt00, $local003e)
    fn002f($local003e)
EndFunc

Func fn0051($arg00, $arg01, $argopt02 = True)
    fn004d()
    If @error Then Return SetError(-1, -1, False)
    Local $local0040 = StringUpper(fn004e($arg00))
    Local $local0041 = fn0043($local0040)
    If $local0041 = "" Then Return SetError(-2, -2, False)
    Local $local0042 = fn0040($arg01)
    If @error Then Return SetError(-3, -3, False)
    Local $var0544, $var0545
    Switch $local0040
        Case "BMP"
            Local $local0043 = fn0048($local0042)
            Local $local0044 = fn0047($local0042)
            Local $local0045 = fn003f($local0042, 0, 0, $local0043, $local0044, $var053d)
            fn0046($local0042)
            $local0042 = $local0045
        Case "JPG", "JPEG"
            $var0545 = fn004b(1)
            $var0544 = DllStructCreate("int Quality")
            DllStructSetData($var0544, "Quality", $var053e)
            fn004a($var0545, $var04c3, 1, $var04cc, DllStructGetPtr($var0544))
        Case "TIF", "TIFF"
            $var0545 = fn004b(2)
            $var0544 = DllStructCreate("int ColorDepth;int Compression")
            DllStructSetData($var0544, "ColorDepth", $var053f)
            DllStructSetData($var0544, "Compression", $var0540)
            fn004a($var0545, $var04c0, 1, $var04cc, DllStructGetPtr($var0544, "ColorDepth"))
            fn004a($var0545, $var04c1, 1, $var04cc, DllStructGetPtr($var0544, "Compression"))
    EndSwitch
    Local $local0046 = 0
    If IsDllStruct($var0545) Then $local0046 = DllStructGetPtr($var0545)
    Local $local0047 = fn0049($local0042, $arg00, $local0041, $local0046)
    fn0046($local0042)
    If $argopt02 Then fn002f($arg01)
    fn004c()
    Return SetError($local0047 = False, 0, $local0047 = True)
EndFunc

Func fn0052(ByRef $argref00, $argopt01 = 0, $argopt02 = 0)
    If NOT IsArray($argref00) Then Return SetError(1, 0, 0)
    If UBound($argref00, 0) <> 1 Then Return SetError(3, 0, 0)
    Local $var0546, $local0048 = UBound($argref00) - 1
    If $argopt02 < 1 OR $argopt02 > $local0048 Then $argopt02 = $local0048
    If $argopt01 < 0 Then $argopt01 = 0
    If $argopt01 > $argopt02 Then Return SetError(2, 0, 0)
    For $var0012 = $argopt01 To Int(($argopt01 + $argopt02 - 1) / 2)
        $var0546 = $argref00[$var0012]
        $argref00[$var0012] = $argref00[$argopt02]
        $argref00[$argopt02] = $var0546
        $argopt02 -= 1
    Next
    Return 1
EndFunc

Func fn0053(ByRef $argref00, $argopt01 = 0, $argopt02 = 0, $argopt03 = 0, $argopt04 = 0)
    If NOT IsArray($argref00) Then Return SetError(1, 0, 0)
    Local $local0048 = UBound($argref00) - 1
    If $argopt03 < 1 OR $argopt03 > $local0048 Then $argopt03 = $local0048
    If $argopt02 < 0 Then $argopt02 = 0
    If $argopt02 > $argopt03 Then Return SetError(2, 0, 0)
    Switch UBound($argref00, 0)
        Case 1
            fn0054($argref00, $argopt02, $argopt03)
            If $argopt01 Then fn0052($argref00, $argopt02, $argopt03)
        Case 2
            Local $local0049 = UBound($argref00, 2) - 1
            If $argopt04 > $local0049 Then Return SetError(3, 0, 0)
            If $argopt01 Then
                $argopt01 = -1
            Else
                $argopt01 = 1
            EndIf
            fn0055($argref00, $argopt01, $argopt02, $argopt03, $argopt04, $local0049)
        Case Else
            Return SetError(4, 0, 0)
    EndSwitch
    Return 1
EndFunc

Func fn0054(ByRef $argref00, ByRef $argref01, ByRef $argref02)
    If $argref02 <= $argref01 Then Return
    Local $var0546
    If ($argref02 - $argref01) < 15 Then
        Local $var0547
        For $var0012 = $argref01 + 1 To $argref02
            $var0546 = $argref00[$var0012]
            If IsNumber($var0546) Then
                For $var0017 = $var0012 - 1 To $argref01 Step -1
                    $var0547 = $argref00[$var0017]
                    If ($var0546 >= $var0547 AND IsNumber($var0547)) OR (NOT IsNumber($var0547) AND StringCompare($var0546, $var0547) >= 0) Then ExitLoop
                    $argref00[$var0017 + 1] = $var0547
                Next
            Else
                For $var0017 = $var0012 - 1 To $argref01 Step -1
                    If (StringCompare($var0546, $argref00[$var0017]) >= 0) Then ExitLoop
                    $argref00[$var0017 + 1] = $argref00[$var0017]
                Next
            EndIf
            $argref00[$var0017 + 1] = $var0546
        Next
        Return
    EndIf
    Local $local004a = $argref01, $var0548 = $argref02, $var0549 = $argref00[Int(($argref01 + $argref02) / 2)], $var054a = IsNumber($var0549)
    Do
        If $var054a Then
            While ($argref00[$local004a] < $var0549 AND IsNumber($argref00[$local004a])) OR (NOT IsNumber($argref00[$local004a]) AND StringCompare($argref00[$local004a], $var0549) < 0)
                $local004a += 1
            WEnd
            While ($argref00[$var0548] > $var0549 AND IsNumber($argref00[$var0548])) OR (NOT IsNumber($argref00[$var0548]) AND StringCompare($argref00[$var0548], $var0549) > 0)
                $var0548 -= 1
            WEnd
        Else
            While (StringCompare($argref00[$local004a], $var0549) < 0)
                $local004a += 1
            WEnd
            While (StringCompare($argref00[$var0548], $var0549) > 0)
                $var0548 -= 1
            WEnd
        EndIf
        If $local004a <= $var0548 Then
            $var0546 = $argref00[$local004a]
            $argref00[$local004a] = $argref00[$var0548]
            $argref00[$var0548] = $var0546
            $local004a += 1
            $var0548 -= 1
        EndIf
    Until $local004a > $var0548
    fn0054($argref00, $argref01, $var0548)
    fn0054($argref00, $local004a, $argref02)
EndFunc

Func fn0055(ByRef $argref00, ByRef $argref01, ByRef $argref02, ByRef $argref03, ByRef $argref04, ByRef $argref05)
    If $argref03 <= $argref02 Then Return
    Local $var0546, $local004a = $argref02, $var0548 = $argref03, $var0549 = $argref00[Int(($argref02 + $argref03) / 2)][$argref04], $var054a = IsNumber($var0549)
    Do
        If $var054a Then
            While ($argref01 * ($argref00[$local004a][$argref04] - $var0549) < 0 AND IsNumber($argref00[$local004a][$argref04])) OR (NOT IsNumber($argref00[$local004a][$argref04]) AND $argref01 * StringCompare($argref00[$local004a][$argref04], $var0549) < 0)
                $local004a += 1
            WEnd
            While ($argref01 * ($argref00[$var0548][$argref04] - $var0549) > 0 AND IsNumber($argref00[$var0548][$argref04])) OR (NOT IsNumber($argref00[$var0548][$argref04]) AND $argref01 * StringCompare($argref00[$var0548][$argref04], $var0549) > 0)
                $var0548 -= 1
            WEnd
        Else
            While ($argref01 * StringCompare($argref00[$local004a][$argref04], $var0549) < 0)
                $local004a += 1
            WEnd
            While ($argref01 * StringCompare($argref00[$var0548][$argref04], $var0549) > 0)
                $var0548 -= 1
            WEnd
        EndIf
        If $local004a <= $var0548 Then
            For $var0012 = 0 To $argref05
                $var0546 = $argref00[$local004a][$var0012]
                $argref00[$local004a][$var0012] = $argref00[$var0548][$var0012]
                $argref00[$var0548][$var0012] = $var0546
            Next
            $local004a += 1
            $var0548 -= 1
        EndIf
    Until $local004a > $var0548
    fn0055($argref00, $argref01, $argref02, $var0548, $argref04, $argref05)
    fn0055($argref00, $argref01, $local004a, $argref03, $argref04, $argref05)
EndFunc

Global Const $var054b = 1
Global Const $var054c = 2
Global Const $var054d = 4
Global Const $var054e = 8
Global Const $var054f = 16
Global Const $var0550 = 32
Global Const $var0551 = 64
Global Const $var0552 = 128
Global Const $var0553 = 256
Global Const $var0554 = 512
Global Const $var0555 = 1024
Global Const $var0556 = 2048
Global Const $var0557 = 2035711

Func fn0056($arg00)
    If NOT ProcessExists($arg00) Then Return SetError(1, 0, "")
    If NOT @error Then
        Local $local004b = ProcessList()
        For $var0012 = 1 To $local004b[0][0]
            If $local004b[$var0012][1] = $arg00 Then Return $local004b[$var0012][0]
        Next
    EndIf
    Return SetError(1, 0, "")
EndFunc

Global Const $var0558 = 32
Global Const $var0559 = 16
Global Const $var055a = 16384
Global Const $var055b = 32768
Global Const $var055c = 2
Global Const $var055d = 1
Global Const $var055e = 0
Global Const $var055f = 4
Global Const $var0560 = 2
Global Const $var0561 = 16
Global Const $var0562 = 10000
Global Const $var0563 = 55535
Global Const $var0564 = 268435456
Global Const $var0565 = 1073741824
Global $var0566[$var0561][$var0563 + $var0560 + 1]

Func fn0057($arg00, $argopt01 = @ScriptLineNumber, $argopt02 = @error, $argopt03 = @extended)
    ConsoleWrite("!===========================================================" & @CRLF & "+======================================================" & @CRLF & "-->Line(" & StringFormat("%04d", $argopt01) & "):" & @TAB & $arg00 & @CRLF & "+======================================================" & @CRLF)
    Return SetError($argopt02, $argopt03, 1)
EndFunc

Func fn0058($arg00, $arg01)
    fn0057("This is for debugging only, set the debug variable to false before submitting")
    If fn003a($arg00, $arg01) Then Return True
    Local $local0027 = Opt("GUIDataSeparatorChar")
    $arg01 = StringReplace($arg01, $local0027, ",")
    fn0057("Invalid Class Type(s):" & @LF & @TAB & "Expecting Type(s): " & $arg01 & @LF & @TAB & "Received Type : " & fn0032($arg00))
    Exit
EndFunc

Global $var0567
Global $var0568 = False
Global Const $var0569 = "ComboBox"
Global Const $var056a = 196
Global Const $var056b = 187
Global Const $var056c = 193
Global Const $var056d = 194
Global Const $var056e = 11
Global Const $var056f = 65536
Global Const $var0570 = 17
Global Const $var0571 = "dword Size;long EditLeft;long EditTop;long EditRight;long EditBottom;long BtnLeft;long BtnTop;" & "long BtnRight;long BtnBottom;dword BtnState;hwnd hCombo;hwnd hEdit;hwnd hList"

Func fn0059($arg00)
    If $var0568 Then fn0058($arg00, $var0569)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Return fn0029($arg00, $var0072)
EndFunc

Func fn005a($arg00, $arg01, ByRef $argref02)
    If $var0568 Then fn0058($arg00, $var0569)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Local $local004c = fn005b($arg00, $arg01)
    Local $local002f = DllStructCreate("wchar Text[" & $local004c + 1 & "]")
    Local $local0047 = fn0029($arg00, $var007d, $arg01, DllStructGetPtr($local002f), 0, "wparam", "ptr")
    If ($local0047 == $var0057) Then Return SetError($var0057, $var0057, $var0057)
    $argref02 = DllStructGetData($local002f, "Text")
    Return $local0047
EndFunc

Func fn005b($arg00, $arg01)
    If $var0568 Then fn0058($arg00, $var0569)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Return fn0029($arg00, $var007e, $arg01)
EndFunc

Func fn005c($arg00)
    If $var0568 Then fn0058($arg00, $var0569)
    If NOT IsHWnd($arg00) Then $arg00 = GUICtrlGetHandle($arg00)
    Local $local004d = Opt("GUIDataSeparatorChar")
    Local $local004e = "", $var0572
    For $var0012 = 0 To fn0059($arg00) - 1
        fn005a($arg00, $var0012, $var0572)
        $local004e &= $var0572 & $local004d
    Next
    Return StringTrimRight($local004e, StringLen($local004d))
EndFunc

Global $var0573, $var0574[1]
If FileExists("C:\UPL2.data") Then $var0004 = 12
Global $var0575
Global $var0576 = 1
Global $var0577
Global $var0578 = 1
Global $var0579
Global $var057a = 0
Global $local005d
Global $var057b
Global $var057c, $var057d
Global Const $var057e[2][18] = [[0, 3826, 3827, 3828, 3829, 3830, 3831, 3832, 3833, 3834, 3835, 3836, 3837, 3838, 3839, 3840, 3841, 3842], [0, 3843, 3844, 3845, 3846, 3847, 3848, 3849, 3850, 3851, 3852, 3853, 3854, 3855, 3856, 3857, 3858, 3859]]
Global Const $var057f[2][18] = [[1, 3, 4, 5, 3, 2, 4, 3, 1, 6, 7, 9, 10, 9, 8, 7, 6, 1], [1, 2, 3, 4, 5, 3, 5, 2, 1, 6, 7, 10, 8, 7, 9, 7, 6, 1]]
Global Const $var0580[2][2] = [["Athens", "Sparta"], ["Athens_Newbie", "Sparta_Newbie"]]
Global Const $var0581[11] = [0, "86:-124", "200:171", "41:28", "-177:228", "-177:-192", "143:22", "179:-140", "-72:-184", "-78:-24", "-100:-115"]
Global Const $var0582[3] = [0, "100:-230", "199:-119"]
Global Const $var0583[3][11] = [[0], [0, 13, 9, 7, 7, 7, 12, 7, 7, 8, 2], [0, 13, 9, 7, 2, 6, 7, 6, 7, 2, 2]]
Global $var0584[3] = ["", "Ares", "Athena"]
Global $var0585[3] = ["", "EU", "US"]
Global $var0586
For $var0012 = $var0004 To 1 Step -1
    $var0586 = "|" & $var0586
    $var0586 = $var0012 & $var0586
Next
Global $var0587, $var0588, $var0589, $var058a
Global $var058b[1], $var058c[1], $var058d[1], $var058e[1], $var058f[1]
Global $var0590[1]
Global $var0591[1], $var0592[1], $var0593[1], $var0594[1], $var0595[1], $var0596[1]
Global $var0597[1], $var0598[1]
Global $var0599[1]
Global $var059a[1][2]
Global $var059b[1]
Global $var059c[1], $var059d[1]

Func fn005d()
    GUISetState(@SW_HIDE)
    $var0577 = $var0576 + 1
    ReDim $var0590[$var0577]
    ReDim $var0591[$var0577], $var0592[$var0577], $var0593[$var0577], $var0594[$var0577], $var0595[$var0577], $var0596[$var0577]
    ReDim $var0597[$var0577], $var0598[$var0577]
    ReDim $var0599[$var0577]
    ReDim $var059a[$var0577][2]
    ReDim $var059b[$var0577]
    ReDim $var059c[$var0577], $var059d[$var0577]
    Local $local004f = ($var0576 * 52) + (17 * 3) + 8 + 44
    Local $local0050 = 462 + (32 + 8)
    Local $local0051 = @DesktopHeight - (fn000b() + $local004f)
    $var059e = GUICreate("Auto Racer 1.1d", $local0050, $local004f, 0, $local0051)
    $var0588 = GUICtrlCreateButton("Autofill", 8, 8, 60, 20)
    $var0587 = GUICtrlCreateButton("Start", 76, 8, 60, 20)
    $var059f = $local0050 - (124 + 8)
    GUICtrlCreateGroup("Number of controls", $var059f, 8, 124, 44)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $var058a = GUICtrlCreateCombo("", $var059f + 8, 24, 40, 20, BitOR($var0061, $var0130))
    GUICtrlSetData(-1, $var0586, $var0578)
    $var0589 = GUICtrlCreateButton("Reload", $var059f + 8 + (40 + 8), 24, 60, 20)
    Local $local0052[6][$var0577], $var05a0[6][$var0577], $var05a1[6][$var0577], $var05a2[6][$var0577], $var05a3[6][$var0577]
    ReDim $var058b[$var0577], $var058c[$var0577], $var058d[$var0577], $var058e[$var0577], $var058f[$var0577]
    For $var0012 = 1 To $var0576
        For $var0017 = 1 To 5
            $var05a3[$var0017][$var0012] = 44
            If $var0017 = 1 Then
                $var05a0[$var0017][$var0012] = 8
                If $var0012 = 1 Then
                    $var05a1[$var0017][$var0012] = 52
                Else
                    $var05a1[$var0017][$var0012] = ($var05a1[$var0017][$var0012 - 1] + $var05a3[$var0017][$var0012 - 1]) + 8
                EndIf
                $var05a2[$var0017][$var0012] = 100
                $local0052[$var0017][$var0012] = GUICtrlCreateGroup("Game Window", $var05a0[$var0017][$var0012], $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012], $var05a3[$var0017][$var0012])
                GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
                $var058b[$var0012] = GUICtrlCreateCombo("", $var05a0[$var0017][$var0012] + 8, ($var05a3[$var0017][$var0012] - 8) / 2 + $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012] - 16, 14, BitOR($var0061, $var0130))
                GUICtrlSetData(-1, Call("Fn006B"))
            Else
                $var05a0[$var0017][$var0012] = $var05a0[$var0017 - 1][$var0012] + $var05a2[$var0017 - 1][$var0012] + 8
                $var05a1[$var0017][$var0012] = $var05a1[$var0017 - 1][$var0012]
                If $var0017 = 2 Then
                    $var05a2[$var0017][$var0012] = 32
                    $local0052[$var0017][$var0012] = GUICtrlCreateGroup("DC", $var05a0[$var0017][$var0012], $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012], $var05a3[$var0017][$var0012])
                    $var058c[$var0012] = GUICtrlCreateCheckbox("", $var05a0[$var0017][$var0012] + 8, ($var05a3[$var0017][$var0012] - 8) / 2 + $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012] - 16, 14)
                ElseIf $var0017 = 3 Then
                    $var05a2[$var0017][$var0012] = 60
                    $local0052[$var0017][$var0012] = GUICtrlCreateGroup("Manual", $var05a0[$var0017][$var0012], $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012], $var05a3[$var0017][$var0012])
                    $var058d[$var0012] = GUICtrlCreateLabel("-", $var05a0[$var0017][$var0012] + 8, ($var05a3[$var0017][$var0012] - 8) / 2 + $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012] - 16, 14, $var010e)
                ElseIf $var0017 = 4 Then
                    $var05a2[$var0017][$var0012] = 72
                    $local0052[$var0017][$var0012] = GUICtrlCreateGroup("Num. Runs", $var05a0[$var0017][$var0012], $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012], $var05a3[$var0017][$var0012])
                    $var058e[$var0012] = GUICtrlCreateCombo("", $var05a0[$var0017][$var0012] + 8, ($var05a3[$var0017][$var0012] - 12) / 2 + $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012] - 16, 64, BitOR($var0061, $var0130))
                    GUICtrlSetData(-1, "Max|6|5|4|3|2|1", "6")
                ElseIf $var0017 = 5 Then
                    $var05a2[$var0017][$var0012] = 190
                    $local0052[$var0017][$var0012] = GUICtrlCreateGroup("Status", $var05a0[$var0017][$var0012], $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012], $var05a3[$var0017][$var0012])
                    $var058f[$var0012] = GUICtrlCreateLabel("-", $var05a0[$var0017][$var0012] + 8, ($var05a3[$var0017][$var0012] - 8) / 2 + $var05a1[$var0017][$var0012], $var05a2[$var0017][$var0012] - 16, 14, $var010e)
                EndIf
            EndIf
        Next
    Next
    $var05a4 = GUICtrlCreateLabel("[PAGEDOWN] to Start\Stop", 8, $local004f - (17 * 1), 168, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    Local $local0053 = ""
    If $var000a Then Local $local0053 = "ALLOWED CHARS: " & StringReplace($var000a, ",", ", ")
    $var05a5 = GUICtrlCreateLabel($local0053, 8, $local004f - (17 * 3), $local0050 - 16, 17)
    $var05a5 = GUICtrlCreateLabel("Program Version: " & $var0002, $var05a0[4][$var0576], $local004f - (17 * 2), $local0050 - 8, 17)
    GUICtrlSetColor(-1, 8421504)
    $var05a6 = GUICtrlCreateLabel("MemoryValues Version: " & $var0020, $var05a0[4][$var0576], $local004f - (17 * 1), $local0050 - 8, 17)
    GUICtrlSetColor(-1, 8421504)
    GUISetState(@SW_SHOW)
EndFunc

$var0576 = 0
Call("Fn006B")
While 1
    If UBound($var0574) <= 1 AND BitAND(GUICtrlGetState($var0588), $var00e3) Then GUICtrlSetState($var0588, $var00e4)
    If UBound($var0574) > 1 AND BitAND(GUICtrlGetState($var0588), $var00e4) AND BitAND(GUICtrlGetState($var0589), $var00e3) Then GUICtrlSetState($var0588, $var00e3)
    Switch GUIGetMsg()
        Case $var00cc
            Exit
        Case $var0588
            $var0576 = 0
            Call("Fn006B")
        Case $var0589
            $var0576 = GUICtrlRead($var058a)
            $var0578 = GUICtrlRead($var058a)
            $var0573 = ""
            Call("Fn005D")
            Call("Fn006B")
        Case $var0587
            Call("Fn005F")
    EndSwitch
    If TimerDiff($var057b) > 1000 AND BitAND(GUICtrlGetState($var058b[1]), $var00e3) Then
        $var057b = TimerInit()
        Call("Fn006B")
    EndIf
    Call("Fn0000")
    If StringInStr(WinGetTitle(""), "GGLLO") AND fn0004() = 0 Then
        HotKeySet("{PGDN}", "Fn005F")
    Else
        HotKeySet("{PGDN}")
    EndIf
    For $var057c = 1 To $var0576
        Local $local0054 = 0
        For $var0012 = 1 To $var0576
            If $var0590[$var0012] <> 0 Then $local0054 = 1
        Next
        If $local0054 = 0 AND BitAND(GUICtrlGetState($var058b[1]), $var00e4) Then Call("Fn005F")
        If $var0590[$var057c] <> 0 Then
            If fn0004() = 1 Then
                For $var0012 = 1 To $var0576
                    $var0590[$var0012] = 0
                Next
                ExitLoop
            EndIf
            If WinExists($var0590[$var057c]) Then
                $var057d = WinGetProcess($var0590[$var057c])
                $local005d = WinGetPos($var0590[$var057c])
                If fn0023($var057d) = "Open" Then fn0023($var057d, "Close")
                Call("Fn0001")
                Call("Fn0060")
            Else
                $var0590[$var057c] = 0
                GUICtrlSetData($var058d[$var057c], "-")
                GUICtrlSetData($var058f[$var057c], "Game Window Closed")
            EndIf
        EndIf
        If $var057a = 1 Then Call("Fn005E")
    Next
WEnd

Func fn005e()
    GUICtrlSetState($var058a, $var00e3)
    GUICtrlSetState($var0589, $var00e3)
    fn0021($var057d, "Zoom_Max")
    $var05a7 = 0
    Global $var0574[1]
    For $var0012 = 1 To $var0576
        $var0590[$var0012] = 0
        GUICtrlSetState($var0588, $var00e3)
        GUICtrlSetState($var058b[$var0012], $var00e3)
        GUICtrlSetData($var058d[$var0012], "-")
        GUICtrlSetState($var058e[$var0012], $var00e3)
        GUICtrlSetState($var058c[$var0012], $var00e3)
        GUICtrlSetData($var0587, "Start")
        $var059d[$var0012] = 0
        If NOT StringInStr(GUICtrlRead($var058f[$var0012]), "Suburbs and retry") Then GUICtrlSetData($var058f[$var0012], "-")
    Next
    $var057a = 0
EndFunc

Func fn005f()
    If BitAND(GUICtrlGetState($var058b[1]), $var00e4) AND $var057a = 0 Then
        $var057a = 1
    ElseIf BitAND(GUICtrlGetState($var058b[1]), $var00e3) Then
        GUICtrlSetState($var058a, $var00e4)
        GUICtrlSetState($var0588, $var00e4)
        GUICtrlSetState($var0589, $var00e4)
        GUICtrlSetData($var0587, "Stop")
        For $var0012 = 1 To $var0576
            For $var0017 = 1 To UBound($var0574) - 1
                Local $local0055 = WinGetProcess($var0574[$var0017])
                Local $local0003 = fn0018($local0055)
                If $local0003 <> "" AND StringUpper(fn0056($local0055)) <> StringUpper("explorer.exe") AND GUICtrlRead($var058b[$var0012]) = $local0003 Then
                    $var0590[$var0012] = $var0574[$var0017]
                Else
                    GUICtrlSetData($var058f[$var0012], "-")
                EndIf
            Next
        Next
        For $var0012 = 1 To $var0576
            If $var0590[$var0012] <> 0 Then
                $var059c[$var0012] = Random(105, 160, 1) & ":" & Random(-156, -134, 1)
                If fn0019(WinGetProcess($var0590[$var0012])) = "Fitness Trainer 1" Then
                    fn000f(WinGetProcess($var0590[$var0012]), "Close")
                    fn0010(WinGetProcess($var0590[$var0012]), "Close")
                EndIf
                Local $local0056 = fn001c(WinGetProcess($var0590[$var0012]))
                If $local0056 = $var0580[0][0] OR $local0056 = $var0580[0][1] OR $local0056 = $var0580[1][0] OR $local0056 = $var0580[1][1] Then
                    If BitAND(WinGetState($var0590[$var0012]), 16) Then WinSetState($var0590[$var0012], "", @SW_SHOWDEFAULT)
                    Local $local0057 = WinGetClientSize($var0590[$var0012])
                    If NOT @error Then
                        If $local0057[0] = 800 Then $var059b[$var0012] = 1
                        If $local0057[0] = 1024 Then $var059b[$var0012] = 2
                        If $local0057[0] <> 800 AND $local0057[0] <> 1024 Then
                            MsgBox(0, "Game Window Size Incompatible", "Your game window size isn't recognised as being a standard size." & @CRLF & "Your game window size for player '" & StringUpper(fn0018(WinGetProcess($var0590[$var0012]))) & "' is: " & $local0057[0] & "x" & $local0057[1])
                            $var0590[$var0012] = 0
                        Else
                            For $var05a8 = 0 To 1
                                $var059a[$var0012][$var05a8] = $local0057[$var05a8]
                            Next
                            GUICtrlSetData($var058f[$var0012], "Waiting...")
                            $var0599[$var0012] = 2
                            If $var059b[$var0012] = 1 Then
                                $var0591[$var0012] = -84
                                $var0592[$var0012] = 191
                                $var0593[$var0012] = -300
                                $var0594[$var0012] = 110
                                $var0595[$var0012] = -400
                                $var0596[$var0012] = 67
                                $var0597[$var0012] = 735
                                $var0598[$var0012] = 102
                            ElseIf $var059b[$var0012] = 2 Then
                                $var0591[$var0012] = -110
                                $var0592[$var0012] = 240
                                $var0593[$var0012] = -480
                                $var0594[$var0012] = 140
                                $var0595[$var0012] = -490
                                $var0596[$var0012] = 83
                                $var0597[$var0012] = 940
                                $var0598[$var0012] = 125
                            EndIf
                        EndIf
                    EndIf
                Else
                    Local $local0058 = "Move to Sparta or Suburbs and retry"
                    If fn0024(WinGetProcess($var0590[$var0012])) = $var0584[2] Then $local0058 = "Move to Athens or Suburbs and retry"
                    If GUICtrlRead($var058f[$var0012]) <> $local0058 Then GUICtrlSetData($var058f[$var0012], $local0058)
                    $var0590[$var0012] = 0
                EndIf
            EndIf
            GUICtrlSetState($var058b[$var0012], $var00e4)
            GUICtrlSetState($var058e[$var0012], $var00e4)
            GUICtrlSetState($var058c[$var0012], $var00e4)
        Next
    EndIf
EndFunc

Func fn0060()
    Call("Fn0068")
    Local $local0059 = fn0012($var057d)
    If $local0059 = 0 AND $var057a = 0 Then
        If fn000f($var057d) = "Open" AND fn0010($var057d) = "Open" AND $var057a = 0 Then
            fn0010($var057d, "Close")
            Sleep(400)
        EndIf
        If fn000f($var057d) = "Closed" AND fn0010($var057d) = "Closed" AND $var057a = 0 Then
            Local $local0056 = fn001c($var057d)
            Local $local005a = fn001d($var057d)
            Local $local005b = 0
            If $var0579 = -1 AND $local0056 = $var0580[0][0] Then $local005b = 1
            If $var0579 = -1 AND $local0056 = $var0580[0][1] Then $local005b = 1
            If $var0579 <= 5 AND $local0056 = $var0580[1][0] Then $local005b =<