Function at 0x10016b00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bfef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x64], 0
jmp 0x10016b36
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
jge 0x10016b4c
mov eax, dword [ebp - 0x64]
mov dword [ebp + eax*4 - 0x1c0], 0x3342eb9
jmp 0x10016b2f
mov dword [ebp - 0x1c], 0
jmp 0x10016b5c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jg 0x10016be1
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x18], 1
jmp 0x10016b79
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10016ba4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x1c0]
mov dword [ebp + ecx*4 - 0x1c0], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x1c0], 0
je 0x10016ba2
jmp 0x10016ba4
jmp 0x10016b72
mov dword [ebp - 0x18], 0
jmp 0x10016bb4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x10016bdc
mov byte [ebp - 0x37], 0
movzx eax, byte [ebp - 0x37]
test eax, eax
je 0x10016bda
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
jmp 0x10016bad
jmp 0x10016b55
mov dword [ebp - 0x1c], 0x1a
jmp 0x10016bf1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1b
jg 0x10016c0a
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x1c0], 0
jmp 0x10016bea
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001813e
mov dword [ebp - 0x140], 4
mov dword [ebp - 0x1f4], 0xfffffffd
mov dword [ebp - 0x90], 0
jmp 0x10016c43
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 2
jge 0x10016c5f
mov eax, dword [ebp - 0x90]
mov dword [ebp + eax*4 - 0xb0], 0xf23b1a95
jmp 0x10016c36
push 4
pop eax
imul eax, eax, 0
imul eax, dword [ebp + eax - 0xb0], 0xcddd
test eax, eax
jne 0x10016c84
push 5
pop eax
test eax, eax
jne 0x10016c84
and dword [ebp - 0x138], 0
jmp 0x10016c8e
mov dword [ebp - 0x138], 1
cmp dword [ebp - 0x138], 0x576c5165
je 0x10016ca6
mov dword [ebp - 0xd8], 1
jmp 0x10016cad
and dword [ebp - 0xd8], 0
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0xb0]
cmp dword [ebp + eax - 0xb0], ecx
jg 0x10016cd5
mov dword [ebp - 0x190], 1
jmp 0x10016cdc
and dword [ebp - 0x190], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xb0]
cmp dword [ebp - 0x190], eax
jge 0x10016cfd
mov dword [ebp - 0x194], 1
jmp 0x10016d04
and dword [ebp - 0x194], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xb0]
add eax, dword [ebp - 0x194]
push 4
pop ecx
shl ecx, 0
sub eax, dword [ebp + ecx - 0xb0]
mov ecx, dword [ebp - 0xd8]
sub ecx, eax
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0xe80d
jl 0x10016d4a
mov dword [ebp - 0xe0], 1
jmp 0x10016d51
and dword [ebp - 0xe0], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xb0]
cmp dword [ebp - 0xe0], eax
jle 0x10016d72
mov dword [ebp - 0x17c], 1
jmp 0x10016d79
and dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x1f4], eax
mov byte [ebp - 0x39], 0
movzx eax, byte [ebp - 0x39]
test eax, eax
je 0x10016db1
push 0
push 0x1f0
push 0x1729
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c8], eax
push 2
lea ecx, [ebp - 0x1a0]
call fcn.10013e31
and dword [ebp - 4], 0
push 2
lea ecx, [ebp - 0x1b8]
call fcn.10013e31
mov byte [ebp - 4], 1
mov dword [ebp - 0x2d4], 1
mov dword [ebp - 0x180], 0x5faafe30
mov dword [ebp - 0x240], 0xe1c97412
mov dword [ebp - 0x23c], 0xe1c97412
mov dword [ebp - 0x238], 0xe1c97412
mov dword [ebp - 0x234], 0xe1c97412
lea ecx, [ebp - 0xc5]
call fcn.10006dcf
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x340]
call fcn.10013ee1
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x2a8]
call fcn.10013e90
mov byte [ebp - 4], 2
push 2
lea ecx, [ebp - 0x1ac]
call fcn.10013e31
mov byte [ebp - 4], 3
mov dword [ebp - 0x158], 0xb364
mov dword [ebp - 0x118], 0x3d8e
mov dword [ebp - 0x10], 0
jmp 0x10016e8f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10016eab
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
mov dword [eax], 0x6482
jmp 0x10016e88
mov dword [ebp - 0x10], 0
jmp 0x10016ebb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10016ed7
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
mov dword [eax], 0xde19d29b
jmp 0x10016eb4
mov dword [ebp - 0x10], 0
jmp 0x10016ee7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10016f03
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
mov dword [eax], 0xf390f3bd
jmp 0x10016ee0
push 0
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
mov dword [eax], 1
jmp 0x10016f3c
push 0
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
cmp dword [eax], 0
jl 0x10016fb6
push 1
lea ecx, [ebp - 0x2c4]
call fcn.10013e31
mov byte [ebp - 4], 4
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x6c], 0
jmp 0x10016f79
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 1
jge 0x10016f95
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x2c4]
call fcn.10013ed2
mov dword [eax], 0x4dc9ed9b
jmp 0x10016f72
mov eax, dword [ebp - 0x148]
inc eax
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
call fcn.10013eb6
jmp 0x10016f18
push 0
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
push 1
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
cmp dword [eax], 0
je 0x100170e4
push 1
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
cmp dword [eax], 0
je 0x1001707d
push 0
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
cmp dword [eax], 1
jle 0x1001700d
mov dword [ebp - 0xf0], 1
jmp 0x10017014
and dword [ebp - 0xf0], 0
push 1
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
mov ecx, dword [ebp - 0xf0]
cmp ecx, dword [eax]
jg 0x10017037
mov dword [ebp - 0x178], 1
jmp 0x1001703e
and dword [ebp - 0x178], 0
push 0
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
mov ecx, dword [ebp - 0x178]
cmp ecx, dword [eax]
jg 0x10017061
mov dword [ebp - 0x1dc], 1
jmp 0x10017068
and dword [ebp - 0x1dc], 0
mov eax, 0xa1033631
test eax, eax
je 0x1001707d
mov dword [ebp - 0xf8], 1
jmp 0x10017084
and dword [ebp - 0xf8], 0
push 1
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
mov ecx, dword [ebp - 0xf8]
cmp ecx, dword [eax]
jg 0x100170a7
mov dword [ebp - 0x150], 1
jmp 0x100170ae
and dword [ebp - 0x150], 0
cmp dword [ebp - 0x150], 0xfffffffa
jge 0x100170c3
mov dword [ebp - 0x100], 1
jmp 0x100170ca
and dword [ebp - 0x100], 0
imul eax, dword [ebp - 0x100], 0x5c7d
test eax, eax
je 0x100170e4
mov dword [ebp - 0xa0], 1
jmp 0x100170eb
and dword [ebp - 0xa0], 0
push 1
lea ecx, [ebp - 0x2a8]
call fcn.10013ed2
mov ecx, dword [ebp - 0xa0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa0]
sub eax, 0xdbc4
jne 0x10017128
push 0
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
cmp dword [eax], 0
jne 0x10017128
and dword [ebp - 0x188], 0
jmp 0x10017132
mov dword [ebp - 0x188], 1
push 1
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
mov ecx, dword [ebp - 0x188]
cmp ecx, dword [eax]
je 0x1001715e
cmp dword [ebp - 0x180], 0
je 0x1001715e
mov dword [ebp - 0x108], 1
jmp 0x10017165
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x158], eax
mov esi, dword [ebp - 0x158]
push 1
lea ecx, [ebp - 0x1ac]
call fcn.10013ed2
cmp esi, dword [eax]
jne 0x10017194
mov dword [ebp - 0x110], 1
jmp 0x1001719b
and dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 3
jg 0x100171b0
mov dword [ebp - 0x1e4], 1
jmp 0x100171b7
and dword [ebp - 0x1e4], 0
push 1
lea ecx, [ebp - 0x1a0]
call fcn.10013ed2
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x118]
jne 0x100171f9
push 1
lea ecx, [ebp - 0x2a8]
call fcn.10013ed2
cmp dword [eax], 0
jne 0x100171f9
and dword [ebp - 0x160], 0
jmp 0x10017203
mov dword [ebp - 0x160], 1
mov esi, dword [ebp - 0x160]
sub esi, 0xa
push 0
lea ecx, [ebp - 0x1b8]
call fcn.10013ed2
mov dword [eax], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ac]
call fcn.10013eb6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.10013eb6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b8]
call fcn.10013eb6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.10013eb6
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18c], eax
push 4
lea ecx, [ebp - 0x278]
call fcn.10013e31
mov dword [ebp - 4], 5
mov dword [ebp - 0x48], 0xfffffff8
push 1
lea ecx, [ebp - 0x2b4]
call fcn.10013e31
mov byte [ebp - 4], 6
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x1c4], 1
mov dword [ebp - 0x28], 0
jmp 0x100172b0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x100172c9
push dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
call fcn.10013ed2
and dword [eax], 0
jmp 0x100172a9
mov dword [ebp - 0x28], 0
jmp 0x100172d9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x100172f5
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2b4]
call fcn.10013ed2
mov dword [eax], 9
jmp 0x100172d2
mov dword [ebp - 0x48], 3
jmp 0x10017305
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jl 0x100173bf
mov byte [ebp - 0x41], 0
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x10017332
push 0x1ff0
push 0x476
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetClassLongA]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x278]
call fcn.10013ed2
cmp dword [eax], 0
jne 0x1001737f
mov dword [ebp - 0x120], 1
cmp dword [ebp - 0x120], 1
jg 0x10017364
mov dword [ebp - 0x170], 1
jmp 0x1001736b
and dword [ebp - 0x170], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x170], eax
je 0x1001737f
and dword [ebp - 0x1ec], 0
jmp 0x10017389
mov dword [ebp - 0x1ec], 1
push 0
lea ecx, [ebp - 0x2b4]
call fcn.10013ed2
cmp dword [eax], 1
jl 0x100173a7
mov dword [ebp - 0x128], 1
jmp 0x100173ae
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x1c4], eax
jmp 0x100172fe
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b4]
call fcn.10013eb6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.10013eb6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x54], 0xcfb6318d
push 4
lea ecx, [ebp - 0x260]
call fcn.10013e31
mov dword [ebp - 4], 7
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x88], 0
jmp 0x10017438
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 4
jge 0x10017457
push dword [ebp - 0x88]
lea ecx, [ebp - 0x260]
call fcn.10013ed2
or dword [eax], 0xffffffff
jmp 0x1001742b
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
je 0x10017475
cmp dword [ebp - 0xc0], 0
je 0x10017475
mov dword [ebp - 0x1fc], 1
jmp 0x1001747c
and dword [ebp - 0x1fc], 0
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x168], eax
push 3
lea ecx, [ebp - 0x260]
call fcn.10013ed2
mov ecx, dword [ebp - 0x168]
mov dword [eax], ecx
cmp dword [ebp - 0x168], 0xffffffff
jbe 0x100174bc
mov dword [ebp - 0x130], 1
jmp 0x100174c3
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0xc0]
imul eax, dword [ebp - 0x130]
cmp eax, 1
je 0x100174e1
mov dword [ebp - 0x174], 1
jmp 0x100174e8
and dword [ebp - 0x174], 0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x174], eax
jl 0x100174ff
mov dword [ebp - 0x1d4], 1
jmp 0x10017506
and dword [ebp - 0x1d4], 0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0xc0], eax
jle 0x1001751d
mov dword [ebp - 0xcc], 1
jmp 0x10017524
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x1d0]
cmp dword [ebp - 0xcc], eax
jne 0x10017554
mov byte [ebp - 0x3b], 0
movzx eax, byte [ebp - 0x3b]
test eax, eax
je 0x10017552
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
jmp 0x10017580
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x1d8], 0xfffffff6
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x1d8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.10013eb6
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x30], 0
push 1
lea ecx, [ebp - 0x284]
call fcn.10013e31
mov dword [ebp - 4], 8
mov dword [ebp - 0x74], 0
jmp 0x100175c9
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 1
jge 0x100175e5
push dword [ebp - 0x74]
lea ecx, [ebp - 0x284]
call fcn.10013ed2
mov dword [eax], 0x7013dce9
jmp 0x100175c2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x1e0], 0xf6d4a0d4
mov dword [ebp - 0x318], 0xeb4c
mov dword [ebp - 0x314], 0xeb4c
mov dword [ebp - 0x310], 0xeb4c
mov dword [ebp - 0x30c], 0xeb4c
mov dword [ebp - 0x8c], 0
jmp 0x10017637
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 3
jge 0x10017653
mov eax, dword [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x324], 0xe08974b6
jmp 0x1001762a
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2f4], eax
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x324], 5
cmp dword [ebp - 0x7c], 5
jl 0x1001767e
mov dword [ebp - 0xd4], 1
jmp 0x10017685
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x7c]
neg eax
cmp eax, 0xb95
jg 0x1001769d
mov dword [ebp - 0xd0], 1
jmp 0x100176a4
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0xd0]
je 0x100176bb
mov dword [ebp - 0xdc], 1
jmp 0x100176c2
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xd4]
imul eax, dword [ebp - 0xdc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x3f], 0
movzx eax, byte [ebp - 0x3f]
test eax, eax
je 0x100176fd
push 0x10c7
push 0x1f46
push 0xde1
push 0xac5
push 0
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov dword [ebp - 0x30], 0x1b
jmp 0x1001770d
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 5
jg 0x10017b99
mov dword [ebp - 0x20], 0x743d837b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x94], 0
jmp 0x1001773e
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 3
jge 0x1001775a
mov eax, dword [ebp - 0x94]
mov dword [ebp + eax*4 - 0x2e0], 0x20624039
jmp 0x10017731
mov dword [ebp - 0x20], 0
jmp 0x1001776a
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jg 0x10017825
mov dword [ebp - 0x84], 0xe1ca2961
mov dword [ebp - 0x2fc], 0x1860ec01
mov eax, dword [ebp - 0x20]
cmp dword [ebp + eax*4 - 0x2e0], 0
je 0x1001779a
jmp 0x10017825
mov dword [ebp - 0x84], 2
jmp 0x100177b3
mov eax, dword [ebp - 0x84]
dec eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jl 0x10017820
push 3
lea ecx, [ebp - 0x2d0]
call fcn.10013e31
mov byte [ebp - 4], 9
mov dword [ebp - 0x9c], 0
jmp 0x100177e6
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 3
jge 0x10017808
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x2d0]
call fcn.10013ed2
mov dword [eax], 1
jmp 0x100177d9
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d0]
call fcn.10013eb6
jmp 0x100177a6
jmp 0x10017763
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x2e0], 0
xor eax, eax
jne 0x10017846
mov dword [ebp - 0xe4], 1
jmp 0x1001784d
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0xfffffff6
jbe 0x10017862
mov dword [ebp - 0xec], 1
jmp 0x10017869
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 1
je 0x1001787e
mov dword [ebp - 0xf4], 1
jmp 0x10017885
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xf4], eax
jle 0x1001789c
mov dword [ebp - 0xfc], 1
jmp 0x100178a3
and dword [ebp - 0xfc], 0
cmp dword [ebp - 0xfc], 0xfffd
jne 0x100178bb
mov dword [ebp - 0x104], 1
jmp 0x100178c2
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x104], eax
je 0x100178d9
mov dword [ebp - 0x10c], 1
jmp 0x100178e0
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10c], eax
jne 0x100178f7
mov dword [ebp - 0x114], 1
jmp 0x100178fe
and dword [ebp - 0x114], 0
xor eax, eax
sub eax, dword [ebp - 0x114]
add eax, 0x1f4d0986
je 0x10017961
mov eax, 0x12c0
test eax, eax
je 0x10017961
mov dword [ebp - 0x98], 0
jmp 0x1001792f
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 4
jge 0x1001794b
mov eax, dword [ebp - 0x98]
mov dword [ebp + eax*4 - 0x350], 0x300c
jmp 0x10017922
push 4
pop eax
imul eax, eax, 3
mov dword [ebp + eax - 0x350], 1
jmp 0x100179fa
mov dword [ebp - 0x11c], 0x108f
mov dword [ebp - 0x20], 0xfffffff0
jmp 0x1001797b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffff5
jle 0x100179fa
mov dword [ebp - 0x204], 0x97ab83de
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x1001799b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x38
jge 0x100179f5
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x58], 0
jmp 0x100179b8
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jg 0x100179e8
mov eax, dword [ebp - 0x11c]
dec eax
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x36], 0
movzx eax, byte [ebp - 0x36]
test eax, eax
je 0x100179e6
push 0x7d5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x100179b1
cmp dword [ebp - 0x204], 0
je 0x100179f3
jmp 0x10017994
jmp 0x10017994
jmp 0x10017974
mov dword [ebp - 0x14], 0x2304b25b
mov dword [ebp - 0x14], 0
jmp 0x10017a11
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10017a40
push 0
push 0x488
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30cb
call fcn.10015c94
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x10017a3e
jmp 0x10017a0a
jmp 0x10017a0a
mov dword [ebp - 0x254], 0x5252
mov dword [ebp - 0x250], 0x5252
mov dword [ebp - 0x24c], 0x5252
mov dword [ebp - 0x248], 0x5252
lea ecx, [ebp - 0xc6]
call fcn.10006dcf
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x338]
call fcn.10013ee1
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x290]
call fcn.10013e90
mov byte [ebp - 4], 0xa
push 2
lea ecx, [ebp - 0x290]
call fcn.10013ed2
mov esi, eax
push 0
lea ecx, [ebp - 0x290]
call fcn.10013ed2
mov ecx, dword [esi]
cmp ecx, dword [eax]
jg 0x10017b0a
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x5c], 0
jmp 0x10017ada
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xfffffff1
je 0x10017af6
mov byte [ebp - 0x38], 0
movzx eax, byte [ebp - 0x38]
test eax, eax
je 0x10017af4
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10017ad3
mov byte [ebp - 0x3a], 0
movzx eax, byte [ebp - 0x3a]
test eax, eax
je 0x10017b08
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x10017b51
mov byte [ebp - 0x3c], 0
movzx eax, byte [ebp - 0x3c]
test eax, eax
je 0x10017b25
push 0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov byte [ebp - 0x3e], 0
movzx eax, byte [ebp - 0x3e]
test eax, eax
je 0x10017b51
push 0
push 0x2268
push 0x161f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x290]
call fcn.10013eb6
mov dword [ebp - 0x14], 0
jmp 0x10017b70
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10017b94
mov byte [ebp - 0x40], 0
push 0x75d
push 0
lea eax, [ebp - 0x40]
push eax
push 0x7e24
call fcn.1001c2e3
add esp, 0x10
jmp 0x10017b69
jmp 0x10017706
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xa4], 0xbe135e1f
mov dword [ebp - 0x1f0], 0x8a52b4b5
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x1f8], 0xffffffff
mov dword [ebp - 0x218], 0x69919c44
push 1
lea ecx, [ebp - 0x22c]
call fcn.10013e31
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x300], 0x28e4
mov dword [ebp - 0x13c], 2
mov dword [ebp - 0x2c], 0
jmp 0x10017c07
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x10017c1d
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x26c], 0x141a9c21
jmp 0x10017c00
mov dword [ebp - 0x2c], 0
jmp 0x10017c2d
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x10017c49
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x22c]
call fcn.10013ed2
mov dword [eax], 0x79dc8669
jmp 0x10017c26
mov dword [ebp - 0x34], 0x1a
jmp 0x10017c59
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff8
jl 0x10017ce6
mov dword [ebp - 0x60], 5
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x60], 0xfffffff6
jmp 0x10017c84
mov eax, dword [ebp - 0x60]
dec eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xfffffff4
je 0x10017ce1
mov dword [ebp - 0x134], 0x3d4e
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x124], eax
jg 0x10017cae
mov dword [ebp - 0x12c], 1
jmp 0x10017cb5
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xa4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x26c], 0
je 0x10017cdf
jmp 0x10017c7d
jmp 0x10017c7d
jmp 0x10017c52
mov dword [ebp - 0x34], 0xfffffff8
jmp 0x10017cf6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x11
jg 0x10017ef8
mov dword [ebp - 0x1e8], 0xfff6
mov dword [ebp - 0x164], 0xbcf5
mov dword [ebp - 0xa8], 0x1a770aac
mov dword [ebp - 0x68], 0
jmp 0x10017d2e
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 3
jge 0x10017d44
mov eax, dword [ebp - 0x68]
mov dword [ebp + eax*4 - 0x2f0], 0xec5ec62b
jmp 0x10017d27
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x10017e7d
mov eax, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], 0x16037280
cmp dword [ebp - 0x144], 0
jne 0x10017d95
mov eax, dword [ebp - 0xa8]
dec eax
mov dword [ebp - 0xa8], eax
jne 0x10017d95
and dword [ebp - 0x154], 0
jmp 0x10017d9f
mov dword [ebp - 0x154], 1
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x2f0], 0
je 0x10017df5
cmp dword [ebp - 0x164], 0xbb6a
je 0x10017dd4
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x26c], 0
jne 0x10017dd4
and dword [ebp - 0x14c], 0
jmp 0x10017dde
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp - 0x14c]
add eax, 7
je 0x10017df5
mov dword [ebp - 0x15c], 1
jmp 0x10017dfc
and dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x15c]
jge 0x10017e16
mov dword [ebp - 0x208], 1
jmp 0x10017e1d
and dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x2f8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1f0]
cmp dword [ebp + eax - 0x26c], ecx
jg 0x10017e4a
mov dword [ebp - 0x16c], 1
jmp 0x10017e51
and dword [ebp - 0x16c], 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.10013ed2
mov eax, dword [eax]
mov ecx, dword [ebp - 0x16c]
lea eax, [ecx + eax + 0x1eb1ed30]
test eax, eax
je 0x10017e7d
mov dword [ebp - 0xb4], 1
jmp 0x10017e84
and dword [ebp - 0xb4], 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.10013ed2
mov ecx, dword [ebp - 0xb4]
mov dword [eax], ecx
cmp dword [ebp - 0xb4], 0xb915
jne 0x10017eb1
mov dword [ebp - 0x184], 1
jmp 0x10017eb8
and dword [ebp - 0x184], 0
cmp dword [ebp - 0x184], 4
je 0x10017ecd
mov dword [ebp - 0x210], 1
jmp 0x10017ed4
and dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x304], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x218]
mov dword [ebp + eax - 0x2f0], ecx
jmp 0x10017cef
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x22c]
call fcn.10013eb6
mov dword [ebp - 0x30], 0
jmp 0x10017f17
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x10017f6d
mov dword [ebp - 0x70], 0x84217059
mov dword [ebp - 0x200], 0x4c3f4f88
mov eax, dword [ebp - 0x70]
dec eax
mov dword [ebp - 0x70], eax
push 0xfffffffffffffffb
pop eax
sub eax, dword [ebp - 0x70]
cmp dword [ebp - 0x30], eax
je 0x10017f58
lea eax, [ebp - 0x200]
push eax
push 0
push 0x53fd
call fcn.1001b11b
add esp, 0xc
jmp 0x10017f6b
mov dword [ebp - 0x220], 0xfffffff7
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x220], eax
jmp 0x10017f10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.10013eb6
cmp dword [ebp - 0xbc], 0
jle 0x1001813c
push 2
lea ecx, [ebp - 0x29c]
call fcn.10013e31
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x4c], 0xfffffffd
mov dword [ebp - 0x214], 0xffffffff
mov dword [ebp - 0x2b8], 0x3384
mov dword [ebp - 0x78], 0
jmp 0x10017fc8
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 2
jge 0x10017fe4
push dword [ebp - 0x78]
lea ecx, [ebp - 0x29c]
call fcn.10013ed2
mov dword [eax], 0xfffffffa
jmp 0x10017fc1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x29c]
push eax
push 0
call fcn.10019e49
add esp, 0xc
mov dword [ebp - 0x4c], 1
jmp 0x10018009
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x10018046
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x10018039
push 0x6e99
push 0x3458
push 0x2a3a
push 0x4a76
push 0
call fcn.10016b00
add esp, 0x14
cmp dword [ebp - 0x214], 0
je 0x10018044
jmp 0x10018002
jmp 0x10018002
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29c]
call fcn.10013eb6
push 4
push 0x1000
push dword [ebp - 0xbc]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x1c8]
add ecx, dword [eax + 0xc]
push ecx
push 0x9d0
push 0xa4d
call fcn.1002c966
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0xc4]
mov dword [ecx], eax
mov dword [ebp - 0x50], 0xa76aabec
mov dword [ebp - 0x1cc], 0x9f3690f1
mov dword [ebp - 0x80], 0
jmp 0x100180ae
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 3
jge 0x100180c4
mov eax, dword [ebp - 0x80]
mov dword [ebp + eax*4 - 0x330], 0x3dd3
jmp 0x100180a7
mov dword [ebp - 0x50], 0
jmp 0x100180d4
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jg 0x10018102
mov eax, dword [ebp - 0x50]
mov eax, dword [ebp + eax*4 - 0x330]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 0x3d], 0
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x10018100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
jmp 0x100180cd
push 1
lea eax, [ebp - 0x18c]
push eax
push 0x4014
push 0x10fc
lea eax, [ebp - 0xc4]
push eax
call fcn.10015c94
add esp, 0x14
push dword [ebp - 0xbc]
push 0
mov eax, dword [ebp - 0xc4]
push dword [eax]
call fcn.1002cb0e
add esp, 0xc
jmp 0x10018150
push 0x201f
push 0x16d0
push 0
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret