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

Disassembly:
push 0xffffffffffffffff
push 0x5d4a18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
call fcn.004d8c67
mov ecx, dword [eax + 4]
call fcn.004d4001
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0x4c], eax
cmp dword [ebp + 0x60], edi
jne 0x4554bb
cmp dword [ebp + 0x84], eax
je 0x45528b
mov ebx, dword [0x648fc4]
mov ecx, dword [ebx + 0x70]
cmp dword [ecx - 0xc], eax
lea esi, [ebx + 0x70]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x45526a
mov eax, ecx
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x455230
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00405590
mov edi, dword [esi]
lea esi, [esp + 0x20]
call fcn.00487850
cmp eax, 1
je 0x455258
lea ecx, [esp + 0x1b]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00405f90
xor eax, eax
jmp 0x4554cd
mov eax, dword [ebp + 0x38]
push eax
lea eax, [esp + 0x24]
call fcn.00487a80
or edi, 0xffffffff
xor eax, eax
mov ecx, dword [ebx + 0xcc]
mov dword [ebp + 0x70], ecx
mov dx, word [ebx + 0xd0]
mov word [ebp + 0x74], dx
mov dword [ebx + 0xcc], eax
mov word [ebx + 0xd0], ax
push 6
push 1
mov ebx, 2
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, edi
mov dword [ebp + 0x60], eax
jne 0x455358
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4552c0
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 + 0x1c], eax
push 0x572
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x54], 1
call fcn.00422af0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], bl
call fcn.00404f90
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push 0
push 0
push esi
call fcn.004d5d86
lea eax, [esi - 0x10]
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1b]
mov dword [esp + 0x4c], edi
call fcn.00405f90
xor eax, eax
jmp 0x4554cd
movzx ecx, word [ebp + 0x74]
push ecx
mov word [esp + 0x30], bx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x70]
push 1
mov word [esp + 0x32], ax
lea eax, [esp + 0x2c]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0x60]
push 0x10
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x4553fc
mov ecx, dword [ebp + 0x60]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x60], edi
call fcn.00404ce0
push 0x573
lea edx, [esp + 0x24]
mov bl, 3
push edx
mov byte [esp + 0x54], bl
call fcn.00422af0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.00404f90
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45530a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov dword [ebp + 0x6c], eax
call fcn.004557e0
test eax, eax
jne 0x45547e
lea ecx, [esp + 0x1c]
call fcn.00404ce0
push 0x5e3
lea ecx, [esp + 0x24]
mov bl, 5
push ecx
mov byte [esp + 0x54], bl
call fcn.00422af0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 6
call fcn.00404f90
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], bl
call fcn.00484da0
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
call fcn.004d5d86
mov eax, dword [ebp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x60], edi
call fcn.00484da0
lea ecx, [esp + 0x1b]
mov dword [esp + 0x4c], edi
call fcn.00405f90
xor eax, eax
jmp 0x4554cd
push 0
push 0
push ebp
push 0x455530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4554b4
mov ecx, dword [ebp + 0x60]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x1b]
mov dword [ebp + 0x60], edi
mov dword [esp + 0x4c], edi
call fcn.00405f90
xor eax, eax
jmp 0x4554cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1b]
mov dword [esp + 0x4c], edi
call fcn.00405f90
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f2719
add esp, 0x3c
ret 4