Function at 0x449450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [esp], edx
mov ecx, edi
mov dword [ebp - 0x48], edi
mov edi, edx
mov dword [ebp - 0x38], eax
lea ebx, [edi + 1]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x3a], cl
mov dword [ebp - 0x1c], 0
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x30], esi
xor esi, esi
mov dword [ebp - 0x40], eax
movzx eax, byte [edi + 1]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x39], 0
sub edi, 0x3f
mov dword [ebp - 0x44], edi
test al, al
je case.0x4496ea.34
lea esi, [esi]
nop
cmp al, 0x5b
je 0x449580
lea edx, [eax - 0x21]
cmp dl, 0x1f
jbe 0x449610
cmp al, 0x7c
sete dl
test esi, esi
sete al
and dl, al
mov byte [ebp - 0x50], dl
je 0x449624
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x44], 1
lea edx, [eax + 8]
jbe 0x4497a0
mov eax, ebx
sub eax, dword [ebp - 0x2c]
add eax, 1
js 0x449b70
xor ecx, ecx
add edx, eax
seto cl
mov esi, ecx
jo 0x449b70
cmp edx, 0xfbf
lea edi, [eax + 8]
setg cl
jg 0x449ad0
add dword [ebp + 0x14], edi
add eax, 0x23
shr eax, 4
shl eax, 4
call fcn.0044baa0
sub esp, eax
lea edi, [esp + 0x1f]
and edi, 0xfffffff0
mov byte [edi + 4], cl
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
lea eax, [edi + 5]
mov dword [edi], 0
add ebx, 1
sub edx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call sub.cygwin1.dll_memcpy
mov edx, dword [ebp - 0x2c]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [eax], edi
movzx eax, byte [ebx]
test al, al
je case.0x4496ea.34
mov dword [ebp - 0x2c], ebx
cmp al, 0x5b
jne 0x4494b8
lea esi, [esi]
mov ecx, dword [0x478784]
test ecx, ecx
je 0x4497c0
movzx eax, byte [ebx + 1]
cmp al, 0x21
je 0x4496f8
mov edx, dword [0x478784]
test edx, edx
jns 0x4495ac
cmp al, 0x5e
je 0x4496f8
add ebx, 1
cmp al, 0x5d
jne 0x4495d1
movzx eax, byte [ebx + 1]
add ebx, 1
lea edx, [ebx + 1]
cmp al, 0x5d
je 0x4495d8
lea esi, [esi]
test al, al
je case.0x4496ea.34
movzx eax, byte [edx]
mov ebx, edx
lea edx, [ebx + 1]
cmp al, 0x5d
jne 0x4495c8
movzx eax, byte [ebx + 1]
mov ebx, edx
nop
test al, al
jne 0x4494b0
lea esi, [esi]
nop
mov eax, 0xffffffff
cmp byte [ebp - 0x39], 0
jne 0x449760
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0xc0000601
bt ecx, edx
jae 0x449620
cmp byte [ebx + 1], 0x28
je 0x449630
cmp al, 0x29
je 0x449640
lea edx, [ebx + 1]
movzx eax, byte [ebx + 1]
mov ebx, edx
jmp 0x4495e0
lea edx, [ebx + 1]
add esi, 1
mov eax, 0x28
mov ebx, edx
jmp 0x4495e0
test esi, esi
je 0x449658
lea edx, [ebx + 1]
movzx eax, byte [ebx + 1]
sub esi, 1
mov ebx, edx
jmp 0x4495e0
mov eax, dword [ebp + 0x14]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x38]
sub eax, 0x3f
cmp eax, 1
jbe 0x449790
mov eax, ebx
sub eax, dword [ebp - 0x2c]
add eax, 1
js 0x449b70
add edx, eax
jo 0x449b70
lea ecx, [eax + 8]
cmp edx, 0xfbf
jg 0x449704
add dword [ebp + 0x14], ecx
add eax, 0x23
shr eax, 4
shl eax, 4
call fcn.0044baa0
mov ecx, dword [ebp - 0x2c]
sub esp, eax
mov edi, ebx
lea esi, [esp + 0x1f]
sub edi, ecx
and esi, 0xfffffff0
lea eax, [esi + 5]
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov byte [eax + edi], 0
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
lea eax, [ebx + 1]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x4496ea.34
jmp dword [eax*4 + 0x465b00]
movzx eax, byte [ebx + 2]
add ebx, 2
jmp 0x4495af
mov dword [esp], ecx
call fcn.0044ac50
mov esi, eax
test eax, eax
je 0x449b70
mov ecx, dword [ebp - 0x2c]
mov edi, ebx
mov dword [eax], 0
lea eax, [eax + 5]
mov byte [eax - 1], 1
sub edi, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov byte [eax + edi], 0
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
lea eax, [ebx + 1]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
sub eax, 0x21
cmp eax, 0x1f
jbe switch.0x00449af5
mov eax, 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x1c]
mov esi, eax
jmp 0x44977a
cmp byte [edx + 4], 0
mov ebx, dword [edx]
jne 0x4497b0
mov edx, ebx
test edx, edx
jne 0x449770
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x40]
jmp 0x44967b
mov eax, dword [ebp - 0x40]
jmp 0x4494f7
mov dword [esp], edx
call fcn.004376c0
mov edx, ebx
jmp 0x44977a
mov dword [esp], str.POSIXLY_CORRECT
call sub.cygwin1.dll_getenv
cmp eax, 1
sbb eax, eax
or eax, 1
mov dword [0x478784], eax
jmp 0x44958e
mov byte [ebp - 0x39], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
movzx eax, byte [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call fcn.00449b90
test eax, eax
je 0x4495f5
mov eax, dword [ebp + 0x10]
and eax, 0xfffffffb
test byte [ebp + 0x10], 1
cmovne eax, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
sub eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x34]
add eax, 5
mov ebx, esi
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp - 0x3a]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
and eax, 5
mov dword [ebp - 0x48], eax
cmp esi, edi
jbe 0x4498ef
jmp 0x449ab0
xor eax, eax
cmp byte [ebx - 1], 0x2f
jne 0x449879
xor eax, eax
cmp dword [ebp - 0x48], 5
sete al
mov ecx, dword [ebp + 0x14]
mov dword [esp], eax
mov edx, ebx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.00449b90
test eax, eax
je 0x4495f5
cmp byte [ebx - 1], 0x2f
jne 0x4498b7
xor eax, eax
cmp dword [ebp - 0x48], 5
sete al
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov ecx, edi
mov edx, ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
call fcn.00449b90
test eax, eax
je 0x4495f5
add ebx, 1
cmp edi, ebx
jb 0x449ab0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call fcn.00449b90
mov esi, eax
test eax, eax
jne 0x4498e4
cmp ebx, dword [ebp - 0x34]
jne 0x449868
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov ecx, edi
mov edx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call fcn.00449b90
test eax, eax
jne 0x4498e4
jmp 0x4495f5
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 8]
ja 0x4499ee
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
and eax, 0xfffffffb
test byte [ebp + 0x10], 1
cmovne eax, dword [ebp + 0x10]
mov esi, ecx
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
and eax, 5
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp - 0x3a]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x449a58
mov ebx, eax
jmp 0x4499ba
mov ebx, dword [ebx]
test ebx, ebx
je 0x449a58
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], 0
lea eax, [ebx + 5]
mov edx, edi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp], ecx
mov ecx, esi
call fcn.00449b90
test eax, eax
jne 0x4499b0
add esi, 1
cmp dword [ebp + 8], esi
jae 0x44999c
mov eax, 1
jmp 0x4495f5
movzx edi, byte [ebp - 0x48]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x1c]
and esi, 0xfffffffb
test byte [ebp + 0x10], 1
cmovne esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebx + 5]
mov dword [esp], eax
call sub.cygwin1.dll_strcat
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], edi
call fcn.00449b90
test eax, eax
je 0x4495f5
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x449a0d
jmp 0x4499ee
cmp esi, edi
je 0x449b7a
xor eax, eax
cmp byte [esi - 1], 0x2f
jne 0x449a71
xor eax, eax
cmp dword [ebp - 0x34], 5
sete al
mov ecx, dword [ebp + 0x14]
mov dword [esp], eax
mov edx, esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
call fcn.00449b90
test eax, eax
je 0x4495f5
add esi, 1
cmp dword [ebp + 8], esi
jae 0x44999c
jmp 0x4499ee
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x44983a
jmp 0x4499ee
mov dword [esp], edi
mov byte [ebp - 0x3b], cl
call fcn.0044ac50
mov edi, eax
test eax, eax
je 0x449b70
movzx eax, byte [ebp - 0x50]
movzx ecx, byte [ebp - 0x3b]
mov byte [ebp - 0x39], al
jmp 0x449532
jmp dword [eax*4 + 0x465b80]
mov byte [ebp - 0x39], 1
mov eax, dword [ebp + 0x14]
movzx edi, byte [ebp - 0x48]
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
call fcn.00449b90
test eax, eax
jne 0x4499fc
jmp 0x4495f5
mov byte [ebp - 0x39], 1
movzx edi, byte [ebp - 0x48]
jmp 0x4499fc
mov byte [ebp - 0x39], 1
jmp case.0x4496ea.43
mov byte [ebp - 0x39], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 8]
jbe 0x44996c
mov eax, 1
jmp 0x449760
mov eax, 0xfffffffe
jmp 0x4495f5
mov eax, dword [ebp - 0x30]
jmp 0x449a71