Function at 0x488130
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x50dc38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x14], eax
call fcn.0040a740
test eax, eax
jne 0x488186
xor al, al
jmp 0x4883ad
lea ecx, [ebp + 0x30]
call fcn.0040a890
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00402fb0
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4881a8
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x4881df
call fcn.0040a740
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.00413270
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.0040a7d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
jmp 0x488200
call fcn.00402fb0
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x488200
mov eax, esi
cmp edx, 8
jb 0x4881f4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.0040ab90
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004d9580
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.0040a750
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x48827f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d7786
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.0040a750
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040acf0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.0040ab90
push esi
call fcn.004d6fb6
add esp, 4
jmp 0x488298
lea eax, [ebp + 0x48]
push eax
call fcn.0040acf0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040ab90
push 0x52dd48
lea ecx, [ebp]
call fcn.0040a850
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402fb0
lea ecx, [ebp]
mov esi, eax
call fcn.00402fb0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4882c5
mov edx, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4882cf
mov ecx, dword [esi]
push dword [eax + 0x10]
mov edi, dword [esi + 0x10]
push edx
push 0
push edi
push ecx
mov dword [ebp - 0x10], edi
call fcn.0040bcd0
mov edi, dword [esi + 0x14]
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x48836b
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00413200
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.0040a7d0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x488367
lea ecx, [ebp + 0x30]
call fcn.0040a740
mov edx, eax
lea ecx, [ebp]
sub edx, dword [ebp - 0x18]
call fcn.0040a740
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.00413270
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a750
xor edx, edx
mov ecx, eax
call fcn.00412b10
mov dword [esi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
mov bl, 1
jmp 0x488390
lea ecx, [ebp + 0x30]
call fcn.00402fb0
cmp ebx, eax
je 0x488389
cmp edi, 8
jb 0x48837e
mov esi, dword [esi]
push dword [ebp - 0x10]
mov ecx, ebx
push esi
call fcn.0040ab90
cmp dword [ebp - 0x14], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0040a7c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040a7c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004d6ca5
lea esp, [ebp + 0x254]
pop ebp
ret