Function at 0x452a24
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 [0x42ad94]
call fcn.0040535c
xor eax, eax
push ebp
push 0x452cec
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x452c2c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x452a8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452cb3
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.004031cc
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, 0x452d04
call fcn.00404d04
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x1c]
call fcn.00404f10
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 0x452b49
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 0x452b49
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 0x452be3
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x452be3
xor eax, eax
push ebp
push 0x452bcc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x452d10
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.00451ecc
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x452d2c
call fcn.00409e5c
mov eax, dword [ebp - 0x38]
push eax
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x48]
call fcn.0042d054
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
add eax, 0x18
pop edx
call fcn.0042cbd0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0042b908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452bd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452cb3
cmp dword [ebp - 0xc], 1
jne 0x452c1f
xor eax, eax
push ebp
push 0x452c15
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 0x452c1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452cb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452cf3
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404a1c
lea eax, [ebp - 0x38]
call fcn.004049f8
lea eax, [ebp - 0x24]
mov edx, dword [0x42ad94]
call fcn.00405420
lea eax, [ebp - 0x1c]
call fcn.004049f8
ret