Function at 0x406ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [0x40a034], eax
mov eax, dword [0x408434]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test eax, eax
jne 0x406f0a
mov ebx, 1
mov dword [0x408434], ebx
mov eax, dword [0x40a030]
test eax, eax
je 0x406f2d
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov dword [0x408444], ecx
mov dword [0x408440], edx
test eax, eax
jne 0x406f3b
mov eax, dword [0x40843c]
cmp byte [eax], 0
jne 0x407100
mov edx, dword [0x408434]
xor eax, eax
mov dword [0x40a030], eax
cmp edx, edi
jl 0x406fc4
mov ecx, dword [0x408444]
mov eax, 0x40a038
mov dword [0x40843c], eax
cmp ecx, 0xffffffff
je 0x406fb3
mov dword [esp + 4], ecx
mov eax, dword [0x408440]
mov dword [esp + 8], edx
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00406e10
mov edi, dword [0x408440]
mov eax, dword [0x408444]
sub eax, edi
sub dword [0x408434], eax
mov esi, 0xffffffff
mov ebx, 0xffffffff
mov dword [0x408444], esi
mov dword [0x408440], ebx
mov eax, 0xffffffff
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x408440]
cmp eax, 0xffffffff
je 0x406f90
mov dword [0x408434], eax
jmp 0x406f90
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x40843c], eax
cmp byte [eax], 0x2d
je 0x4070b8
mov dword [esp], 0x406ec7
mov ecx, 0x40a038
mov dword [0x40843c], ecx
call sub.cygwin1.dll_getenv
test eax, eax
je 0x406ffc
cmp byte [esi], 0x2d
je 0x407096
mov dword [esp], 0x406ec7
call sub.cygwin1.dll_getenv
test eax, eax
je 0x406fa6
movzx eax, byte [esi]
cmp al, 0x2d
je 0x406fa6
cmp al, 0x2b
je 0x406fa6
mov edx, dword [0x408440]
cmp edx, 0xffffffff
je 0x407088
mov eax, dword [0x408444]
cmp eax, 0xffffffff
je 0x407080
mov dword [esp + 4], eax
mov eax, dword [0x408434]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00406e10
mov edx, dword [0x408440]
mov eax, dword [0x408444]
sub eax, edx
mov edx, dword [0x408434]
mov ecx, edx
sub ecx, eax
mov eax, 0xffffffff
mov dword [0x408440], ecx
mov dword [0x408444], eax
mov eax, dword [0x40a030]
inc edx
mov dword [0x408434], edx
jmp 0x406f29
mov edx, dword [0x408434]
jmp 0x40706f
mov edx, dword [0x408434]
mov dword [0x408440], edx
jmp 0x40706f
mov edx, dword [0x408434]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
inc edx
mov dword [0x408434], edx
mov dword [0x40a034], eax
mov eax, 1
jmp 0x406fab
cmp byte [eax + 1], 0
je 0x406fd8
cmp dword [0x408440], 0xffffffff
je 0x4070d8
cmp dword [0x408444], 0xffffffff
je 0x4072ef
mov eax, dword [0x40843c]
mov edx, eax
cmp byte [eax + 1], 0
je 0x407100
inc eax
mov dword [0x40843c], eax
cmp byte [edx + 1], 0x2d
je 0x4072ea
lea esi, [esi]
lea edi, [edi]
movsx ebx, byte [eax]
lea ecx, [eax + 1]
mov dword [0x40843c], ecx
cmp ebx, 0x3a
je 0x4072a0
movzx eax, byte [esi]
xor edx, edx
cmp al, 0x2d
je 0x4072e0
cmp al, 0x2b
je 0x4072e0
lea edx, [edx + esi]
mov eax, ebx
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x40713e
inc edx
test al, al
jne 0x407131
xor edx, edx
mov eax, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4072a0
cmp ebx, 0x57
je 0x407223
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
inc eax
cmp byte [edx + 1], 0x3a
je 0x407173
cmp byte [ecx], 0
jne 0x40716c
inc dword [0x408434]
mov eax, ebx
jmp 0x406fab
xor edx, edx
mov dword [0x40a034], edx
cmp byte [ecx], 0
je 0x4071a0
mov dword [0x40a034], ecx
mov edx, dword [0x408434]
mov ecx, 0x40a038
inc edx
mov dword [0x40843c], ecx
mov dword [0x408434], edx
jmp 0x40716c
cmp byte [eax + 1], 0x3a
je 0x407186
mov edx, dword [0x408434]
inc edx
cmp edx, edi
mov dword [0x408434], edx
jl 0x407213
mov edi, dword [0x408430]
mov eax, 0x40a038
mov dword [0x40843c], eax
test edi, edi
je 0x4071e0
cmp byte [esi], 0x3a
je 0x4071e0
mov dword [esp], 0x406c50
mov dword [esp + 4], ebx
call fcn.00406db0
mov dword [0x408438], ebx
movzx edx, byte [esi]
cmp dl, 0x2d
je 0x40720b
cmp dl, 0x2b
je 0x40720b
cmp dl, 0x3a
mov eax, 0x3f
jne 0x406fab
mov eax, 0x3a
jmp 0x406fab
cmp byte [esi + 1], 0x3a
jne 0x4071f3
jmp 0x407201
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x40a034], eax
jmp 0x40718c
cmp byte [eax + 1], 0x3b
jne 0x407154
cmp byte [ecx], 0
jne 0x407292
mov edx, dword [0x408434]
inc edx
cmp edx, edi
mov dword [0x408434], edx
jl 0x407287
mov ecx, dword [0x408430]
mov edi, 0x40a038
mov dword [0x40843c], edi
test ecx, ecx
je 0x407271
cmp byte [esi], 0x3a
je 0x407271
mov dword [esp], 0x406c50
mov dword [esp + 4], 0x57
call fcn.00406db0
mov dword [0x408438], ebx
movzx eax, byte [esi]
cmp al, 0x2d
mov dl, al
je 0x40720b
cmp al, 0x2b
jmp 0x4071f1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x40843c], eax
mov eax, 0xfffffffe
jmp 0x406fab
cmp byte [ecx], 0
jne 0x4072ab
inc dword [0x408434]
mov eax, dword [0x408430]
test eax, eax
je 0x4072c9
cmp byte [esi], 0x3a
je 0x4072c9
mov dword [esp], 0x406cf8
mov dword [esp + 4], ebx
call fcn.00406db0
mov dword [0x408438], ebx
mov eax, 0x3f
jmp 0x406fab
mov edx, 1
jmp 0x40712a
lea eax, [edx + 2]
jmp 0x40728d
mov dword [0x408444], edx
jmp 0x4070d8