Function at 0x452240
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 0x5c2710
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
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 + 0x920], eax
jne 0x45233b
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4522af
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.0041c990
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00404e30
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 0x452309
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.004c6a56
lea eax, [esi - 0x10]
mov dword [esp + 0x40], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x452334
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4524ef
movzx ecx, word [esi + 0x158]
push ecx
mov word [esp + 0x28], bx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x920]
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 + 0x920]
push 0x10
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebp
jne 0x4523fd
mov ecx, dword [esi + 0x920]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x920], ebp
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4523c2
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.0041c990
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call fcn.00404e30
mov byte [esp + 0x40], bl
jmp 0x4522ea
push esi
call fcn.00452510
test eax, eax
jne 0x4524b4
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x452425
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.0041c990
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 5
call fcn.00404e30
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 0x45247f
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.004c6a56
mov ecx, dword [esi + 0x920]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [edi - 0x10]
mov dword [esi + 0x920], ebp
mov dword [esp + 0x40], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x452326
push 0
push 0
push esi
push 0x4527f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4524e3
mov ecx, dword [esi + 0x920]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x920], ebp
xor eax, eax
jmp 0x4524ef
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.004e3543
add esp, 0x30
ret