Function at 0x45d000
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 0x5d2470
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
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 0x45d0fb
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d06f
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.00422da0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00404ec0
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 0x45d0c9
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.004d60f9
lea eax, [esi - 0x10]
mov dword [esp + 0x40], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x45d0f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45d2af
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 0x45d1bd
mov ecx, dword [esi + 0x924]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x924], ebp
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d182
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.00422da0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call fcn.00404ec0
mov byte [esp + 0x40], bl
jmp 0x45d0aa
push esi
call fcn.0045d2d0
test eax, eax
jne 0x45d274
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d1e5
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.00422da0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 5
call fcn.00404ec0
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 0x45d23f
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.004d60f9
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 0x45d0e6
push 0
push 0
push esi
push 0x45d5b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45d2a3
mov ecx, dword [esi + 0x924]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x924], ebp
xor eax, eax
jmp 0x45d2af
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.004f2a78
add esp, 0x30
ret