Function at 0x42f3a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0xc], ebx
test edx, edx
mov ebx, eax
mov dword [ebp - 4], edi
mov edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x68], edx
je 0x42f510
mov dword [ebp - 0x64], 0xffffffff
mov eax, 0xffffffff
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x6c], 0
mov dword [esp + 8], eax
mov eax, 0x453220
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0044b710
cmp eax, 3
mov esi, eax
ja 0x42f4d0
mov ebx, dword [ebp - 0x5c]
mov edx, dword [sym.imp.cygwin1.dll___ctype_ptr__]
movzx ecx, byte [ebx]
mov edx, dword [edx]
movsx eax, cl
test byte [eax + edx + 1], 4
jne 0x42f424
xor ecx, ecx
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp cl, 0x30
je 0x42f500
mov dword [esp], ebx
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x64]
mov dword [esp + 8], eax
mov eax, 0x456d19
mov dword [esp + 4], eax
call sub.cygwin1.dll_sscanf
xor ecx, ecx
test eax, eax
jle 0x42f415
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp byte [edx + eax], 0
jne 0x42f415
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x42f415
mov dword [esp], eax
call fcn.00448d90
cmp esi, 1
je 0x42f612
jle 0x42f642
cmp esi, 2
je 0x42f62a
cmp esi, 3
je 0x42f661
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x6c]
mov dword [esp + 8], edx
mov eax, dword [0x45e100]
mov dword [esp + 4], eax
mov eax, dword [0x45b598]
mov dword [esp], eax
call fcn.0044cfd0
mov ecx, eax
lea esi, [esi]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
lea eax, [ebp - 0x5c]
mov esi, 0x453220
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.0044b710
mov esi, eax
lea eax, [eax - 4]
cmp eax, 0xc
ja case.default.0x42f4f8
jmp dword [eax*4 + 0x456d24]
cmp byte [ebx + 1], 0
jne 0x42f413
jmp 0x42f42d
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], eax
jmp 0x42f3c1
mov dword [esp], ebx
call sub.cygwin1.dll_getenv
xor ecx, ecx
test eax, eax
mov ebx, eax
je 0x42f415
test edi, edi
je 0x42f53f
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_strcpy
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
mov ecx, eax
jmp 0x42f4c0
mov eax, dword [0x45cb9c]
mov ecx, dword [0x45de88]
add eax, ecx
nop
lea esi, [esi]
mov dword [esp + 8], eax
mov esi, 0x456d1e
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
mov edx, dword [ebp - 0x68]
mov dword [esp], edx
call sub.cygwin1.dll_strlen
mov ecx, eax
jmp 0x42f4c0
mov eax, dword [0x45cb90]
jmp 0x42f560
mov eax, dword [0x45cba0]
mov edx, dword [0x45de8c]
add eax, edx
jmp 0x42f560
mov eax, dword [0x45de90]
jmp 0x42f560
mov eax, dword [0x45de94]
jmp 0x42f560
mov eax, dword [0x45cb9c]
jmp 0x42f560
mov eax, dword [0x45cba0]
jmp 0x42f560
mov eax, dword [0x45de90]
cdq
idiv dword [0x45cb9c]
jmp 0x42f560
mov eax, dword [0x45de94]
cdq
idiv dword [0x45cba0]
jmp 0x42f560
mov edi, dword [ebp + 8]
test edi, edi
je 0x42f413
mov edx, dword [ebp + 8]
test byte [edx + 0x5d], 0x20
jne 0x42f413
cmp esi, 0xd
je 0x42f695
jg 0x42f679
cmp esi, 0xc
jne 0x42f413
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1fc]
jmp 0x42f560
mov eax, dword [ebp - 0x64]
mov edx, dword [0x45b754]
shl eax, 5
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x6c], eax
jmp 0x42f48e
mov eax, dword [ebp - 0x64]
mov edx, dword [0x45b754]
shl eax, 5
mov eax, dword [eax + edx + 8]
mov dword [ebp - 0x6c], eax
jmp 0x42f48e
test esi, esi
jne 0x42f48e
mov eax, dword [ebp - 0x64]
mov edx, dword [0x45b754]
shl eax, 5
mov eax, dword [eax + edx]
mov dword [ebp - 0x6c], eax
jmp 0x42f48e
mov eax, dword [ebp - 0x64]
mov edx, dword [0x45b754]
shl eax, 5
mov eax, dword [eax + edx + 0xc]
mov dword [ebp - 0x6c], eax
jmp 0x42f48e
cmp esi, 0xe
je 0x42f6a3
cmp esi, 0xf
jne 0x42f413
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x208]
jmp 0x42f560
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x200]
jmp 0x42f560
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x204]
jmp 0x42f560