Function at 0x486ceb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movzx eax, byte [ebp - 0x34]
or eax, 1
mov byte [ebp - 0x34], al
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x486dd5
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 0x61d2e4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 4], 0x3d
mov dword [esp], eax
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x486dab
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00492789
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.004957c7
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [eax + 4], edx
jmp 0x486dc6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.004957c7
mov dword [eax + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00491cd8
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0
je 0x486de8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x486d30
mov dword [ebp - 0x10], 0
jmp 0x486e68
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
shl eax, 3
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
shl eax, 3
add eax, edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x486e63
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_getenv
test eax, eax
je 0x486e63
cmp dword [ebp - 0x14], 0
jne 0x486e47
mov dword [esp + 4], str._unset
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00485cdc
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5aecd9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00492911
jmp 0x486e64
nop
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
cmp edx, eax
ja 0x486df1
cmp dword [ebp - 0x14], 0
je 0x486e8f
mov dword [esp + 4], 0x3b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00485c80
mov dword [ebp - 0x10], 0
jmp 0x486f22
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
shl eax, 3
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
shl eax, 3
add eax, edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x486f1a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_getenv
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x486eec
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x486f1d
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5aecdd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00492911
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004577f0
jmp 0x486f1e
nop
jmp 0x486f1e
nop
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
cmp edx, eax
ja 0x486e9b
mov dword [esp + 4], 0
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00495bdb
nop
leave
ret