Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [their_addr.svm_zero], 0xffffffff
mov dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.socket_accept
mov dword [their_addr.svm_zero], eax
cmp dword [their_addr.svm_zero], 0xffffffff
jne 0x40175f
mov dword [esp], str.accept
call sym._perror
mov dword [esp], 1
call sym._exit
call dbg.debug_is_active
test eax, eax
je 0x4017d4
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 [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], str.....Accepted
call sym._fwrite
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 [0x418968]
test eax, eax
je 0x401926
call dbg.debug_is_active
test eax, eax
je 0x401859
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 edx, dword [0x418970]
mov eax, dword [0x418974]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._Tunnel_...Connecting_to_CID_hu_:_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 [0x418970]
mov edx, eax
mov eax, dword [0x418974]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.try_connection
mov dword [their_addr.svm_cid], eax
cmp dword [their_addr.svm_cid], 0
jle 0x401918
call dbg.debug_is_active
test eax, eax
je 0x4018f6
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 edx, dword [0x418970]
mov eax, dword [0x418974]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._Tunnel_...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 [their_addr.svm_cid]
mov dword [esp + 0xc], eax
mov eax, dword [their_addr.svm_cid]
mov dword [esp + 8], eax
mov eax, dword [their_addr.svm_zero]
mov dword [esp + 4], eax
mov eax, dword [their_addr.svm_zero]
mov dword [esp], eax
call dbg.bridge_descriptors
jmp 0x401946
mov dword [esp], str._Tunnel_...Connection_failed
call sym._perror
jmp 0x401946
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 [their_addr.svm_zero]
mov dword [esp], eax
call dbg.bridge_sockets_and_descriptors
mov eax, 1
add esp, 0x34
pop ebx
pop ebp
ret