Function at 0x45d804
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
mov edx, dword [0x43567c]
call fcn.00405a48
xor eax, eax
push ebp
push 0x45dacc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45da0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x45d86c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45da93
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x2e], 1
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.004036c0
mov word [ebp - 0x34], 2
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x2c]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x28]
lea eax, [ebp - 0x1c]
mov ecx, 0x45dae4
call fcn.00405350
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x1c]
call fcn.0040555c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0x10
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0xffffffff
je 0x45d929
push 0x10
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
je 0x45d929
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x45d9c3
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x45d9c3
xor eax, eax
push ebp
push 0x45d9ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45daf0
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.0045ccac
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x45db0c
call fcn.0040b2a0
mov eax, dword [ebp - 0x38]
push eax
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x48]
call fcn.00437924
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
add eax, 0x18
pop edx
call fcn.004374a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004361f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d9b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45da93
cmp dword [ebp - 0xc], 1
jne 0x45d9ff
xor eax, eax
push ebp
push 0x45d9f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x22], 0xfe10
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d9ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45da93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dad3
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00405068
lea eax, [ebp - 0x38]
call fcn.00405044
lea eax, [ebp - 0x24]
mov edx, dword [0x43567c]
call fcn.00405b18
lea eax, [ebp - 0x1c]
call fcn.00405044
ret