Function at 0x5874d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5874dc
push ebx
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov edx, dword [0x5866f4]
call fcn.00405cc0
xor eax, eax
push ebp
push 0x587790
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0x48]
xor eax, eax
push ebp
push 0x587760
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x590fe0
xor ebx, ebx
lea eax, [ebp - 8]
lea edx, [esi + ebx*8]
mov ecx, dword [0x5866f4]
call fcn.00405ff4
mov edx, dword [ebp - 8]
mov eax, 0x5877a4
call fcn.0040a51c
test eax, eax
jne 0x587584
push dword [ebp - 8]
push 0x5877c0
lea edx, [ebp - 0x18]
mov eax, dword [0x5992f8]
call fcn.00472690
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5876d9
mov edx, dword [ebp - 8]
mov eax, 0x5877c8
call fcn.0040a51c
test eax, eax
jne 0x5875ec
push dword [ebp - 8]
push 0x5877c0
lea eax, [ebp - 0x28]
mov ecx, 0x5877e0
mov edx, dword [0x5992f8]
call fcn.004059f4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00472af0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00472690
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5876d9
mov edx, dword [ebp - 8]
mov eax, 0x5877ec
call fcn.0040a51c
test eax, eax
jne 0x58763e
push dword [ebp - 8]
push 0x5877c0
lea eax, [ebp - 0x34]
call fcn.0058743c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00472690
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5876d9
mov edx, dword [ebp - 8]
mov eax, 0x5877fc
call fcn.0040a51c
test eax, eax
jne 0x587692
push dword [ebp - 8]
push 0x5877c0
lea edx, [ebp - 0x40]
mov eax, dword [0x5992f8]
call fcn.004727c0
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00472690
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5876d9
push dword [ebp - 8]
push 0x5877c0
mov eax, dword [ebp - 0xc]
call fcn.00450dd4
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.00586fa4
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00472690
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x44
jne 0x587527
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x58774a
xor eax, eax
push ebp
push 0x587743
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004058bc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0040b3d0
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x587702
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58774a
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
ret
mov eax, dword [ebp - 0xc]
call fcn.00587818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587767
ret