Function at 0x47ee93
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 0x47ef7d
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 0x62f624
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 0x47ef53
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.0048b2d1
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0048e30f
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [eax + 4], edx
jmp 0x47ef6e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0048e30f
mov dword [eax + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0048a820
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0
je 0x47ef90
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x47eed8
mov dword [ebp - 0x10], 0
jmp 0x47f010
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 0x47f00b
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_getenv
test eax, eax
je 0x47f00b
cmp dword [ebp - 0x14], 0
jne 0x47efef
mov dword [esp + 4], str._unset
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047de84
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5b05a9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048b459
jmp 0x47f00c
nop
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
cmp edx, eax
ja 0x47ef99
cmp dword [ebp - 0x14], 0
je 0x47f037
mov dword [esp + 4], 0x3b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047de28
mov dword [ebp - 0x10], 0
jmp 0x47f0ca
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 0x47f0c2
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 0x47f094
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 0x47f0c5
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5b05ad
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048b459
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004503b4
jmp 0x47f0c6
nop
jmp 0x47f0c6
nop
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
cmp edx, eax
ja 0x47f043
mov dword [esp + 4], 0
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0048e723
nop
leave
ret