Function at 0x45cf40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5d2160
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 6
push 1
mov ebx, 2
push ebx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
or ebp, 0xffffffff
cmp eax, ebp
mov dword [esi + 0x924], eax
jne 0x45d03b
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45cfaf
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x572
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x48], 0
call fcn.00422af0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00404f90
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov ecx, ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
call fcn.004d5d86
lea eax, [esi - 0x10]
mov dword [esp + 0x40], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x45d034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45d1ef
movzx ecx, word [esi + 0x158]
push ecx
mov word [esp + 0x28], bx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x924]
mov edx, dword [esi + 0x154]
push 1
mov word [esp + 0x2a], ax
lea eax, [esp + 0x24]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x924]
push 0x10
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebp
jne 0x45d0fd
mov ecx, dword [esi + 0x924]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x924], ebp
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d0c2
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x573
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x48], ebx
call fcn.00422af0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call fcn.00404f90
mov byte [esp + 0x40], bl
jmp 0x45cfea
push esi
call fcn.0045d210
test eax, eax
jne 0x45d1b4
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d125
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x5e3
lea ecx, [esp + 0x20]
mov ebx, 4
push ecx
mov dword [esp + 0x48], ebx
call fcn.00422af0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 5
call fcn.00404f90
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d17f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push 0
push 0
push edi
call fcn.004d5d86
mov ecx, dword [esi + 0x924]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [edi - 0x10]
mov dword [esi + 0x924], ebp
mov dword [esp + 0x40], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x45d026
push 0
push 0
push esi
push 0x45d4f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45d1e3
mov ecx, dword [esi + 0x924]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x924], ebp
xor eax, eax
jmp 0x45d1ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f2719
add esp, 0x30
ret