Function at 0x100489a9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c90a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
push esi
push edi
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 0x15c], 0x53e58bfc
mov dword [ebp - 0x158], 0x53e58bfc
mov dword [ebp - 0x154], 0x53e58bfc
mov dword [ebp - 0x150], 0x53e58bfc
mov dword [ebp - 0x1a4], 0x37c1d6b3
mov dword [ebp - 0x80], 0x29c8ddac
mov dword [ebp - 0x14], 0xffffffee
jmp 0x10048a19
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff4
jne 0x10048a91
mov dword [ebp - 0x9c], 0xc4ab
mov dword [ebp - 0x108], 0xdcad2086
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x108]
cmp dword [ebp - 0x9c], eax
jle 0x10048a57
mov dword [ebp - 0xec], 1
jmp 0x10048a5e
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xec], eax
jg 0x10048a75
mov dword [ebp - 0xb8], 1
jmp 0x10048a7c
and dword [ebp - 0xb8], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp + eax - 0x15c], ecx
jmp 0x10048a12
mov dword [ebp - 0x14], 3
jmp 0x10048aa1
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10048ae2
mov dword [ebp - 0x170], 0xf9d44c03
mov dword [ebp - 0x188], 0xffffffff
mov dword [ebp - 0x190], 0xa4ccfd6
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x1a0], 0xffffffff
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
jmp 0x10048a9a
mov dword [ebp - 0x20], 0xac204e2
mov dword [ebp - 0x48], 0
jmp 0x10048af9
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x10048b0f
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x1e0], 0xffffffff
jmp 0x10048af2
mov dword [ebp - 0x20], 0
jmp 0x10048b1f
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffff9
je 0x10048b40
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10048b3e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
jmp 0x10048b18
mov dword [ebp - 0x20], 2
jmp 0x10048b50
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x10048b73
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10048b71
push 0x184a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10048b49
mov dword [ebp - 0x2c], 0x5c96dd1e
mov dword [ebp - 0x34], 0xf2f4a8b1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x18], 0
jmp 0x10048ba9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10048bbf
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x114], 0xe149cff2
jmp 0x10048ba2
mov dword [ebp - 0x18], 0
jmp 0x10048bcf
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10048be5
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x1c0], 0x17b38e51
jmp 0x10048bc8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, 0xb5e4
sub eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x2c]
sub eax, 0xebb
sub eax, dword [ebp - 0x90]
jne 0x10048c12
cmp dword [ebp - 0x2c], 0
jne 0x10048c12
and dword [ebp - 0x100], 0
jmp 0x10048c1c
mov dword [ebp - 0x100], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], eax
jl 0x10048c3a
xor eax, eax
jne 0x10048c3a
and dword [ebp - 0xd8], 0
jmp 0x10048c44
mov dword [ebp - 0xd8], 1
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0xd8], eax
jg 0x10048c5b
mov dword [ebp - 0x88], 1
jmp 0x10048c62
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
sub eax, 0x5900
cmp dword [ebp - 0x34], eax
jge 0x10048c87
mov dword [ebp - 0xc0], 1
jmp 0x10048c8e
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x90], 0
je 0x10048cb2
cmp dword [ebp - 0x34], 0
je 0x10048cb2
mov dword [ebp - 0xe8], 1
jmp 0x10048cb9
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0xe8], eax
je 0x10048cd0
mov dword [ebp - 0x98], 1
jmp 0x10048cd7
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x98]
test eax, eax
jne 0x10048cf4
cmp dword [ebp - 0x60], 0
jne 0x10048cf4
and dword [ebp - 0xc8], 0
jmp 0x10048cfe
mov dword [ebp - 0xc8], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp + eax - 0x114], ecx
mov dword [ebp - 0x134], 0xfffffff9
mov dword [ebp - 0x130], 0xfffffff9
mov dword [ebp - 0x12c], 0xfffffff9
mov dword [ebp - 0x128], 0xfffffff9
lea ecx, [ebp - 0x59]
call fcn.100091b3
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.10015934
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x78]
call fcn.100158fa
and dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x184c506d
mov dword [ebp - 0x30], 0
jmp 0x10048d83
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x10048f24
mov dword [ebp - 0x10], 0x6b950ba1
mov dword [ebp - 0xfc], 0xffffffff
mov dword [ebp - 0x10], 3
jmp 0x10048dae
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10048f1f
mov dword [ebp - 0x50], 0
jmp 0x10048dc8
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jge 0x10048dde
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x168], 0x63a74adf
jmp 0x10048dc1
cmp dword [ebp - 0x10], 0x795ed7c6
jne 0x10048df3
mov dword [ebp - 0xa0], 1
jmp 0x10048dfa
and dword [ebp - 0xa0], 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10015925
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [eax]
je 0x10048e27
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
call fcn.10015925
cmp dword [eax], 0
jne 0x10048e27
and dword [ebp - 0xe0], 0
jmp 0x10048e31
mov dword [ebp - 0xe0], 1
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xe0]
sub eax, dword [ebp - 0x10]
imul esi, eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
call fcn.10015925
cmp esi, dword [eax]
jle 0x10048e5b
mov dword [ebp - 0xa8], 1
jmp 0x10048e62
and dword [ebp - 0xa8], 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x78]
call fcn.10015925
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax]
jle 0x10048e80
mov dword [ebp - 0x64], 1
jmp 0x10048e84
and dword [ebp - 0x64], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp + eax - 0x168], ecx
cmp dword [ebp - 0x64], 0xf219a6f
jne 0x10048ea9
mov dword [ebp - 0xd0], 1
jmp 0x10048eb0
and dword [ebp - 0xd0], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
call fcn.10015925
mov eax, dword [eax]
cmp eax, dword [ebp - 0xd0]
jg 0x10048ed1
mov dword [ebp - 0xb0], 1
jmp 0x10048ed8
and dword [ebp - 0xb0], 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x78]
call fcn.10015925
mov esi, eax
push 0
lea ecx, [ebp - 0x78]
call fcn.10015925
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [eax]
cmp dword [esi], ecx
je 0x10048f07
mov dword [ebp - 0xf0], 1
jmp 0x10048f0e
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], eax
jmp 0x10048da7
jmp 0x10048d7c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10015920
mov dword [ebp - 0x58], 0
jmp 0x10048f40
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jge 0x10048f56
mov eax, dword [ebp - 0x58]
mov dword [ebp + eax*4 - 0xf8], 8
jmp 0x10048f39
push 0x7ac1
push 0
call fcn.100478ac
pop ecx
pop ecx
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xf8], 0xfffffffd
jmp 0x10048f92
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf8]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xf8], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xf8], 0x14
je 0x10048fc4
mov byte [ebp - 0x24], 0
movzx eax, byte [ebp - 0x24]
test eax, eax
je 0x10048fc2
push 0x4e06
push 0x13cf
push 0
call fcn.10046fa3
add esp, 0xc
jmp 0x10048f77
push 1
lea eax, [ebp - 0x1d4]
push eax
xor edx, edx
inc edx
xor ecx, ecx
call fcn.10046808
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x1b8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1b8]
lea edi, [ebp - 0x120]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x6c], 0xef20fe6e
mov dword [ebp - 0x44], 0
jmp 0x10049014
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x1004902a
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x10c], 0xbeccce1e
jmp 0x1004900d
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x6c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp + eax - 0x10c], ecx
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x10049068
push 0
push 0x202f
push 0
push 0x20ed
push 0x13d
call dword [sym.imp.GDI32.dll_ExtCreatePen]
mov dword [ebp - 0x174], 5
mov dword [ebp - 0x16c], 0xffffffff
mov dword [ebp - 0x178], 0xbd97a888
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x194], 0x7f2fb5a5
mov dword [ebp - 0x17c], 0xd035c573
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x184], 0xfffffffd
push 2
lea ecx, [ebp - 0x14c]
call fcn.100158b8
mov dword [ebp - 4], 1
mov dword [ebp - 0x19c], 9
mov dword [ebp - 0x38], 0
jmp 0x100490e6
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x100490fc
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x18c], 0xfffffff9
jmp 0x100490df
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
call fcn.10046fa3
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
push 1
call fcn.100478ac
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.10015920
mov dword [ebp - 0x28], 0x7862fd41
mov dword [ebp - 0x3c], 0xbefcdf1
mov dword [ebp - 0x4c], 0
jmp 0x1004914e
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jge 0x10049164
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x140], 0xcfda6c2e
jmp 0x10049147
mov dword [ebp - 0x28], 0xfffffffb
jmp 0x10049174
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffe3
jg 0x10049374
mov dword [ebp - 0x1c], 0x70ade21
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0x1c], 0
jmp 0x1004919f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x11
jg 0x1004928e
mov dword [ebp - 0x54], 0xfffffffa
mov dword [ebp - 0x7c], 0xe018
mov dword [ebp - 0x104], 0x6be856df
cmp dword [ebp - 0x54], 0
jne 0x100491dd
mov dword [ebp - 0x7c], 0x714ad38
cmp dword [ebp - 0x7c], 0
jne 0x100491dd
and dword [ebp - 0x84], 0
jmp 0x100491e7
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x84], eax
jne 0x100491fe
mov dword [ebp - 0x8c], 1
jmp 0x10049205
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x8c], eax
jle 0x1004921c
mov dword [ebp - 0x94], 1
jmp 0x10049223
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x54], eax
jge 0x1004923a
cmp dword [ebp - 0x3c], 0
je 0x1004923a
mov dword [ebp - 0x68], 1
jmp 0x1004923e
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x68]
jne 0x10049255
mov dword [ebp - 0xa4], 1
jmp 0x1004925c
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
add eax, 6
cmp eax, dword [ebp - 0x3c]
jne 0x10049276
mov dword [ebp - 0xac], 1
jmp 0x1004927d
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x104], eax
jmp 0x10049198
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x28], 0x7bf7
je 0x100492ac
mov dword [ebp - 0xb4], 1
jmp 0x100492b3
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0xbc], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xbc]
mov dword [ebp + eax - 0x140], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xbc], eax
jg 0x100492f5
mov eax, 0x1477
test eax, eax
je 0x100492f5
mov dword [ebp - 0xc4], 1
jmp 0x100492fc
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0x1c]
jge 0x10049317
mov dword [ebp - 0xcc], 1
jmp 0x1004931e
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xcc], eax
je 0x10049335
mov dword [ebp - 0xd4], 1
jmp 0x1004933c
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
cmp dword [ebp - 0x1c], eax
jle 0x1004935f
mov dword [ebp - 0xe4], 1
jmp 0x10049366
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x1c], eax
jmp 0x1004916d
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 0
mov eax, dword [ebp + eax - 0x140]
mov dword [ebp + ecx - 0x140], eax
cmp dword [ebp - 0x120], 0
je 0x100493aa
push 3
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret