Function at 0x100297c8
Capabilities:
Accept command line arguments
Create process on windows
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10029e0c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x318], 2
mov dword [ebp - 0x2f4], 1
mov dword [ebp - 0x2c0], 0xb457102d
mov dword [ebp - 0x2c4], 0x6748f69f
mov dword [ebp - 0x2cc], 0x14b733c6
mov dword [ebp - 0x2d4], 0x6b6eb6b9
mov dword [ebp - 0x2dc], 0xaa29c146
mov dword [ebp - 0x2e4], 0xfffffff6
mov dword [ebp - 0x2f0], 0x182abbf9
mov dword [ebp - 0x2f8], 0xffffffff
mov dword [ebp - 0xe0], 0x5a519d81
mov dword [ebp - 0x8c], 0
jmp 0x10029883
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 2
jge 0x1002989f
mov eax, dword [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x2ec], 0x865b49d5
jmp 0x10029876
mov eax, dword [ebp - 0xe0]
dec eax
mov dword [ebp - 0xe0], eax
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x2ec], 0x4145c174
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0xc0], 0xcd53bc6e
mov dword [ebp - 0x54], 0xffff
push 2
lea ecx, [ebp - 0x2ac]
call fcn.1001b841
and dword [ebp - 4], 0
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0x158], 0xfffffffe
mov dword [ebp - 0x300], 0x9e13c95
mov dword [ebp - 0x78], 0
jmp 0x10029935
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 2
jge 0x10029951
push dword [ebp - 0x78]
lea ecx, [ebp - 0x2ac]
call fcn.1001b8b2
mov dword [eax], 1
jmp 0x1002992e
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x1e0]
mov dword [ebp - 0x1b4], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp + eax - 0x1e0], ecx
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x1002999d
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
inc eax
je 0x10029b4c
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0xa4], 0x8dc5
mov dword [ebp - 0xdc], 0xb35f1971
mov byte [ebp - 0x3f], 0
movzx eax, byte [ebp - 0x3f]
test eax, eax
je 0x100299d4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x31c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x58]
cmp dword [ebp + eax - 0x1e0], ecx
jne 0x10029a04
mov dword [ebp - 0xd4], 1
jmp 0x10029a0b
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0x7d6b
je 0x10029a23
mov dword [ebp - 0xb8], 1
jmp 0x10029a2a
and dword [ebp - 0xb8], 0
push 0
lea ecx, [ebp - 0x2ac]
call fcn.1001b8b2
mov ecx, dword [ebp - 0xb8]
mov dword [eax], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1e0]
cmp eax, dword [ebp - 0xb8]
jge 0x10029a60
mov dword [ebp - 0x1e4], 1
jmp 0x10029a67
and dword [ebp - 0x1e4], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2bc], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x20c]
cmp dword [ebp + eax - 0x1e0], ecx
jge 0x10029a90
mov dword [ebp - 0xb0], 1
jmp 0x10029a97
and dword [ebp - 0xb0], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x1e0], ecx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0xb0], eax
jle 0x10029ac7
cmp dword [ebp - 0xa4], 0
jne 0x10029ac7
and dword [ebp - 0x1bc], 0
jmp 0x10029ad1
mov dword [ebp - 0x1bc], 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x58], eax
jg 0x10029b06
mov dword [ebp - 0x1c4], 1
jmp 0x10029b0d
and dword [ebp - 0x1c4], 0
cmp dword [ebp - 0x1c4], 0x5c6a81d6
jl 0x10029b22
cmp dword [ebp - 0xa4], 0
je 0x10029b37
mov eax, 0x68fc
test eax, eax
je 0x10029b37
mov dword [ebp - 0x160], 1
jmp 0x10029b3e
and dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x158], eax
jmp 0x10029b60
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x10029b60
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xac]
imul eax, dword [ebp - 0x54]
cmp eax, 0x7e12fd89
jge 0x10029b7d
mov dword [ebp - 0xe8], 1
jmp 0x10029b84
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x158], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.1001b8ad
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
movzx eax, byte [eax]
test eax, eax
je 0x10029bbe
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], 0
push 2
lea ecx, [ebp - 0x23c]
call fcn.1001b841
mov dword [ebp - 4], 1
mov dword [ebp - 0x170], 0xb0cadfb1
mov dword [ebp - 0x20], 0
jmp 0x10029bf3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x10029c0f
push dword [ebp - 0x20]
lea ecx, [ebp - 0x23c]
call fcn.1001b8b2
mov dword [eax], 0xffff
jmp 0x10029bec
mov dword [ebp - 0x20], 0
jmp 0x10029c1f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10029c35
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x334], 0xb56cef3c
jmp 0x10029c18
cmp dword [ebp - 0x14], 0
je 0x10029dab
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
je 0x10029c53
mov dword [ebp - 0x15c], 1
jmp 0x10029c5a
and dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jle 0x10029c74
cmp dword [ebp - 0x14], 0
je 0x10029c74
mov dword [ebp - 0xf0], 1
jmp 0x10029c7b
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0xf0]
cmp dword [ebp - 0x15c], eax
jne 0x10029c99
mov dword [ebp - 0xf8], 1
jmp 0x10029ca0
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xf8], eax
je 0x10029cb7
mov dword [ebp - 0x1b8], 1
jmp 0x10029cbe
and dword [ebp - 0x1b8], 0
push 0
lea ecx, [ebp - 0x23c]
call fcn.1001b8b2
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xb4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1fc]
cmp eax, dword [ebp - 0x220]
jge 0x10029d16
mov dword [ebp - 0x100], 1
jmp 0x10029d1d
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x100], eax
jle 0x10029d3a
cmp dword [ebp - 0x14], 0
je 0x10029d3a
mov dword [ebp - 0x168], 1
jmp 0x10029d41
and dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x14]
jne 0x10029d5b
mov dword [ebp - 0x108], 1
jmp 0x10029d62
and dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 1
jbe 0x10029d7d
push 0
lea ecx, [ebp - 0x23c]
call fcn.1001b8b2
cmp dword [eax], 0
jne 0x10029d8f
cmp dword [ebp - 0x14], 0
je 0x10029d8f
mov dword [ebp - 0x198], 1
jmp 0x10029d96
and dword [ebp - 0x198], 0
cmp dword [ebp - 0x198], 0xfffffff6
jl 0x10029dab
mov dword [ebp - 0x110], 1
jmp 0x10029db2
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x2fc], eax
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x334], 0xffffffff
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x10029df8
push 0x5f5
push 0x12b4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.1001b8ad
jmp 0x1002ad06
mov dword [ebp - 0x10], 0x7e17f75
mov dword [ebp - 0x1f8], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jle 0x10029e38
cmp dword [ebp - 0x10], 0
je 0x10029e4a
cmp dword [ebp - 0x10], 0
je 0x10029e4a
mov dword [ebp - 0x118], 1
jmp 0x10029e51
and dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x87a7525d
je 0x10029e69
mov dword [ebp - 0x1b0], 1
jmp 0x10029e70
and dword [ebp - 0x1b0], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1b0], eax
jl 0x10029e87
mov dword [ebp - 0x120], 1
jmp 0x10029e8e
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x120]
jg 0x10029ea5
mov dword [ebp - 0x178], 1
jmp 0x10029eac
and dword [ebp - 0x178], 0
cmp dword [ebp - 0x178], 0xce008fb0
ja 0x10029ec4
mov dword [ebp - 0x128], 1
jmp 0x10029ecb
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x128], eax
jg 0x10029ee2
mov dword [ebp - 0x1a0], 1
jmp 0x10029ee9
and dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x10], 0xffffffec
jmp 0x10029f05
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x32
jge 0x10029f2d
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x10029f2b
push 0x420
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp 0x10029efe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x5c], 0x9fdf99ff
mov dword [ebp - 0x98], 0
jmp 0x10029f56
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 3
jge 0x10029f72
mov eax, dword [ebp - 0x98]
mov dword [ebp + eax*4 - 0x340], 0x7812a3cc
jmp 0x10029f49
mov dword [ebp - 0x5c], 0
jmp 0x10029f82
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffea
jle 0x1002a1bd
mov dword [ebp - 0x2c], 1
imul eax, dword [ebp - 0x2c], 0xffff
test eax, eax
jne 0x1002a025
cmp dword [ebp - 0x2c], 1
jge 0x10029fb4
mov dword [ebp - 0x130], 1
jmp 0x10029fbb
and dword [ebp - 0x130], 0
cmp dword [ebp - 0x130], 8
jne 0x10029fd0
mov dword [ebp - 0x180], 1
jmp 0x10029fd7
and dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x180], eax
jne 0x10029fee
mov dword [ebp - 0x138], 1
jmp 0x10029ff5
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x138], eax
jg 0x1002a00c
mov dword [ebp - 0x1c0], 1
jmp 0x1002a013
and dword [ebp - 0x1c0], 0
cmp dword [ebp - 0x1c0], 0xfffffff7
je 0x1002a025
and dword [ebp - 0x140], 0
jmp 0x1002a02f
mov dword [ebp - 0x140], 1
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x140]
mov dword [ebp + eax - 0x340], ecx
mov dword [ebp - 0x2c], 0
jmp 0x1002a052
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 7
jg 0x1002a1b8
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x80], 0
jmp 0x1002a073
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 2
jg 0x1002a1b3
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 0x90], 0
jmp 0x1002a0a0
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 2
jg 0x1002a185
push 1
lea ecx, [ebp - 0x21c]
call fcn.1001b841
mov dword [ebp - 4], 2
mov dword [ebp - 0x70], 0
jmp 0x1002a0d1
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 1
jge 0x1002a0ea
push dword [ebp - 0x70]
lea ecx, [ebp - 0x21c]
call fcn.1001b8b2
and dword [eax], 0
jmp 0x1002a0ca
push 0
lea ecx, [ebp - 0x21c]
call fcn.1001b8b2
and dword [eax], 0
jmp 0x1002a120
push 0
lea ecx, [ebp - 0x21c]
call fcn.1001b8b2
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x188]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x21c]
call fcn.1001b8b2
cmp dword [eax], 2
jg 0x1002a15b
mov byte [ebp - 0x3e], 0
movzx eax, byte [ebp - 0x3e]
test eax, eax
je 0x1002a159
push 0x1804
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
jmp 0x1002a0fc
mov byte [ebp - 0x3d], 0
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x1002a171
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.1001b8ad
jmp 0x1002a093
mov byte [ebp - 0x26], 0
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x1002a1ae
push 0
push 0
push 0
push 0
push 0xd64
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1002a06c
jmp 0x1002a04b
jmp 0x10029f7b
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x74], 0x664a1160
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x294], 0x2b75
mov dword [ebp - 0x290], 0x2b75
mov dword [ebp - 0x28c], 0x2b75
mov dword [ebp - 0x288], 0x2b75
lea ecx, [ebp - 0xa5]
call fcn.1000db63
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x350]
call fcn.1001b8c1
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x260]
call fcn.1001b883
mov dword [ebp - 4], 3
mov byte [ebp - 0x27], 0
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x1002a262
push 0
push 0x533
push 0x1962
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0xfffffffffffffff6
pop eax
test eax, eax
je 0x1002a27b
cmp dword [ebp - 0x1c], 0
je 0x1002a27b
mov dword [ebp - 0x230], 1
jmp 0x1002a282
and dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002a2a0
cmp dword [ebp - 0x1c], 0
jne 0x1002a2a0
and dword [ebp - 0x148], 0
jmp 0x1002a2aa
mov dword [ebp - 0x148], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x1c]
add eax, ecx
cmp eax, dword [ebp - 0x148]
jge 0x1002a2d3
mov eax, 0x12f3ccd2
test eax, eax
je 0x1002a2d3
mov dword [ebp - 0x1a8], 1
jmp 0x1002a2da
and dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002a2fb
mov eax, 0xb4709ba8
test eax, eax
je 0x1002a310
mov eax, 0xb5d1cb6a
test eax, eax
je 0x1002a310
mov dword [ebp - 0x150], 1
jmp 0x1002a317
and dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x74], 0
je 0x1002a33b
mov eax, 0x5f40e13f
test eax, eax
je 0x1002a33b
mov dword [ebp - 0x190], 1
jmp 0x1002a342
and dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x190], eax
jne 0x1002a35f
cmp dword [ebp - 0x34], 0
je 0x1002a35f
mov dword [ebp - 0xc8], 1
jmp 0x1002a366
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0xfffffffb
ja 0x1002a46f
mov dword [ebp - 0xbc], 0xf69a
mov dword [ebp - 0xc4], 0x40c8
cmp dword [ebp - 0x74], 0
jne 0x1002a3a0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x304], eax
cmp dword [ebp - 0xbc], 0
or eax, 0xffffffff
cmp eax, 0xffffffff
jae 0x1002a3b4
mov dword [ebp - 0xe4], 1
jmp 0x1002a3bb
and dword [ebp - 0xe4], 0
push 1
lea ecx, [ebp - 0x260]
call fcn.1001b8b2
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xbc]
cmp dword [eax], ecx
jne 0x1002a3e4
mov dword [ebp - 0x200], 1
jmp 0x1002a3eb
and dword [ebp - 0x200], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0xc4], 0x379a1d12
jne 0x1002a40f
mov dword [ebp - 0xec], 1
jmp 0x1002a416
and dword [ebp - 0xec], 0
push 2
lea ecx, [ebp - 0x260]
call fcn.1001b8b2
mov ecx, dword [ebp - 0xec]
cmp ecx, dword [eax]
jle 0x1002a439
mov dword [ebp - 0xf4], 1
jmp 0x1002a440
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xc4]
cmp dword [ebp - 0xf4], eax
je 0x1002a45a
mov dword [ebp - 0xfc], 1
jmp 0x1002a461
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x34], eax
jmp 0x1002a558
mov dword [ebp - 0x104], 0x320ba2c
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x34], 0
jmp 0x1002a490
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff8
jg 0x1002a50d
push 1
lea ecx, [ebp - 0x310]
call fcn.1001b841
mov byte [ebp - 4], 4
mov dword [ebp - 0x22c], 0x17c927db
mov dword [ebp - 0x68], 0
jmp 0x1002a4c1
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 1
jge 0x1002a4dd
push dword [ebp - 0x68]
lea ecx, [ebp - 0x310]
call fcn.1001b8b2
mov dword [eax], 0xef4fc6a3
jmp 0x1002a4ba
mov eax, dword [ebp - 0x104]
inc eax
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x310]
call fcn.1001b8ad
jmp 0x1002a489
cmp dword [ebp - 0x24], 0
je 0x1002a52b
mov byte [ebp - 0x40], 0
movzx eax, byte [ebp - 0x40]
test eax, eax
je 0x1002a529
push 0
push 0
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
jmp 0x1002a558
mov dword [ebp - 0x24], 0
jmp 0x1002a53b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jg 0x1002a558
push dword [ebp - 0x24]
lea ecx, [ebp - 0x260]
call fcn.1001b8b2
cmp dword [eax], 0
je 0x1002a556
jmp 0x1002a558
jmp 0x1002a534
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.1001b8ad
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x18], 0xed680444
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x280], 0xea4c5706
mov dword [ebp - 0x27c], 0xea4c5706
mov dword [ebp - 0x278], 0xea4c5706
mov dword [ebp - 0x274], 0xea4c5706
lea ecx, [ebp - 0x9d]
call fcn.1000db63
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x348]
call fcn.1001b8c1
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x2b8]
call fcn.1001b883
mov dword [ebp - 4], 5
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x18], eax
je 0x1002a600
mov dword [ebp - 0x10c], 1
jmp 0x1002a607
and dword [ebp - 0x10c], 0
cmp dword [ebp - 0x10c], 7
jb 0x1002a61c
mov dword [ebp - 0x114], 1
jmp 0x1002a623
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x114], eax
jg 0x1002a63a
mov dword [ebp - 0x124], 1
jmp 0x1002a641
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jge 0x1002a655
mov dword [ebp - 0x11c], 1
jmp 0x1002a65c
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 1
ja 0x1002a671
mov dword [ebp - 0x12c], 1
jmp 0x1002a678
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x12c]
jge 0x1002a692
mov dword [ebp - 0x134], 1
jmp 0x1002a699
and dword [ebp - 0x134], 0
cmp dword [ebp - 0x134], 0x977a
jge 0x1002a6b1
mov dword [ebp - 0x13c], 1
jmp 0x1002a6b8
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x13c], eax
jg 0x1002a6cd
cmp dword [ebp - 0x64], 0
je 0x1002a7dd
mov dword [ebp - 0x7c], 0
jmp 0x1002a6dd
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 3
jge 0x1002a6f3
mov eax, dword [ebp - 0x7c]
mov dword [ebp + eax*4 - 0x248], 5
jmp 0x1002a6d6
push 4
pop eax
shl eax, 0
mov esi, dword [ebp + eax - 0x248]
push 3
lea ecx, [ebp - 0x2b8]
call fcn.1001b8b2
add esi, dword [eax]
imul esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x18]
jl 0x1002a724
mov dword [ebp - 0x144], 1
jmp 0x1002a72b
and dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x144]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x248]
je 0x1002a74f
mov dword [ebp - 0x14c], 1
jmp 0x1002a756
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x14c]
add eax, 0xebf3
cmp eax, 0x1355fff8
jge 0x1002a784
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x248], 0
je 0x1002a784
mov dword [ebp - 0x154], 1
jmp 0x1002a78b
and dword [ebp - 0x154], 0
cmp dword [ebp - 0x154], 0xffff
jb 0x1002a7a3
mov dword [ebp - 0x164], 1
jmp 0x1002a7aa
and dword [ebp - 0x164], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x248]
cmp eax, dword [ebp - 0x164]
jle 0x1002a7cb
mov dword [ebp - 0x16c], 1
jmp 0x1002a7d2
and dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x64], eax
jmp 0x1002a809
mov dword [ebp - 0x18], 0
jmp 0x1002a7ed
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x1002a809
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2b8]
call fcn.1001b8b2
mov dword [eax], 0xd3ed23c5
jmp 0x1002a7e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.1001b8ad
mov eax, dword [ebp - 0x224]
movzx eax, byte [eax]
test eax, eax
je 0x1002a82b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 1
lea ecx, [ebp - 0x1d0]
call fcn.1001b841
mov dword [ebp - 4], 6
mov dword [ebp - 0x44], 0x35c5735
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x184], 0xc3825062
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x4c], 0xfffffff7
mov dword [ebp - 0x3c], 0xb8c105a8
mov dword [ebp - 0x60], 0x5077045b
mov dword [ebp - 0x1f4], 0x12ef
mov dword [ebp - 0x84], 0
jmp 0x1002a899
mov eax, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 1
jge 0x1002a8bb
push dword [ebp - 0x84]
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
mov dword [eax], 4
jmp 0x1002a88c
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
cmp dword [eax], 0xa5ef
jl 0x1002a8dc
mov dword [ebp - 0x18c], 1
jmp 0x1002a8e3
and dword [ebp - 0x18c], 0
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
cmp dword [eax], 1
jg 0x1002a901
mov dword [ebp - 0x174], 1
jmp 0x1002a908
and dword [ebp - 0x174], 0
mov eax, dword [ebp - 0x210]
cmp dword [ebp - 0x174], eax
jge 0x1002a922
mov dword [ebp - 0x17c], 1
jmp 0x1002a929
and dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x324], eax
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
cmp dword [ebp - 0x4c], 0x94b2
jg 0x1002a969
mov dword [ebp - 0x194], 1
jmp 0x1002a970
and dword [ebp - 0x194], 0
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
mov eax, dword [eax]
imul eax, dword [ebp - 0x18c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x194]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], 0
jmp 0x1002a9ae
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jg 0x1002acf7
mov dword [ebp - 0x88], 0x7245c2f1
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x3c], 0
jmp 0x1002a9df
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jg 0x1002acf2
push 4
lea ecx, [ebp - 0x26c]
call fcn.1001b841
mov byte [ebp - 4], 7
mov dword [ebp - 0x6c], 0
jmp 0x1002aa0a
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 4
jge 0x1002aa26
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x26c]
call fcn.1001b8b2
mov dword [eax], 0xfffffff7
jmp 0x1002aa03
mov dword [ebp - 0x4c], 0
jmp 0x1002aa36
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jg 0x1002acde
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x48], 0
jmp 0x1002aa61
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jg 0x1002acd9
push 3
lea ecx, [ebp - 0x254]
call fcn.1001b841
mov byte [ebp - 4], 8
mov dword [ebp - 0x1e8], 0x6f4c35c2
mov dword [ebp - 0x94], 0
jmp 0x1002aa9f
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 3
jge 0x1002aac1
push dword [ebp - 0x94]
lea ecx, [ebp - 0x254]
call fcn.1001b8b2
mov dword [eax], 0x84725324
jmp 0x1002aa92
mov eax, dword [ebp - 0x50]
add eax, 0x3a15
cmp dword [ebp - 0x50], eax
jg 0x1002aada
mov dword [ebp - 0x19c], 1
jmp 0x1002aae1
and dword [ebp - 0x19c], 0
imul eax, dword [ebp - 0x19c], 0
test eax, eax
je 0x1002ab11
mov dword [ebp - 0x60], 0
jmp 0x1002aafc
mov eax, dword [ebp - 0x60]
dec eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jl 0x1002ab0c
cmp dword [ebp - 0x3c], 0
je 0x1002ab0a
jmp 0x1002ab0c
jmp 0x1002aaf5
jmp 0x1002acc5
push 3
lea ecx, [ebp - 0x2a0]
call fcn.1001b841
mov byte [ebp - 4], 9
mov dword [ebp - 0x9c], 0
jmp 0x1002ab3b
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 3
jge 0x1002ab5a
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x2a0]
call fcn.1001b8b2
or dword [eax], 0xffffffff
jmp 0x1002ab2e
mov dword [ebp - 0x50], 0
jmp 0x1002ab6a
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jg 0x1002acb6
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2e0], eax
mov eax, 0x369029ef
test eax, eax
je 0x1002ac74
push 1
lea ecx, [ebp - 0x254]
call fcn.1001b8b2
mov eax, dword [eax]
add eax, 0x5dda
imul eax, dword [ebp - 0x88]
test eax, eax
jne 0x1002abc7
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1001b8b2
cmp dword [eax], 0
jne 0x1002abc7
and dword [ebp - 0x1a4], 0
jmp 0x1002abd1
mov dword [ebp - 0x1a4], 1
push 0
lea ecx, [ebp - 0x26c]
call fcn.1001b8b2
mov ecx, dword [ebp - 0x1a4]
cmp ecx, dword [eax]
je 0x1002abf4
mov dword [ebp - 0x1ac], 1
jmp 0x1002abfb
and dword [ebp - 0x1ac], 0
cmp dword [ebp - 0x1ac], 0
je 0x1002ac10
mov dword [ebp - 0xcc], 1
jmp 0x1002ac17
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0xcc], eax
jne 0x1002ac31
mov dword [ebp - 0x1ec], 1
jmp 0x1002ac38
and dword [ebp - 0x1ec], 0
push 0
lea ecx, [ebp - 0x26c]
call fcn.1001b8b2
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x314], eax
push 2
lea ecx, [ebp - 0x2a0]
call fcn.1001b8b2
imul eax, dword [eax], 0xffff
test eax, eax
je 0x1002ac74
mov dword [ebp - 0xd0], 1
jmp 0x1002ac7b
and dword [ebp - 0xd0], 0
push 1
lea ecx, [ebp - 0x254]
call fcn.1001b8b2
mov ecx, dword [ebp - 0xd0]
cmp ecx, dword [eax]
jne 0x1002ac9e
mov dword [ebp - 0xd8], 1
jmp 0x1002aca5
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x1e8], eax
jmp 0x1002ab63
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2a0]
call fcn.1001b8ad
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x254]
call fcn.1001b8ad
jmp 0x1002aa5a
jmp 0x1002aa2f
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x26c]
call fcn.1001b8ad
jmp 0x1002a9d8
jmp 0x1002a9a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d0]
call fcn.1001b8ad
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret