Function at 0x496b31
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x496c96
lea eax, [ebp + 0x14]
mov dword [ebp - 0xb0], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x496c43
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x496c0a
mov dword [ebp - 0xc0], 0x5d6c05ba
mov byte [ebp - 1], 0
push 0x13f9
push 0x1462
push 0x777d
push 0x5570
lea eax, [ebp - 1]
push eax
push 0
push 0x7f6
push 1
push 1
push 1
push 0x7d48
push 0x1561
call fcn.00491baa
add esp, 0x30
push 0x22d0
push 1
push 1
push 0x621f
push 1
push 0x4ff1
push 0xf1
push 0x3e17
push 0x15a2
push 1
push 0x2122
push 0x2441
call fcn.0049187d
add esp, 0x30
jmp 0x496c41
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x496c41
push 0
push 0x3a4b
push 1
push 0x5bc2
push 1
push 0x94b
push 1
push 1
push 0x2aee
push 0x4775
call fcn.0048eeb3
add esp, 0x28
jmp 0x496c91
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x496c7d
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
add eax, 3
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x496c91
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
jmp 0x496fe7
lea eax, [ebp + 0x30]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x496f63
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x496d2c
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x496d27
push 0x2402
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x496f5e
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 6
mov dword [ebp - 8], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
jmp 0x496d6d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jge 0x496d83
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xd8], 0xffffffff
jmp 0x496d66
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
mov dword [ebp - 0xc4], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
mov dword [ebp - 0xc8], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1c], 0
jle 0x496db9
mov dword [ebp - 0x58], 1
jmp 0x496dbd
and dword [ebp - 0x58], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x1c]
imul eax, dword [ebp - 0x58]
test eax, eax
jne 0x496de1
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1c], 0
jne 0x496de1
and dword [ebp - 0x2c], 0
jmp 0x496de8
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0xfffffffd
jne 0x496df7
mov dword [ebp - 0x24], 1
jmp 0x496dfb
and dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp + eax - 0xd8], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
imul eax, dword [ebp - 0x24], 0xcf7d
cmp dword [ebp - 0x54], eax
jle 0x496e32
mov dword [ebp - 0x3c], 1
jmp 0x496e36
and dword [ebp - 0x3c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp + eax - 0x1c]
push 4
pop eax
shl eax, 1
imul ecx, dword [ebp + eax - 0x1c]
push 4
pop eax
shl eax, 1
cmp ecx, dword [ebp + eax - 0x1c]
jl 0x496e61
mov dword [ebp - 0x4c], 1
jmp 0x496e65
and dword [ebp - 0x4c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
cmp dword [ebp - 0x4c], eax
jl 0x496e7d
mov dword [ebp - 0x28], 1
jmp 0x496e81
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xde81
jle 0x496e96
cmp dword [ebp - 0x20], 0
jne 0x496e96
and dword [ebp - 0x30], 0
jmp 0x496e9d
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x30], eax
jle 0x496eae
mov dword [ebp - 0x38], 1
jmp 0x496eb2
and dword [ebp - 0x38], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
cmp dword [ebp - 0x38], eax
je 0x496eca
mov dword [ebp - 0x40], 1
jmp 0x496ece
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 1
jne 0x496ee1
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xd8], 0
push 4
pop eax
imul eax, eax, 0
imul eax, dword [ebp + eax - 0x1c], 0xb430
cmp eax, 9
jbe 0x496efd
mov dword [ebp - 0x48], 1
jmp 0x496f01
and dword [ebp - 0x48], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x1c]
sub ecx, dword [ebp - 0x48]
imul eax, ecx
test eax, eax
jne 0x496f2e
mov eax, 0xc8f9611c
test eax, eax
jne 0x496f2e
and dword [ebp - 0x50], 0
jmp 0x496f35
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 3
jmp 0x496f4b
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x496f5e
push 1
push 0
call fcn.0048d43b
pop ecx
pop ecx
jmp 0x496f44
jmp 0x496fe7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x496fae
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x496fac
push 0
call fcn.0048cd84
pop ecx
jmp 0x496fe7
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x496fe7
push 0x2048
push 0
push 0x959
push 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esp, ebp
pop ebp
ret