Function at 0x514fb4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d52a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x55d358]
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edx
xor eax, eax
push eax
mov ecx, 0x5862ac
push eax
push dword [edx]
call fcn.004311e8
mov edx, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x515030
mov edx, dword [0x5862c4]
mov ecx, dword [ebp + 8]
lea eax, [edx + eax*4]
push eax
call fcn.00430810
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx]
mov eax, dword [edx - 8]
test eax, eax
je 0x5152f0
mov dword [ebp - 0x30], edx
mov eax, dword [edx - 0xc]
cmp eax, 0xffffffff
je 0x515052
add eax, 1
mov dword [edx - 0xc], eax
mov dword [ebp - 4], 1
push 1
push 0x543f80
lea ecx, [ebp - 0x30]
push 0x542818
call fcn.004302c0
mov eax, dword [0x55d358]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
mov ebx, dword [0x56f244]
test ebx, ebx
je 0x5150fe
lea ecx, [ebx + 0x34]
mov eax, dword [ecx]
mov edx, dword [eax - 8]
add ebx, 0x38
test edx, edx
je 0x515097
mov ebx, ecx
mov edx, dword [ebx]
mov ebx, dword [edx - 8]
test ebx, ebx
je 0x5152e3
mov dword [ebp - 0x38], edx
mov eax, dword [edx - 0xc]
cmp eax, 0xffffffff
je 0x5150b9
add eax, 1
mov dword [edx - 0xc], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00430810
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 4
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x38]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x5150fe
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x5150fe
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax - 8]
test edx, edx
je 0x515205
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x2c]
push eax
push 0x55700c
push edx
call fcn.00430d98
add esp, 0xc
mov dword [ebp - 4], 5
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x50]
push 0x5f
push eax
push edx
call fcn.00430f98
add esp, 0xc
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x30]
push eax
push edx
push ecx
call fcn.00431018
add esp, 0xc
mov dword [ebp - 4], 7
push dword [ebp - 0x48]
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00430664
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 8
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x48]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x5151a1
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x5151a1
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 9
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x5151d3
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x5151d3
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xa
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x50]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x515205
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x515205
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [edx - 8]
test ecx, ecx
jne 0x515272
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x30]
push eax
push 0x55700c
push edx
call fcn.00430d98
add esp, 0xc
mov dword [ebp - 4], 0xb
push dword [ebp - 0x58]
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00430664
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xc
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x58]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x515272
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x515272
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xd
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x5152a4
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x5152a4
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xe
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x51501c
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x51501c
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x51501c
mov eax, dword [0x55d358]
mov dword [ebp - 0x38], eax
jmp 0x5150b9
mov eax, dword [0x55d358]
mov dword [ebp - 0x30], eax
jmp 0x515052