Function at 0x448180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
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 byte [ebp - 0x3e], cl
lea ebx, [edi + 2]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x1c], 0
call sub.cygwin1.dll_wcslen
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], eax
movzx eax, word [edi + 2]
mov edi, dword [ebp - 0x38]
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x30], ecx
sub edi, 0x3f
mov dword [ebp - 0x44], edi
test ax, ax
je case.0x44848e.34
lea esi, [esi]
cmp ax, 0x5b
je 0x4482d8
lea edx, [eax - 0x21]
cmp dx, 0x1f
jbe 0x448388
cmp ax, 0x29
je 0x4483c0
cmp ax, 0x7c
sete dl
test esi, esi
sete al
and dl, al
mov byte [ebp - 0x50], dl
je 0x44839f
cmp dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x3c]
jbe 0x44822b
mov eax, ebx
sub eax, dword [ebp - 0x2c]
sar eax, 1
add eax, 1
mov edi, dword [ebp + 0x14]
xor edx, edx
test eax, eax
sets dl
lea ecx, [edi + 8]
add eax, eax
js 0x448848
test edx, edx
jne 0x448848
xor edx, edx
add ecx, eax
seto dl
mov esi, edx
jo 0x448848
cmp ecx, 0xfbf
lea edi, [eax + 8]
setg dl
jg 0x4484de
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 ecx, dword [ebp - 0x2c]
mov eax, ebx
movzx edx, dl
mov dword [edi], 0
mov word [edi + 4], dx
add ebx, 2
sub eax, ecx
mov dword [esp + 4], ecx
sar eax, 1
mov dword [esp + 8], eax
lea eax, [edi + 6]
mov dword [esp], eax
call sub.cygwin1.dll_wmempcpy
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [eax], edi
movzx eax, word [ebx]
test ax, ax
je case.0x44848e.34
mov dword [ebp - 0x2c], ebx
cmp ax, 0x5b
jne 0x4481ea
lea esi, [esi]
mov eax, dword [0x478784]
test eax, eax
je 0x4484c0
movzx eax, word [ebx + 2]
cmp ax, 0x21
je 0x448498
mov edi, dword [0x478784]
test edi, edi
jns 0x448307
cmp ax, 0x5e
je 0x448498
add ebx, 2
cmp ax, 0x5d
jne 0x44832a
movzx eax, word [ebx + 2]
add ebx, 2
lea edx, [ebx + 2]
cmp ax, 0x5d
je 0x448333
test ax, ax
je case.0x44848e.34
movzx eax, word [edx]
mov ebx, edx
lea edx, [ebx + 2]
cmp ax, 0x5d
jne 0x448320
movzx eax, word [ebx + 2]
mov ebx, edx
lea esi, [esi]
test ax, ax
jne 0x4481e0
lea esi, [esi]
mov eax, 0xffffffff
cmp byte [ebp - 0x3d], 0
je 0x44837d
mov edx, dword [ebp - 0x1c]
mov esi, eax
jmp 0x448377
cmp word [edx + 4], 0
mov ebx, dword [edx]
jne 0x4484a8
mov edx, ebx
test edx, edx
jne 0x448368
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0xc0000601
bt ecx, edx
jae 0x448399
cmp word [ebx + 2], 0x28
je 0x4483b0
cmp ax, 0x29
je 0x4483c0
lea edx, [ebx + 2]
movzx eax, word [ebx + 2]
mov ebx, edx
jmp 0x448340
lea edx, [ebx + 2]
add esi, 1
mov eax, 0x28
mov ebx, edx
jmp 0x448340
test esi, esi
je 0x4483d8
lea edx, [ebx + 2]
movzx eax, word [ebx + 2]
sub esi, 1
mov ebx, edx
jmp 0x448340
mov eax, dword [ebp - 0x38]
sub eax, 0x3f
cmp eax, 1
jbe 0x4483f0
mov eax, ebx
sub eax, dword [ebp - 0x2c]
sar eax, 1
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
lea edx, [eax + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
sets cl
add eax, eax
js 0x448848
test ecx, ecx
jne 0x448848
add edx, eax
jo 0x448848
cmp edx, 0xfbf
lea esi, [eax + 8]
setg cl
jg 0x4487d0
add dword [ebp + 0x14], esi
add eax, 0x23
shr eax, 4
shl eax, 4
call fcn.0044baa0
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov esi, eax
mov edi, dword [ebp - 0x2c]
mov eax, ebx
movzx ecx, cl
mov dword [esi], 0
mov word [esi + 4], cx
sub eax, edi
mov dword [esp + 4], edi
sar eax, 1
mov dword [esp + 8], eax
lea eax, [esi + 6]
mov dword [esp], eax
call sub.cygwin1.dll_wmempcpy
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
lea eax, [ebx + 2]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sub eax, 0x21
cmp eax, 0x1f
ja case.0x44848e.34
jmp dword [eax*4 + 0x465990]
movzx eax, word [ebx + 4]
add ebx, 4
jmp 0x44830a
mov dword [esp], edx
call fcn.004376c0
mov edx, ebx
jmp 0x448377
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 0x4482e5
mov dword [esp], edi
mov byte [ebp - 0x3f], dl
call fcn.0044ac50
mov edi, eax
test eax, eax
je 0x448848
movzx eax, byte [ebp - 0x50]
movzx edx, byte [ebp - 0x3f]
mov byte [ebp - 0x3d], al
jmp 0x448283
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 - 0x3c]
call fcn.00448860
test eax, eax
je 0x448355
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, 2
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x34]
add eax, 6
mov ebx, esi
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp - 0x3e]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
and eax, 5
mov dword [ebp - 0x48], eax
cmp esi, edi
jbe 0x448619
jmp 0x4487ee
xor eax, eax
cmp word [ebx - 2], 0x2f
jne 0x4485a2
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 - 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.00448860
test eax, eax
je 0x448355
cmp word [ebx - 2], 0x2f
jne 0x4485e1
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.00448860
test eax, eax
je 0x448355
add ebx, 2
cmp edi, ebx
jb 0x4487ee
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.00448860
mov esi, eax
test eax, eax
jne 0x44860e
cmp ebx, dword [ebp - 0x34]
jne 0x448590
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 - 0x3c]
call fcn.00448860
test eax, eax
jne 0x44860e
jmp 0x448355
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 - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebx + 6]
mov dword [esp], eax
call sub.cygwin1.dll_wcscat
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.00448860
test eax, eax
je 0x448355
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x44869d
mov eax, 1
jmp 0x448355
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 8]
ja 0x4486e1
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 - 0x3e]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x448770
mov ebx, eax
jmp 0x448736
mov ebx, dword [ebx]
test ebx, ebx
je 0x448770
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], 0
lea eax, [ebx + 6]
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.00448860
test eax, eax
jne 0x448730
add esi, 2
cmp dword [ebp + 8], esi
jae 0x448723
jmp 0x4486e1
cmp esi, edi
je 0x448852
xor eax, eax
cmp word [esi - 2], 0x2f
jne 0x44878a
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 - 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
call fcn.00448860
test eax, eax
je 0x448355
add esi, 2
cmp dword [ebp + 8], esi
jae 0x448723
jmp 0x4486e1
mov dword [esp], esi
mov byte [ebp - 0x3c], cl
call fcn.0044ac50
mov esi, eax
test eax, eax
je 0x448848
mov byte [ebp - 0x3d], 1
movzx ecx, byte [ebp - 0x3c]
jmp 0x448446
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x44855b
jmp 0x4486e1
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 - 0x3c]
call fcn.00448860
test eax, eax
jne 0x44868c
jmp 0x448355
mov eax, 0xfffffffe
jmp 0x448355
mov eax, dword [ebp - 0x30]
jmp 0x44878a