Function at 0x4087a4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x460], 0
mov eax, 0x4b3360
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp byte [0x4b6940], 0
push edi
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x458], esi
je 0x40880e
cmp ecx, eax
je 0x4087f1
push ebx
push 0
push eax
call fcn.00401cc4
mov eax, 0x4b3378
cmp esi, eax
je 0x408e9a
push ebx
push 0
push eax
mov ecx, esi
call fcn.00401cc4
jmp 0x408e9a
mov byte [0x4b6940], 1
cmp ecx, eax
je 0x408822
push ebx
push 0
push eax
call fcn.00401cc4
mov edi, 0x4b3378
cmp esi, edi
je 0x408836
push ebx
push 0
push edi
mov ecx, esi
call fcn.00401cc4
lea ecx, [ebp - 0x138]
call fcn.00407dc0
push ecx
push ecx
mov ecx, esp
push eax
call fcn.0040387d
lea ecx, [ebp - 0x198]
call fcn.0040cfd0
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.004019ef
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x168]
call fcn.0040cfa0
lea ecx, [ebp - 0x168]
call fcn.0040eac0
lea ecx, [ebp - 0x168]
call fcn.00408071
test al, al
je 0x4088ba
push ebx
push 0
lea eax, [ebp - 0x168]
mov ecx, edi
push eax
call fcn.00401cc4
cmp esi, edi
je 0x408e84
push ebx
push 0
push edi
mov ecx, esi
call fcn.00401cc4
jmp 0x408e84
xor ecx, ecx
mov dword [ebp - 0x13c], 7
xor eax, eax
mov dword [ebp - 0x140], ecx
mov word [ebp - 0x150], ax
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x44c], ecx
call fcn.00418640
mov esi, eax
test esi, esi
je 0x408993
push 0x493a9c
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.00418c00
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x150]
call fcn.004064f0
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.004019ef
push ecx
push ecx
lea eax, [ebp - 0x150]
mov ecx, esp
push eax
call fcn.0040387d
lea ecx, [ebp - 0x120]
call fcn.00413900
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041d3b0
push eax
lea ecx, [ebp - 0x454]
call fcn.00409546
lea ecx, [ebp - 0x12c]
call fcn.00417380
push 0
push 1
lea ecx, [ebp - 0x120]
call fcn.00401abf
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x450]
cmp dword [ebp - 0x454], eax
jne 0x408aa2
push ecx
push ecx
mov esi, esp
mov eax, 0x496fc0
push eax
mov dword [esi], eax
call fcn.0040124c
pop ecx
lea ecx, [ebp - 0x120]
mov dword [esi + 4], eax
call fcn.004138c0
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4089bd
mov eax, dword [eax]
mov esi, 0x80
lea ecx, [ebp - 0x108]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408a02
cmp eax, esi
jae 0x408a02
lea eax, [ebp - 0x108]
push eax
call fcn.004011e1
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x150]
call fcn.00401a46
mov byte [ebp - 0x441], 1
jmp 0x408a09
mov byte [ebp - 0x441], 0
push 0
push 1
lea ecx, [ebp - 0x120]
call fcn.004019ef
cmp byte [ebp - 0x441], 0
je 0x408a70
push ecx
push ecx
lea eax, [ebp - 0x150]
mov ecx, esp
push eax
call fcn.0040387d
lea ecx, [ebp - 0x120]
call fcn.00413900
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041d3b0
push eax
lea ecx, [ebp - 0x454]
call fcn.00409546
lea ecx, [ebp - 0x12c]
call fcn.00417380
push 0
push 1
lea ecx, [ebp - 0x120]
call fcn.00401abf
mov eax, dword [ebp - 0x450]
cmp dword [ebp - 0x454], eax
jne 0x408aa2
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
lea ecx, [ebp - 0x150]
push eax
push 1
call fcn.0040985d
cmp dword [ebp - 0x140], 0
je 0x408b4b
push ecx
push ecx
lea eax, [ebp - 0x150]
mov ecx, esp
push eax
call fcn.0040387d
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x198]
call fcn.0040d7f0
push eax
lea ecx, [ebp - 0x168]
call fcn.0040d0f0
lea ecx, [ebp - 0x120]
call fcn.0040d070
lea ecx, [ebp - 0x168]
call fcn.0040eac0
lea ecx, [ebp - 0x168]
call fcn.00408071
test al, al
je 0x408b4b
push ebx
push 0
lea eax, [ebp - 0x168]
mov ecx, edi
push eax
call fcn.00401cc4
push ebx
push 0
lea eax, [ebp - 0x150]
mov esi, 0x4b3360
push eax
mov ecx, esi
call fcn.00401cc4
mov ecx, dword [ebp - 0x458]
cmp ecx, edi
je 0x408b2f
push ebx
push 0
push edi
call fcn.00401cc4
mov ecx, dword [ebp - 0x45c]
cmp ecx, esi
je 0x408e6a
push ebx
push 0
push esi
call fcn.00401cc4
jmp 0x408e6a
push 0xc
call fcn.00460c38
lea ecx, [ebp - 0x138]
mov dword [esp], str.0.0.0.0
mov esi, eax
call fcn.004019b5
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.0041d3b0
push 0
push 1
lea ecx, [ebp - 0x138]
mov esi, eax
call fcn.00401abf
and dword [ebp - 0x448], 0
lea eax, [ebp - 0x198]
push ecx
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0040cfa0
push eax
lea ecx, [ebp - 0x440]
call fcn.0041bbd0
lea ecx, [ebp - 0x120]
call fcn.0040d070
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x440]
call fcn.0041be30
cmp dword [ebp - 0x170], 0
je 0x408d48
mov ebx, dword [ebp - 0x448]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x180]
call fcn.0040d730
push eax
lea ecx, [ebp - 0x138]
call fcn.004096ba
lea ecx, [ebp - 0x120]
call fcn.0040d070
push 0xc
call fcn.00460c38
push ecx
mov edi, eax
mov ecx, esp
lea eax, [ebp - 0x138]
or ebx, 2
push eax
call fcn.0040387d
lea ecx, [ebp - 0x120]
call fcn.00413900
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.0041d3b0
push 0
mov edi, eax
lea ecx, [ebp - 0x120]
push 1
mov dword [ebp - 0x448], edi
and ebx, 0xfffffffd
call fcn.00401abf
test edi, edi
je 0x408ce9
test bl, 8
je 0x408c6a
lea ecx, [ebp - 0x510]
and ebx, 0xfffffff7
call fcn.00419d30
test bl, 0x10
je 0x408c7d
lea ecx, [ebp - 0xb8]
and ebx, 0xffffffef
call fcn.00419d30
mov edx, esi
mov ecx, edi
call fcn.0041d2f0
test eax, eax
jle 0x408ce9
push 0xc
call fcn.00460c38
pop ecx
mov ecx, dword [ebp - 0x448]
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x460], esi
push eax
or ebx, 4
call fcn.0041d430
push eax
mov ecx, edi
call fcn.0041d3b0
mov edi, dword [ebp - 0x460]
mov esi, eax
test edi, edi
je 0x408cd1
mov ecx, edi
call fcn.00417380
push edi
call fcn.00460c6b
pop ecx
push 0
push 1
lea ecx, [ebp - 0x120]
and ebx, 0xfffffffb
call fcn.00401abf
mov edi, dword [ebp - 0x448]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x440]
call fcn.0041be30
push eax
lea ecx, [ebp - 0x180]
call fcn.0040d0f0
lea ecx, [ebp - 0x120]
call fcn.0040d070
test edi, edi
je 0x408d24
mov ecx, edi
call fcn.00417380
push edi
call fcn.00460c6b
pop ecx
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.004019ef
cmp dword [ebp - 0x170], 0
jne 0x408bdc
or ebx, 0xffffffff
mov edi, 0x4b3378
test esi, esi
je 0x408e42
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.0041d430
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401950
lea ecx, [ebp - 0x120]
call fcn.004138c0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.004064f0
push 0
push 1
lea ecx, [ebp - 0x120]
call fcn.004019ef
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.00401abf
push ecx
push ecx
lea eax, [ebp - 0x150]
mov ecx, esp
push eax
call fcn.0040387d
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x198]
call fcn.0040d7f0
push eax
lea ecx, [ebp - 0x168]
call fcn.0040d0f0
lea ecx, [ebp - 0x120]
call fcn.0040d070
lea ecx, [ebp - 0x168]
call fcn.0040eac0
lea ecx, [ebp - 0x168]
call fcn.00408071
test al, al
je 0x408e42
push ebx
push 0
lea eax, [ebp - 0x168]
mov ecx, edi
push eax
call fcn.00401cc4
push ebx
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x4b3360
push eax
call fcn.00401cc4
mov ecx, dword [ebp - 0x458]
cmp ecx, edi
je 0x408e2a
push ebx
push 0
push edi
call fcn.00401cc4
mov ecx, dword [ebp - 0x45c]
mov eax, 0x4b3360
cmp ecx, eax
je 0x408e42
push ebx
push 0
push eax
call fcn.00401cc4
lea ecx, [ebp - 0x180]
call fcn.0040d070
lea ecx, [ebp - 0x440]
call fcn.0041bd70
test esi, esi
je 0x408e6a
mov ecx, esi
call fcn.00417380
push esi
call fcn.00460c6b
pop ecx
lea ecx, [ebp - 0x454]
call fcn.00417380
push 0
push 1
lea ecx, [ebp - 0x150]
call fcn.004019ef
lea ecx, [ebp - 0x168]
call fcn.0040d070
lea ecx, [ebp - 0x198]
call fcn.0040d070
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret 8