Function at 0x40a1e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48c
mov dword [esp], 0x4167ec
lea ebx, [ebp - 0x470]
call sub.cygwin1.dll_getenv
mov edx, 0x4167f1
mov dword [esp + 8], str._s_.netrc
mov dword [esp + 4], 0x400
mov dword [esp], ebx
test eax, eax
cmove eax, edx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
mov dword [esp + 4], 0x4167fd
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
test eax, eax
mov dword [0x4191f0], eax
je 0x40a712
call fcn.0040a910
test eax, eax
mov dword [ebp - 0x47c], eax
je 0x40a750
mov dword [esp + 4], 0x2e
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
mov dword [ebp - 0x478], eax
je 0x40a767
mov dword [ebp - 0x474], 0
call fcn.0040a0a0
test eax, eax
je 0x40a328
cmp eax, 1
je 0x40a6a6
cmp eax, 0xb
nop
lea esi, [esi]
jne 0x40a282
mov ebx, dword [ebp - 0x474]
test ebx, ebx
jne 0x40a2d1
call fcn.0040a0a0
cmp eax, 0xa
jne 0x40a282
mov dword [esp + 4], 0x419200
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x40a77e
call fcn.0040a0a0
test eax, eax
je 0x40a328
cmp eax, 0xb
lea esi, [esi]
je 0x40a328
cmp eax, 1
je 0x40a328
cmp eax, 3
je 0x40a547
jg 0x40a352
cmp eax, 2
je 0x40a673
mov dword [esp + 0xc], 0x419200
mov dword [esp + 8], str.Unknown_.netrc_keyword__s
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
call fcn.0040a0a0
test eax, eax
jne 0x40a2da
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sub.cygwin1.dll_free
xor edx, edx
add esp, 0x48c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40a4a0
cmp eax, 5
jne 0x40a2fb
mov eax, dword [0x41add8]
test eax, eax
jne 0x40a328
lea esi, [esi]
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
mov edx, eax
je 0x40a837
cmp eax, 0x20
je 0x40a370
cmp eax, 9
je 0x40a370
cmp eax, 0xa
je 0x40a837
mov eax, dword [0x41b110]
cmp eax, 0x10
je 0x40a8ff
lea eax, [eax + eax*4]
xor edi, edi
mov byte [eax*4 + 0x41b120], dl
lea ebx, [eax*4 + 0x41b121]
lea esi, [esi]
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
mov edx, eax
je 0x40a8b5
mov ecx, dword [sym.imp.cygwin1.dll___ctype_ptr__]
mov eax, dword [ecx]
test byte [eax + edx + 1], 8
jne 0x40a3f4
add edi, 1
mov byte [ebx], dl
add ebx, 1
cmp edi, 8
jne 0x40a3c0
cmp edx, 0xa
mov byte [ebx], 0
je 0x40a41b
lea esi, [esi]
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
je 0x40a8b5
cmp eax, 0xa
jne 0x40a400
mov ecx, dword [0x41b110]
test ecx, ecx
jne 0x40a8c6
mov dword [0x41b12c], 0x419d80
lea eax, [ecx + ecx*4]
mov edi, dword [eax*4 + 0x41b12c]
cmp edi, 0x41ad80
jne 0x40a452
jmp 0x40a489
add edi, 1
cmp edi, 0x41ad80
je 0x40a489
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
je 0x40a8b5
cmp al, 0xa
mov byte [edi], al
jne 0x40a447
cmp byte [edi - 1], 0
lea ecx, [edi - 1]
je 0x40a8e3
mov byte [edi], 0
add edi, 1
cmp edi, 0x41ad80
jne 0x40a452
mov dword [esp], str.4K_macro_buffer_exceeded
call sub.cygwin1.dll_puts
jmp 0x40a646
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0x70]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
test eax, eax
js 0x40a4ca
test byte [ebp - 0x60], 0x3f
jne 0x40a848
lea esi, [esi]
call fcn.0040a0a0
test eax, eax
je 0x40a2d1
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
test edx, edx
jne 0x40a2d1
mov ecx, 0x419200
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a4ef
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, 0x4191ff
mov dword [esp], ecx
call fcn.0040da60
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [esp + 4], 0x419200
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
jmp 0x40a2d1
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x40a5e0
mov edi, str.anonymous
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a5e0
call fcn.0040a0a0
test eax, eax
je 0x40a2d1
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jne 0x40a2d1
mov ecx, 0x419200
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a581
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, 0x4191ff
mov dword [esp], ecx
call fcn.0040da60
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [esp + 4], 0x419200
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
jmp 0x40a2d1
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0x70]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
test eax, eax
js 0x40a562
test byte [ebp - 0x60], 0x3f
je 0x40a562
mov dword [esp + 8], str.Error:_.netrc_file_is_readable_by_others.
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
mov dword [esp + 8], str.Remove_password_or_make_file_unreadable_by_others.
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
mov eax, dword [0x4191f0]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
mov edx, dword [ebp - 0x47c]
mov dword [esp], edx
call sub.cygwin1.dll_free
mov edx, 0xffffffff
add esp, 0x48c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040a0a0
test eax, eax
je 0x40a2d1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x40a6b5
mov dword [esp + 4], 0x419200
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x40a2d1
jmp 0x40a282
mov dword [ebp - 0x474], 1
jmp 0x40a2d1
mov ecx, 0x419200
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40a6ba
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, 0x4191ff
mov dword [esp], ecx
call fcn.0040da60
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 4], 0x419200
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
jmp 0x40a2d1
call sub.cygwin1.dll___errno
xor edx, edx
cmp dword [eax], 2
lea esi, [esi]
je 0x40a345
call sub.cygwin1.dll___errno
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4167ff
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
xor edx, edx
jmp 0x40a345
mov dword [esp], 0x416802
call fcn.0040dac0
mov dword [ebp - 0x47c], eax
jmp 0x40a254
mov dword [esp], 0x416802
call fcn.0040dac0
mov dword [ebp - 0x478], eax
jmp 0x40a278
mov esi, dword [0x419d48]
mov dword [esp + 4], 0x419200
mov dword [esp], esi
call sub.cygwin1.dll_strcasecmp
test eax, eax
je 0x40a2d1
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sub.cygwin1.dll_strchr
test eax, eax
mov ebx, eax
je 0x40a7cc
mov ecx, dword [ebp - 0x478]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.cygwin1.dll_strcasecmp
test eax, eax
je 0x40a885
mov dword [esp + 4], 0x2e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
mov ebx, eax
je 0x40a282
mov edx, dword [ebp - 0x478]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x40a282
sub ebx, dword [ebp + 8]
mov dword [esp + 4], 0x419200
mov dword [esp + 8], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.cygwin1.dll_strncasecmp
test eax, eax
jne 0x40a282
cmp byte [ebx + 0x419200], 0
je 0x40a2d1
jmp 0x40a282
mov dword [esp], str.Missing_macdef_name_argument.
call sub.cygwin1.dll_puts
jmp 0x40a646
mov dword [esp + 8], str.Error:_.netrc_file_is_readable_by_others.
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
mov dword [esp + 8], str.Remove_account_or_make_file_unreadable_by_others.
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
jmp 0x40a646
sub ebx, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x419200
mov dword [esp], esi
call sub.cygwin1.dll_strncasecmp
test eax, eax
jne 0x40a7cc
cmp byte [ebx + 0x419200], 0
je 0x40a2d1
jmp 0x40a7cc
mov dword [esp], str.Macro_definition_missing_null_line_terminator.
call sub.cygwin1.dll_puts
jmp 0x40a646
lea eax, [ecx + ecx*4 - 5]
mov eax, dword [eax*4 + 0x41b130]
lea edx, [ecx + ecx*4]
add eax, 1
mov dword [edx*4 + 0x41b12c], eax
jmp 0x40a433
mov eax, dword [0x41b110]
lea edx, [eax + eax*4]
add eax, 1
mov dword [edx*4 + 0x41b130], ecx
mov dword [0x41b110], eax
jmp 0x40a2d1
mov dword [esp], str.Limit_of_16_macros_have_already_been_defined
call sub.cygwin1.dll_puts
jmp 0x40a646