Function at 0x4170c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
movzx esi, word [esp + 0x30]
push edi
push 3
push str.TUBES
mov dword [esp + 0x18], esi
call fcn.004073a0
mov edi, dword [esp + 0x40]
add esp, 8
test eax, eax
je 0x417124
movzx eax, si
push eax
mov eax, dword [ebp + 0x1c]
movzx eax, word [eax + 2]
push eax
movzx eax, di
push eax
mov eax, dword [ebx + 0x20]
push dword [eax + 0x1c]
push str.TUBE:_CREATE_CONNECTION_to__s:_u__pipe:__u__id:__u_n
push 3
push str.TUBES
call fcn.00407400
add esp, 0x1c
mov eax, dword [ebx + 0x20]
cmp dword [eax + 0x38], 0
je 0x41719f
mov ecx, 0x613
cmp di, cx
je 0x417146
mov ecx, 0x614
cmp di, cx
je 0x417146
mov esi, dword [eax + 0x1c]
jmp 0x41714b
mov esi, str.127.0.0.1
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00405c20
add esp, 8
test eax, eax
jne 0x4171f6
push eax
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x417356
push esi
push str.TUBE:_invalid_slave_ip___s_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c75e8
add esp, 0x18
ret
lea ecx, [esp + 0x18]
push ecx
push dword [eax + 0x1c]
call fcn.00405c20
add esp, 8
test eax, eax
jne 0x4171f6
push eax
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x417356
mov eax, dword [ebx + 0x20]
push dword [eax + 0x1c]
push str.TUBE:_invalid_slave_ip___s_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c75e8
add esp, 0x18
ret
mov eax, 2
push edi
mov word [esp + 0x18], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x22], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
test esi, esi
jns 0x41726a
push 0
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x417356
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.004067e0
push eax
push str.TUBE:_failed_to_open_socket:__s_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c75e8
add esp, 0x18
ret
push esi
call fcn.004059e0
add esp, 4
test eax, eax
je 0x417293
push 1
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4172c7
push str.TUBE:_O_CLOEXEC_set_failed_n
push 1
jmp 0x4172ba
push esi
call fcn.004059f0
add esp, 4
test eax, eax
je 0x4172e3
push 0
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4172c7
push str.TUBE:_O_NONBLOCK_set_failed_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0xc
push esi
call fcn.00402090
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c75e8
add esp, 0x18
ret
mov eax, dword [ebp + 0x1c]
push 0x10
push dword [esp + 0x14]
movzx eax, word [eax + 2]
push eax
push esi
push ebx
call fcn.00418c30
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
add esp, 0x14
mov dword [esi + 4], 4
nop word [eax + eax]
push 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x18]
push dword [eax]
call fcn.00405900
add esp, 0xc
test eax, eax
je 0x41734c
call edi
cmp dword [eax], 4
je 0x417310
call edi
cmp dword [eax], 0x70
je 0x417356
call edi
cmp dword [eax], 0x8c
je 0x417356
push 0
push dword [esi + 0x18]
call fcn.004184d0
jmp 0x417353
push esi
push ebx
call fcn.00416610
add esp, 8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x18
ret