Function at 0x401bef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
and esp, 0xfffffff0
sub esp, 0x430
call sym.___main
mov dword [esp + 0x42c], 0
mov dword [esp + 0x428], 0
mov dword [esp + 0x404], 0
mov dword [esp + 0x424], 0
mov dword [esp + 0x420], 0
mov dword [esp + 0x41c], 0
mov dword [esp + 0x418], 0
mov dword [esp + 0x414], 0
mov dword [esp + 0x410], 0
jmp 0x401d53
movsx eax, byte [esp + 0x40f]
sub eax, 0x63
cmp eax, 0x11
ja case.0x401c84.101
mov eax, dword [eax*4 + 0x40e338]
jmp eax
mov eax, dword [0x417f8c]
lea edx, [esp + 0x404]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40e295
mov dword [esp], eax
call sym._sscanf
mov dword [esp + 0x41c], 1
jmp 0x401d53
mov eax, dword [0x417f8c]
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x42c], eax
mov dword [esp + 0x410], 1
jmp 0x401d53
mov eax, dword [0x417f8c]
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x428], eax
mov dword [esp + 0x424], 1
jmp 0x401d53
mov eax, dword [0x417f8c]
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x428], eax
mov dword [esp + 0x420], 1
jmp 0x401d53
mov dword [esp + 0x418], 1
jmp 0x401d53
mov dword [esp + 0x414], 1
jmp 0x401d53
call dbg.debug_enable
jmp 0x401d53
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.display_help
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], str.c:p:l:i:tnd
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._getopt
mov byte [esp + 0x40f], al
cmp byte [esp + 0x40f], 0xff
jne 0x401c69
call dbg.dump_vsocket_properties
call dbg.vsockets_is_available
test eax, eax
jne 0x401dc4
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2a
mov dword [esp + 4], 1
mov dword [esp], str.vsockets_are_not_available_in_this_system_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
call dbg.socket_init_api
mov dword [esp], 0x418978
call dbg.socket_list_init
cmp dword [esp + 0x414], 1
jne 0x401dfa
mov eax, dword [esp + 0x404]
mov dword [esp], eax
call dbg.host_port_scan
mov dword [esp], 1
call sym._exit
mov eax, dword [esp + 0x424]
mov dword [0x418960], eax
mov eax, dword [esp + 0x420]
mov dword [0x418964], eax
mov eax, dword [esp + 0x418]
mov dword [0x418968], eax
mov eax, dword [esp + 0x428]
mov dword [0x41896c], eax
mov eax, dword [esp + 0x42c]
mov dword [0x418970], eax
mov eax, dword [esp + 0x404]
mov dword [0x418974], eax
cmp dword [esp + 0x418], 0
jne 0x401fd6
cmp dword [esp + 0x41c], 1
jne 0x401fd6
cmp dword [esp + 0x410], 1
jne 0x401fd6
call dbg.debug_is_active
test eax, eax
je 0x401ee7
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e064
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [esp + 0x404]
mov edx, dword [esp + 0x42c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str....Connecting_to_CID_hu_:_Port:_u
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov edx, dword [esp + 0x42c]
mov eax, dword [esp + 0x404]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.try_connection
mov dword [esp + 0x408], eax
cmp dword [esp + 0x408], 0
jle 0x401fc8
call dbg.debug_is_active
test eax, eax
je 0x401f91
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e064
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [esp + 0x404]
mov edx, dword [esp + 0x42c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str....Connection_established_to_CID_u_:_Port:_hu
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x408]
mov dword [esp], eax
call dbg.bridge_sockets_and_descriptors
nop
mov dword [esp], 0x418978
call dbg.socket_list_select_and_handle_events
test eax, eax
jne 0x401fb6
jmp 0x402014
mov dword [esp], str....Connection_failed
call sym._perror
jmp 0x402014
cmp dword [esp + 0x424], 1
je 0x401fea
cmp dword [esp + 0x420], 1
jne 0x402007
mov eax, dword [esp + 0x424]
cwde
mov edx, dword [esp + 0x428]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.listening_mode
jmp 0x402014
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.display_help
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret