Function at 0x4ca020
Capabilities:
Create tcp socket
Create thread
Create udp socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x210], 0
jne 0x4ca06e
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.004c9e10
jmp 0x4ca22c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x208]
jne 0x4ca086
mov eax, 1
jmp 0x4ca22c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x204], 0xffffffff
je 0x4ca0c1
push 2
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x204], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x20c], 0
je 0x4ca122
push 0x4bf
push 0x7d0
push 1
mov eax, dword [ebp - 0x30]
add eax, 0x20c
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4ca105
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x20c], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x204], eax
mov edx, 2
mov word [ebp - 0x24], dx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00435ea0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.00496e30
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00435f40
movzx edx, word [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x204]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4ca1d9
push 2
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x204], 0xffffffff
xor eax, eax
jmp 0x4ca22c
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x210], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x208], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
add eax, 4
push eax
call fcn.005282c4
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x473c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 8