Function at 0x409dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp + 4], 1
mov dword [esp], 0x41ae00
call sub.cygwin1.dll_longjmp
lea esi, [esi]
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x4c
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x38], ecx
call sub.cygwin1.dll___main
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [esp], eax
call fcn.0040c9c0
mov dword [esp + 4], 0x416656
mov dword [esp], 0x41665a
call sub.cygwin1.dll_getservbyname
test eax, eax
mov dword [0x41aed0], eax
je 0x40a003
mov dword [0x41b000], 1
mov dword [0x41adc0], 1
mov dword [0x41ade8], 1
mov dword [0x419290], 0x416677
mov dword [esp + 4], 0x4150c0
mov dword [esp], 0x41665a
call fcn.0040ca80
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x414fa0
call fcn.0040cff0
mov edx, dword [ebp - 0x10]
sub ebx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ebx
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp], eax
call sub.cygwin1.dll_isatty
test eax, eax
mov dword [0x41b108], eax
je 0x409ed8
mov eax, dword [0x4191e0]
add dword [0x41adc4], 1
test eax, eax
je 0x40a055
mov dword [0x41b260], 0
mov dword [0x41add8], 0
mov dword [0x41ad90], 0
mov dword [0x41addc], 1
mov dword [0x41adc8], 0xffffffff
call sub.cygwin1.dll_getlogin
test eax, eax
je 0x40a024
mov dword [esp], eax
call sub.cygwin1.dll_getpwnam
test eax, eax
mov esi, eax
je 0x40a024
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 1
mov dword [esp], eax
call sub.cygwin1.dll_malloc
test eax, eax
mov ebx, eax
je 0x409f5a
mov eax, dword [esi + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_strcpy
mov dword [str._AIee], ebx
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x409fdb
mov dword [esp], 0x41ae00
call sub.cygwin1.dll_setjmp
test eax, eax
jne 0x40a045
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], fcn.00409dc0
mov dword [esp], 2
lea ebx, [edx + eax*4]
call sub.cygwin1.dll_signal
mov dword [esp + 4], fcn.00409cd0
mov dword [esp], 0xd
call sub.cygwin1.dll_signal
mov eax, dword [0x419298]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [esp], eax
call fcn.00405280
mov dword [esp], 0x41ae00
call sub.cygwin1.dll_setjmp
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
jne 0x40a064
mov esi, 1
mov dword [esp], ebx
mov ebx, esi
call fcn.00409ad0
jmp 0x409ff7
mov dword [esp + 8], str.ftp_tcp:_unknown_service
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.0040c930
jmp 0x409e2e
call sub.cygwin1.dll__getuid32
mov dword [esp], eax
lea esi, [esi]
call sub.cygwin1.dll__getpwuid32
test eax, eax
mov esi, eax
je 0x409f5a
nop
jmp 0x409f29
mov dword [esp], 0
lea esi, [esi]
call sub.cygwin1.dll_exit
mov dword [0x4191e0], 0x4165bc
jmp 0x409ed8
mov dword [esp + 4], fcn.00409dc0
mov dword [esp], 2
call sub.cygwin1.dll_signal
mov dword [esp + 4], fcn.00409cd0
mov dword [esp], 0xd
call sub.cygwin1.dll_signal
jmp 0x409ff2