Function at 0x40b470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40b854
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x40b854
test dword [ebp + 0xc], 0xffff8100
jne 0x40b854
mov eax, dword [ebp + 0xc]
and eax, 8
mov dword [ebp - 0x180], eax
jne 0x40b4b7
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
test dword [ebp + 0xc], 0x400
je 0x40b4f6
test byte [ebp + 0xc], 0x40
jne 0x40b870
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
mov ebx, ecx
test al, al
jne 0x40b4ea
jmp 0x40b4f6
cmp al, 0x7b
je 0x40b885
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40b4f6
cmp al, 0x5c
jne 0x40b4d8
add ebx, 1
cmp byte [ebx], 0
jne 0x40b4e0
mov dword [esp + 4], 0x2f
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.cygwin1.dll_strrchr
test eax, eax
mov ebx, eax
mov dword [ebp - 0x16c], eax
je 0x40bdf8
cmp eax, dword [ebp + 8]
je 0x40bbb6
mov eax, dword [ebp + 8]
add eax, 1
cmp ebx, eax
je 0x40bba0
mov edx, ebx
sub edx, dword [ebp + 8]
mov eax, edx
add eax, 0x1f
and eax, 0xfffffff0
mov dword [ebp - 0x168], edx
call fcn.00412940
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x23]
and esi, 0xfffffff0
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0
lea eax, [ebx + 1]
mov dword [ebp - 0x16c], eax
cmp byte [ebx + 1], 0
jne 0x40b581
cmp dword [ebp - 0x168], 1
ja 0x40b938
mov edi, esi
test byte [ebp + 0xc], 0x20
je 0x40b9d5
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x14]
test dword [ebp + 0xc], 0x5000
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
je 0x40b5b6
cmp byte [edi], 0x7e
je 0x40bea9
mov ebx, dword [ebp - 0x168]
xor esi, esi
mov dword [ebp - 0x134], ebx
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
je 0x40bcb3
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x12c]
and ebx, 0x40
sete al
movzx eax, al
mov dword [ebp - 0x128], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040aae0
test al, 5
je 0x40bb14
test ebx, ebx
jne 0x40b657
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x40b657
mov ecx, dword [ebp - 0x134]
lea eax, [edi + ecx - 1]
cmp byte [eax], 0x5c
jne 0x40b657
cmp edi, eax
mov edx, eax
jae 0x40b643
cmp byte [eax - 1], 0x5c
lea ecx, [eax - 1]
jne 0x40b643
mov edx, ecx
jmp 0x40b63f
cmp byte [edx - 1], 0x5c
lea eax, [edx - 1]
jne 0x40b643
mov edx, eax
cmp edi, edx
jb 0x40b634
mov ebx, dword [ebp - 0x134]
lea eax, [edi + ebx]
sub eax, edx
test al, 1
je 0x40b657
mov byte [edi + ebx - 1], 0
test dword [ebp + 0xc], 0x200
jne 0x40c668
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x194], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], edi
and eax, 0x241
or eax, 0x2004
mov dword [esp + 4], eax
call fcn.0040b470
test eax, eax
jne 0x40bbe8
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x40b72f
mov ecx, dword [ebp + 0xc]
xor edi, edi
and ecx, 0xfffff7cf
or ecx, 0x20
mov dword [ebp - 0x13c], ecx
lea eax, [edi*4]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x54]
mov esi, dword [ebx]
mov edx, dword [eax + edi*4]
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0x10]
mov dword [esp], ecx
mov ecx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x16c]
call fcn.0040ad80
cmp eax, 3
mov ebx, eax
je 0x40b727
test eax, eax
jne 0x40c2e6
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebx]
sub ecx, esi
add esi, dword [ebx + 8]
lea edx, [esi*4]
add edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x170]
mov eax, dword [eax + ebx]
call fcn.0040ac80
test eax, eax
jne 0x40c30f
add edi, 1
cmp dword [ebp - 0x58], edi
ja 0x40b6b8
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x128]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
add eax, dword [edx]
or bh, 1
mov dword [ebp - 0x138], ebx
cmp eax, ecx
mov dword [ebp - 0x164], ecx
je 0x40bc10
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
call fcn.0040ab90
test byte [ebp - 0x138], 2
je 0x40bd91
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
add eax, dword [edx]
cmp dword [ebp - 0x164], eax
jae 0x40bd91
mov ecx, dword [ebp - 0x138]
mov esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x164]
and ecx, 0x200
mov dword [ebp - 0x144], ecx
shl esi, 2
jmp 0x40b7c6
mov ebx, dword [ebp + 0x14]
add edi, 1
add esi, 4
mov eax, dword [ebx + 8]
add eax, dword [ebx]
cmp eax, edi
jbe 0x40bd91
mov ecx, dword [ebp - 0x144]
test ecx, ecx
jne 0x40c494
lea ecx, [ebp - 0x118]
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi]
mov dword [esp], eax
call sub.cygwin1.dll__stat64
test eax, eax
jne 0x40b7b0
mov eax, dword [ebp - 0x108]
and eax, 0xf000
cmp eax, 0x4000
sete al
test al, al
je 0x40b7b0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
mov ebx, dword [eax + esi]
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x190], eax
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_realloc
test eax, eax
mov edx, eax
je 0x40c38e
mov eax, dword [ebp - 0x190]
mov word [edx + eax], 0x2f
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov dword [eax + esi], edx
jmp 0x40b7b0
call sub.cygwin1.dll___errno
mov esi, 0xffffffff
mov dword [eax], 0x16
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x7b
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.cygwin1.dll_strchr
mov ebx, eax
test ebx, ebx
je 0x40b4f6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x178], esp
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 0x1d
and eax, 0xfffffff0
call fcn.00412940
mov eax, ebx
sub eax, dword [ebp + 8]
lea edx, [esp + 0x23]
and edx, 0xfffffff0
mov dword [ebp - 0x184], edx
lea esi, [ebx + 1]
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sub.cygwin1.dll_mempcpy
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x188], eax
mov eax, esi
call fcn.0040aa70
mov ebx, eax
test ebx, ebx
je 0x40b8ff
cmp byte [eax], 0x7d
je 0x40ba01
mov edx, dword [ebp + 0xc]
add eax, 1
call fcn.0040aa70
test eax, eax
jne 0x40b8e7
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
and dword [ebp + 0xc], 0xfffffbff
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0040b470
mov esi, eax
mov eax, esi
mov esp, dword [ebp - 0x178]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebp + 0xc], 0x40
jne 0x40b996
mov ecx, dword [ebp - 0x168]
lea edx, [ecx + esi - 1]
cmp byte [edx], 0x5c
jne 0x40b996
cmp esi, edx
mov ecx, edx
jae 0x40b974
cmp byte [edx - 1], 0x5c
lea eax, [edx - 1]
je 0x40b96b
jmp 0x40b974
cmp byte [eax - 1], 0x5c
lea edx, [eax - 1]
jne 0x40b972
mov eax, edx
cmp esi, eax
lea esi, [esi]
jb 0x40b960
mov ecx, eax
mov eax, dword [ebp - 0x168]
sub eax, ecx
test al, 1
je 0x40b996
mov ebx, dword [ebp - 0x168]
mov byte [esi + ebx - 1], 0
mov ebx, dword [ebp + 0xc]
and ebx, 0xfffff7ef
jmp 0x40b999
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, ebx
or eax, 2
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 8], edx
call fcn.0040b470
test eax, eax
je 0x40bde0
cmp eax, 3
je 0x40bc79
mov esi, eax
nop
lea esi, [esi]
jmp 0x40b864
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp + 0x14]
test eax, eax
mov dword [edx], 0
jne 0x40be63
mov ecx, dword [edx + 8]
mov dword [edx + 4], 0
mov dword [ebp - 0x140], ecx
jmp 0x40b599
add eax, 1
mov dword [ebp - 0x130], eax
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 1
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 0xc]
and eax, 0x20
mov dword [ebp - 0x17c], eax
je 0x40bbd3
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx]
and edi, 0xfffff7cf
or edi, 0x20
mov dword [ebp - 0x160], ecx
mov eax, ebx
sub eax, esi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x188]
mov dword [esp], eax
call sub.cygwin1.dll_mempcpy
mov edx, dword [ebp - 0x15c]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x130]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x184]
mov dword [esp], ecx
call fcn.0040b470
test eax, eax
mov esi, eax
je 0x40bad0
cmp eax, 3
je 0x40bad0
mov eax, dword [ebp - 0x17c]
test eax, eax
jne 0x40b928
mov ebx, dword [ebp + 0x14]
mov dword [esp], ebx
call fcn.0040ab90
mov dword [ebx], 0
jmp 0x40b928
cmp byte [ebx], 0x7d
je 0x40bf86
mov edx, dword [ebp + 0xc]
lea esi, [ebx + 1]
mov eax, esi
call fcn.0040aa70
test eax, eax
mov ebx, eax
jne 0x40ba44
mov dword [esp + 0xc], str.next___NULL
mov dword [esp + 8], str.rpl_glob
mov dword [esp + 4], 0x19f
mov dword [esp], str._usr_src_packages_inetutils_tmp_inetutils_1.7_1_src_inetutils_1.7_lib_glob.c
call sub.cygwin1.dll___assert_func
mov edx, dword [ebp + 0x14]
test al, 2
mov ebx, dword [edx]
jne 0x40bc35
mov ecx, dword [ebp + 0xc]
test esi, esi
mov dword [ebp - 0x138], ecx
jne 0x40be50
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x16c]
call fcn.0040ad80
test eax, eax
je 0x40be30
cmp eax, 3
jne 0x40b9c9
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 0x138], ebx
je 0x40b9c9
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x128]
mov eax, dword [eax + 8]
mov edx, dword [edx]
add eax, edx
cmp eax, ecx
mov dword [ebp - 0x164], eax
je 0x40c3ac
mov esi, 3
jmp 0x40b864
mov eax, dword [ebp + 8]
cmp byte [eax], 0x5c
jne 0x40b530
test byte [ebp + 0xc], 0x40
jne 0x40b530
add ebx, 1
mov edi, 0x416a06
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], 1
jmp 0x40b583
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
jmp 0x40ba2d
test byte [ebp + 0xc], 0x10
je 0x40b9c9
cmp eax, 3
jne 0x40b9c9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x164], edx
test byte [ebp - 0x138], 0x10
jne 0x40bfb5
mov ebx, dword [ebp - 0x194]
mov esi, 3
mov dword [esp], ebx
call fcn.0040ab90
jmp 0x40b864
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call sub.cygwin1.dll_strchr
mov edx, eax
mov ecx, eax
jmp 0x40bc61
mov byte [ecx], al
cmp byte [edx], 0
je 0x40be50
add ecx, 1
add edx, 1
movzx eax, byte [edx]
cmp al, 0x5c
jne 0x40bc50
add edx, 1
movzx eax, byte [edx]
mov byte [ecx], al
sub dword [ebp - 0x134], 1
jmp 0x40bc52
cmp ebx, dword [ebp + 0xc]
je 0x40b9c9
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x54], 0
mov ebx, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x194], ecx
add ebx, eax
mov dword [ebp - 0x164], ebx
jmp 0x40bc10
test byte [ebp + 0xc], 0x10
jne 0x40bcf6
test dword [ebp + 0xc], 0x200
jne 0x40c68e
lea eax, [ebp - 0xb8]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll__stat64
test eax, eax
jne 0x40bb93
mov eax, dword [ebp - 0xa8]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40bb93
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 8]
add esi, dword [ecx]
lea eax, [esi*4 + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
test eax, eax
mov ebx, eax
je 0x40c4fa
mov edx, dword [ebp + 0x14]
test byte [ebp + 0xc], 2
mov dword [edx + 4], eax
je 0x40c01e
mov eax, dword [ebp - 0x134]
add eax, 2
mov dword [esp], eax
call sub.cygwin1.dll_malloc
mov ecx, dword [ebp + 0x14]
mov dword [ebx + esi*4], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x40c03a
mov ebx, dword [ebp - 0x134]
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0x2f
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
mov dword [eax + esi*4 + 4], 0
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov eax, dword [ebp + 0xc]
add dword [ebx], 1
mov dword [ebx + 0xc], eax
jmp 0x40b864
xor esi, esi
test byte [ebp - 0x138], 4
jne 0x40b864
mov dword [esp + 0xc], 0x40c6f0
xor esi, esi
mov dword [esp + 8], 4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
add eax, dword [edx]
sub eax, dword [ebp - 0x164]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x164]
shl eax, 2
add eax, dword [edx + 4]
mov dword [esp], eax
call sub.cygwin1.dll_qsort
jmp 0x40b864
mov ecx, dword [ebp + 0x14]
and ebx, 2
xor esi, esi
mov eax, dword [ecx + 0xc]
and eax, 0xfffffffd
or ebx, eax
mov dword [ecx + 0xc], ebx
jmp 0x40b864
test dword [ebp + 0xc], 0x5000
je 0x40be0d
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0x7e
je 0x40c4cd
mov ebx, dword [ebp + 8]
mov edi, 0x416a08
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], ebx
jmp 0x40b583
mov esi, dword [ebp - 0x134]
test esi, esi
jne 0x40c2a8
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x164], eax
jmp 0x40b765
mov eax, dword [ebp + 0xc]
and eax, 0xfffff7ef
mov dword [ebp - 0x138], eax
jmp 0x40bb32
mov ebx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebx + 8]
lea eax, [eax*4 + 4]
mov dword [esp], eax
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [ebx + 4], eax
je 0x40b864
mov ebx, dword [ebp + 0x14]
xor edx, edx
mov ecx, dword [ebx + 8]
mov dword [eax + edx*4], 0
add edx, 1
cmp ecx, edx
mov dword [ebp - 0x140], ecx
jae 0x40be90
jmp 0x40b599
lea edx, [edi + 1]
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x14c], edx
movzx eax, byte [edi + 1]
test al, al
jne 0x40c05c
mov dword [esp], str.HOME
call sub.cygwin1.dll_getenv
test eax, eax
mov dword [ebp - 0x174], eax
je 0x40c3ca
cmp byte [eax], 0
je 0x40c3ca
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x1a0]
mov esi, 1
mov edi, dword [ebp - 0x158]
cmp byte [ecx], 0
je 0x40b5c4
mov ebx, dword [ebp - 0x134]
add ebx, dword [ebp - 0x168]
lea eax, [ebx + 0x1e]
and eax, 0xfffffff0
call fcn.00412940
mov eax, dword [ebp - 0x134]
lea esi, [esp + 0x23]
sub ebx, 1
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x158]
and esi, 0xfffffff0
mov dword [esp], esi
mov edi, esi
mov esi, 1
mov dword [esp + 4], edx
call sub.cygwin1.dll_mempcpy
mov ecx, dword [ebp - 0x168]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x1a0]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_memcpy
mov dword [ebp - 0x134], ebx
jmp 0x40b5c4
mov eax, dword [ebp + 0x14]
xor esi, esi
mov edx, dword [ebp - 0x160]
cmp dword [eax], edx
jne 0x40b928
test dword [ebp + 0xc], 0x810
mov si, 3
je 0x40b928
mov esp, dword [ebp - 0x178]
jmp 0x40b4f6
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebx + 8]
add esi, dword [ebx]
lea eax, [esi*4 + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
test eax, eax
mov ebx, eax
je 0x40c4e2
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [esp], ecx
call sub.cygwin1.dll_strdup
mov dword [ebx + esi*4], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x40c62a
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x138]
mov dword [eax + esi*4 + 4], 0
add dword [edx], 1
mov dword [edx + 0xc], ecx
jmp 0x40b757
mov dword [esp], edi
call sub.cygwin1.dll_strdup
mov ecx, dword [ebp + 0x14]
mov dword [ebx + esi*4], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + esi*4]
test edx, edx
jne 0x40bd76
mov dword [esp], eax
mov esi, 1
call sub.cygwin1.dll_free
mov eax, dword [ebp + 0x14]
mov dword [eax + 4], 0
mov dword [eax], 0
jmp 0x40b864
cmp al, 0x2f
je 0x40bec4
test byte [ebp + 0xc], 0x40
jne 0x40c355
cmp al, 0x5c
je 0x40c465
mov dword [esp + 4], 0x2f
mov dword [esp], edi
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x40c5f5
mov ecx, dword [ebp - 0x150]
sub ecx, edi
mov dword [ebp - 0x124], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call sub.cygwin1.dll_memchr
mov ebx, eax
mov eax, dword [ebp - 0x124]
add eax, 0x1e
and eax, 0xfffffff0
call fcn.00412940
mov edx, dword [ebp - 0x124]
lea esi, [esp + 0x23]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x1a0]
and esi, 0xfffffff0
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.cygwin1.dll_mempcpy
test ebx, ebx
mov byte [eax], 0
je 0x40c5cb
mov eax, edi
not eax
lea eax, [ebx + eax]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_mempcpy
movzx edx, byte [ebx]
test dl, dl
mov ecx, eax
je 0x40c156
mov eax, ebx
jmp 0x40c139
movzx edx, byte [eax]
add eax, 1
mov byte [ecx], dl
movzx edx, byte [eax]
add ecx, 1
test dl, dl
je 0x40c156
cmp dl, 0x5c
jne 0x40c127
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x40c12a
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40c6c4
mov byte [ecx], 0
mov dword [ebp - 0x14c], esi
mov dword [esp], 0x33
call sub.cygwin1.dll_sysconf
mov esi, eax
call sub.cygwin1.dll___errno
cmp esi, 0xffffffff
mov eax, dword [eax]
mov dword [ebp - 0x148], eax
mov eax, esi
je 0x40c456
add eax, 0x1e
and eax, 0xfffffff0
call fcn.00412940
lea ebx, [esp + 0x23]
lea eax, [ebp - 0x14]
and ebx, 0xfffffff0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], edx
jmp 0x40c1df
call sub.cygwin1.dll___errno
cmp dword [eax], 0x22
jne 0x40c33b
add esi, esi
lea eax, [esi + 0x1e]
and eax, 0xfffffff0
call fcn.00412940
call sub.cygwin1.dll___errno
mov ecx, dword [ebp - 0x148]
lea ebx, [esp + 0x23]
and ebx, 0xfffffff0
mov dword [eax], ecx
mov eax, dword [ebp - 0x19c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x198]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x14c]
mov dword [esp], ecx
call sub.cygwin1.dll_getpwnam_r
test eax, eax
jne 0x40c1b0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c342
mov esi, dword [eax + 0x18]
test esi, esi
je 0x40c342
mov dword [esp], esi
xor edi, edi
call sub.cygwin1.dll_strlen
mov ebx, dword [ebp - 0x150]
test ebx, ebx
mov dword [ebp - 0x18c], eax
je 0x40c24d
mov ebx, dword [ebp - 0x150]
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
mov edi, eax
mov eax, dword [ebp - 0x18c]
add eax, edi
mov dword [ebp - 0x134], eax
add eax, 0x1f
and eax, 0xfffffff0
call fcn.00412940
mov edx, dword [ebp - 0x18c]
lea ebx, [esp + 0x23]
and ebx, 0xfffffff0
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov esi, 1
mov dword [esp], ebx
call sub.cygwin1.dll_mempcpy
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x150]
mov edi, ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0
jmp 0x40b5c4
mov edx, dword [ebp + 0x14]
mov eax, edi
mov ecx, dword [edx]
sub ecx, ebx
add ebx, dword [edx + 8]
lea edx, [ebx*4]
mov ebx, dword [ebp + 0x14]
add edx, dword [ebx + 4]
call fcn.0040ac80
test eax, eax
je 0x40be3e
mov dword [esp], ebx
mov esi, 1
call fcn.0040ab90
mov dword [ebx], 0
jmp 0x40b864
mov eax, dword [ebp - 0x194]
mov esi, ebx
mov dword [esp], eax
call fcn.0040ab90
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call fcn.0040ab90
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
jmp 0x40b864
mov eax, dword [ebp - 0x194]
mov esi, 1
mov dword [esp], eax
call fcn.0040ab90
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call fcn.0040ab90
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
jmp 0x40b864
mov dword [ebp - 0x14], 0
test dword [ebp + 0xc], 0x4000
je 0x40b5b6
nop
jmp 0x40bb93
mov dword [esp + 4], 0x2f
xor ebx, ebx
mov dword [esp], edi
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x40c15f
mov eax, dword [ebp - 0x150]
sub eax, edi
mov dword [ebp - 0x124], eax
jmp 0x40c0be
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov dword [esp], ecx
call fcn.0040ab90
mov ebx, dword [ebp + 0x14]
mov dword [ebx], 0
jmp 0x40b864
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x138], ebx
jmp 0x40bc10
mov dword [esp], 0x34
call sub.cygwin1.dll_sysconf
mov edx, 0x14
mov ecx, eax
add ecx, 1
cmove ecx, edx
lea edx, [ecx + 0x1e]
and edx, 0xfffffff0
mov eax, edx
call fcn.00412940
lea edi, [esp + 0x23]
and edi, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.cygwin1.dll_getlogin_r
test eax, eax
je 0x40c505
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x40c430
mov edx, dword [ebp - 0x158]
cmp byte [edx], 0
jne 0x40c6cf
test dword [ebp + 0xc], 0x4000
jne 0x40bb93
mov dword [ebp - 0x158], 0x416a0f
mov dword [ebp - 0x134], 1
jmp 0x40bf01
mov esi, 0x400
mov eax, 0x400
jmp 0x40c185
movzx eax, byte [edi + 2]
test al, al
je 0x40bec4
cmp al, 0x2f
je 0x40bec4
mov dword [esp + 4], 0x2f
mov dword [esp], edi
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x150], eax
jmp 0x40c08c
lea ebx, [ebp - 0xb8]
mov dword [esp + 4], ebx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
mov eax, dword [eax + esi]
mov dword [esp], eax
call dword [edx + 0x20]
test eax, eax
jne 0x40b7b0
mov eax, dword [ebp - 0xa8]
and eax, 0xf000
cmp eax, 0x4000
sete al
jmp 0x40b806
mov dword [esp], ebx
mov edi, ebx
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x168], eax
jmp 0x40b583
mov eax, dword [ebp - 0x194]
mov esi, 1
mov dword [esp], eax
call fcn.0040ab90
jmp 0x40b864
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 4]
jmp 0x40c03a
mov dword [esp], 0x33
lea esi, [esi]
call sub.cygwin1.dll_sysconf
mov esi, eax
call sub.cygwin1.dll___errno
cmp esi, 0xffffffff
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
mov eax, esi
jne 0x40c535
mov esi, 0x400
mov eax, 0x400
add eax, 0x1e
and eax, 0xfffffff0
call fcn.00412940
lea ebx, [esp + 0x23]
lea edx, [ebp - 0x14]
and ebx, 0xfffffff0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x198], ecx
jmp 0x40c58a
call sub.cygwin1.dll___errno
cmp dword [eax], 0x22
jne 0x40c650
add esi, esi
lea eax, [esi + 0x1e]
and eax, 0xfffffff0
call fcn.00412940
call sub.cygwin1.dll___errno
mov edx, dword [ebp - 0x154]
lea ebx, [esp + 0x23]
and ebx, 0xfffffff0
mov dword [eax], edx
mov ecx, dword [ebp - 0x19c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp - 0x198]
mov dword [esp], edi
mov dword [esp + 4], ebx
call sub.cygwin1.dll_getpwnam_r
test eax, eax
jne 0x40c55b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c40b
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x158], eax
jmp 0x40c417
mov edx, dword [ebp - 0x124]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x1a0]
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.cygwin1.dll_mempcpy
mov byte [eax], 0
mov dword [ebp - 0x14c], esi
jmp 0x40c15f
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call sub.cygwin1.dll_strchr
test eax, eax
mov ebx, eax
je 0x40c15f
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.cygwin1.dll_strchr
mov dword [ebp - 0x150], eax
jmp 0x40c36d
mov eax, dword [ebp - 0x194]
mov esi, 1
mov dword [esp], eax
call fcn.0040ab90
mov dword [esp], ebx
call fcn.0040ab90
mov dword [ebx], 0
jmp 0x40b864
mov ebx, dword [ebp - 0x174]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x158], ebx
jmp 0x40c417
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x3c], eax
jmp 0x40b664
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], edi
mov edx, dword [ebp + 0x14]
call dword [edx + 0x20]
test eax, eax
jne 0x40bb93
mov eax, dword [ebp - 0x108]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40bb93
jmp 0x40bcf6
mov byte [ecx], 0x5c
add ecx, 1
jmp 0x40c156
mov dword [esp], edx
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x134], eax
jmp 0x40bf01