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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5a5014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x35], 0
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
push ecx
push str.TCPProxy::init_port_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x90], 0x493e0
mov eax, dword [ebp - 0x34]
add eax, 0x18
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x34]
add eax, 0x58
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp - 0x34]
mov ax, word [ebp + 8]
mov word [edx + 0x50], ax
mov ecx, dword [ebp - 0x34]
xor edx, edx
xor eax, eax
mov dword [ecx + 0x48], edx
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebp - 0x34]
call fcn.00406230
movzx ecx, al
test ecx, ecx
jne 0x405677
push str.TCPProxy::init_initExtensions___failed
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 8
xor al, al
jmp 0x4058be
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00402b00
movzx eax, al
test eax, eax
jne 0x4056a5
push str.TCPProxy::init_m_service.init___failed
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 8
jmp 0x4057c7
cmp dword [ebp - 0x34], 0
je 0x4056b6
mov ecx, dword [ebp - 0x34]
add ecx, 4
mov dword [ebp - 0x44], ecx
jmp 0x4056bd
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x78
call fcn.00404db0
movzx ecx, al
test ecx, ecx
jne 0x4056ef
push str.TCPProxy::init_m_pool.init___failed
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 8
jmp 0x4057c7
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00505a60
add esp, 0xc
mov eax, 2
mov word [ebp - 0x14], ax
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40571e
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x34]
mov ax, word [edx + 0x50]
mov word [ebp - 0x12], ax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x38], 0xffffffff
jne 0x40574c
jmp 0x4057c7
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x405765
jmp 0x4057c7
push bind
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x40577d
jmp 0x4057c7
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00402c00
push 2
mov ecx, dword [ebp - 0x34]
call fcn.00406390
movzx ecx, al
test ecx, ecx
jne 0x4057a2
jmp 0x4057c7
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x52], 1
push str.TCPProxy::init_IPv4_listen_socket_initialized
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 8
mov byte [ebp - 0x35], 1
jmp 0x4057c7
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x4058a6
push 0x1c
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00505a60
add esp, 0xc
mov edx, 0x17
mov word [ebp - 0x30], dx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x405801
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x28], 1
mov eax, dword [ebp - 0x34]
mov cx, word [eax + 0x50]
mov word [ebp - 0x2e], cx
push 1
push 0
push 0
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x40], 0xffffffff
jne 0x40582f
jmp 0x4058a6
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x405848
jmp 0x4058a6
push bind
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x405860
jmp 0x4058a6
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x40]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00402c00
push 0x17
mov ecx, dword [ebp - 0x34]
call fcn.00406390
movzx edx, al
test edx, edx
jne 0x405885
jmp 0x4058a6
push str.TCPProxy::init_IPv6_listen_socket_initialized
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 8
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x53], 1
jmp 0x4058a6
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
jne 0x4058bb
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 8]
call edx
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1084
mov esp, ebp
pop ebp
ret 0xc