Function at 0x45d850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d4abe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x40084
call fcn.004fa7e0
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x40080], eax
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x40098]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
call fcn.0045d000
test eax, eax
je 0x45df11
mov esi, edi
mov dword [edi + 0x2ac], 1
call fcn.0044dbf0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
call fcn.0047baf0
push edi
lea esi, [edi + 0xa8]
push esi
push ebx
push ebx
mov ebx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
call fcn.0047c6b0
push 6
push 1
mov ebx, 2
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x928], eax
jne 0x45d9c7
call fcn.004d4cf7
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d92c
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 + 0x14], eax
push 0x572
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x400a8], ebx
call fcn.00422da0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 1
call fcn.00404ec0
mov byte [esp + 0x400a0], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d98b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push ebx
push ebx
push esi
call fcn.004d60f9
lea eax, [esi - 0x10]
mov dword [esp + 0x400a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45df13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45df13
movzx ecx, word [edi + 0x158]
push ecx
mov word [esp + 0x80], bx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0x928]
mov edx, dword [edi + 0x154]
mov word [esp + 0x7e], ax
push 0x10
lea eax, [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x8c], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov edx, dword [edi + 0x928]
push edx
jne 0x45dadd
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x928], 0xffffffff
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45da40
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 + 0x14], eax
push 0x573
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x400a8], ebx
call fcn.00422da0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 3
call fcn.00404ec0
mov byte [esp + 0x400a0], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45da9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
call fcn.004d60f9
lea eax, [esi - 0x10]
mov dword [esp + 0x400a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45df11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45df11
mov cl, byte [edi + 0x92c]
lea ebx, [esp + 0x90]
mov dword [esp + 0x90], 9
mov byte [esp + 0x94], 5
mov byte [esp + 0x97], 0
mov byte [esp + 0x96], 0xff
mov byte [esp + 0x95], cl
call fcn.0045e2a0
add esp, 4
test eax, eax
je 0x45df11
mov eax, dword [edi + 0x928]
push eax
call fcn.0045e2f0
add esp, 4
test eax, eax
je 0x45df11
mov al, byte [esp + 0x90]
cmp al, 7
je 0x45dc92
lea ecx, [esp + 0x14]
movzx esi, al
call fcn.00404bf0
cmp esi, 0xc
mov ebx, 4
mov dword [esp + 0x400a0], ebx
jne 0x45dc79
movzx eax, byte [esp + 0x94]
test eax, eax
jne 0x45dbb6
push 0x62e
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422da0
mov byte [esp + 0x400a0], 5
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00404ea0
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
jmp 0x45dc74
cmp eax, 1
jne 0x45dbd4
push 0x62f
lea eax, [esp + 0x1c]
push eax
call fcn.00422da0
mov byte [esp + 0x400a0], 6
jmp 0x45dc51
cmp eax, 2
jne 0x45dc15
push 0x630
lea edx, [esp + 0x1c]
push edx
call fcn.00422da0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 7
call fcn.00404ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00404ea0
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
jmp 0x45dc74
cmp eax, 3
jne 0x45dc36
push 0x64e
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422da0
mov byte [esp + 0x400a0], 8
jmp 0x45db8e
cmp eax, ebx
jne 0x45dc79
push 0x631
lea eax, [esp + 0x1c]
push eax
call fcn.00422da0
mov byte [esp + 0x400a0], 9
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00404ea0
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
call fcn.004d60f9
lea ecx, [esp + 0x14]
mov dword [esp + 0x400a0], 0xffffffff
call fcn.00404ea0
jmp 0x45df11
test byte [esp + 0x92], 1
je 0x45dcc8
mov edx, dword [esp + 0x95]
mov eax, dword [esp + 0x99]
mov ecx, dword [esp + 0x9d]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0xa1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov eax, dword [edi + 0x928]
push eax
lea ebx, [esp + 0x90]
mov dword [esp + 0x90], 9
mov byte [esp + 0x94], 5
mov byte [esp + 0x97], 0
mov byte [esp + 0x96], 2
call fcn.0045e2a0
add esp, 4
test eax, eax
je 0x45df11
push 0x148
call fcn.004d3feb
mov edx, eax
add esp, 4
test edx, edx
je 0x45dd35
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov esi, edx
call fcn.0048b190
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x45dd41
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x28], eax
je 0x45df11
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
push ecx
mov eax, esi
call fcn.0047ca00
mov esi, dword [esp + 0x1c]
xor edi, edi
lea ebx, [esi + 0x900]
push 0x100000
mov dword [esp + 0x4c], ebx
mov dword [ebx], edi
mov dword [esi + 0x8f8], edi
mov dword [esi + 0x8fc], edi
call fcn.004d4016
add esp, 4
push edi
push edi
push esi
push 0x45d640
push edi
push edi
mov dword [esi + 0x8f4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x45df0d
mov edx, esi
cmp dword [edx + 0x928], 0xffffffff
je 0x45df0d
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x924], 0xffffffff
mov edi, eax
je 0x45df11
test byte [edi + 0x2b4], 2
jne 0x45e081
cmp dword [ebx], 0
jle 0x45def8
mov ecx, dword [edi + 0x8fc]
mov eax, 0x100000
sub eax, ecx
cmp eax, 4
jge 0x45de14
neg eax
push eax
push ebx
mov dword [edi + 0x8fc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x45df00
lea ecx, [ecx + ecx*8]
add ecx, dword [edi + 0x8f4]
mov esi, dword [ecx]
cmp esi, 0xffffffff
jne 0x45de3d
neg eax
push eax
push ebx
mov dword [edi + 0x8fc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x45df00
cmp byte [ecx + 4], 6
jne 0x45dece
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea edi, [esi - 9]
add ecx, 9
push edi
push ecx
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x45df0d
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0x88]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x84]
mov dword [esp + 0x74], eax
mov dword [esp + 0x60], eax
shr eax, 1
cmp dword [ecx + 0x194], 0
mov dword [esp + 0x78], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 1
je 0x45decc
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0047ca80
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
jmp 0x45dece
mov edi, ecx
mov edx, dword [edi + 0x8fc]
add edx, esi
and edx, 0x800fffff
jns 0x45dee6
dec edx
or edx, 0xfff00000
inc edx
neg esi
push esi
push ebx
mov dword [edi + 0x8fc], edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x45df00
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x928], 0xffffffff
jne 0x45ddc0
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0x928]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x30]
cmp esi, ebx
mov dword [edi + 0x928], 0xffffffff
je 0x45df42
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
mov byte [edi + 0x2a8], bl
je 0x45df67
call fcn.0048aef0
mov ecx, esi
push ecx
call fcn.004d401b
add esp, 4
mov esi, edi
call fcn.0044c6f0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x45df77
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x45df87
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45df9c
lea ecx, [edi + 0xa8]
push ecx
push eax
call fcn.0047c7d0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45dfba
mov edi, eax
call fcn.004899a0
mov edx, edi
push edx
call fcn.004d401b
mov edi, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x4c]
cmp esi, ebx
je 0x45dfe0
mov eax, dword [esi + 0x24]
push eax
call fcn.0050e180
add esp, 4
push esi
call fcn.0050e3a0
add esp, 4
push esi
call fcn.004d401b
add esp, 4
mov eax, dword [edi + 0x8f4]
cmp eax, ebx
mov dword [edi + 0x2b4], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x84], ebx
mov dword [edi + 0x900], ebx
mov dword [edi + 0x8fc], ebx
mov dword [edi + 0x8f8], ebx
je 0x45e01d
push eax
call fcn.004d401b
add esp, 4
mov dword [edi + 0x8f4], ebx
mov eax, dword [edi + 0x924]
or esi, 0xffffffff
cmp eax, esi
mov dword [edi + 0x2ac], ebx
mov byte [edi + 0x822], bl
je 0x45e049
push eax
mov dword [edi + 0x92c], esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x924], esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, edi
call fcn.0044dbf0
mov eax, 1
mov ecx, dword [esp + 0x40098]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40080]
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret
and dword [edi + 0x2b4], 0xfffffffd
mov edi, eax
jmp 0x45df11