Function at 0x45d790
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 0x5d483e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x40084
call fcn.004fa640
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x40080], eax
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40098]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
call fcn.0045cf40
test eax, eax
je 0x45de51
mov esi, edi
mov dword [edi + 0x2ac], 1
call fcn.0044d9e0
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.0047b7b0
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.0047c370
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 0x45d907
call fcn.004d4991
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d86c
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.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 1
call fcn.00404f90
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 0x45d8cb
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.004d5d86
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 0x45de53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45de53
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 0x45da1d
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x928], 0xffffffff
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45d980
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.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 3
call fcn.00404f90
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 0x45d9df
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.004d5d86
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 0x45de51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45de51
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.0045e0e0
add esp, 4
test eax, eax
je 0x45de51
mov eax, dword [edi + 0x928]
push eax
call fcn.0045e130
add esp, 4
test eax, eax
je 0x45de51
mov al, byte [esp + 0x90]
cmp al, 7
je 0x45dbd2
lea ecx, [esp + 0x14]
movzx esi, al
call fcn.00404ce0
cmp esi, 0xc
mov ebx, 4
mov dword [esp + 0x400a0], ebx
jne 0x45dbb9
movzx eax, byte [esp + 0x94]
test eax, eax
jne 0x45daf6
push 0x62e
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422af0
mov byte [esp + 0x400a0], 5
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00484da0
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
jmp 0x45dbb4
cmp eax, 1
jne 0x45db14
push 0x62f
lea eax, [esp + 0x1c]
push eax
call fcn.00422af0
mov byte [esp + 0x400a0], 6
jmp 0x45db91
cmp eax, 2
jne 0x45db55
push 0x630
lea edx, [esp + 0x1c]
push edx
call fcn.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a4], 7
call fcn.00404f90
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00484da0
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
jmp 0x45dbb4
cmp eax, 3
jne 0x45db76
push 0x64e
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422af0
mov byte [esp + 0x400a0], 8
jmp 0x45dace
cmp eax, ebx
jne 0x45dbb9
push 0x631
lea eax, [esp + 0x1c]
push eax
call fcn.00422af0
mov byte [esp + 0x400a0], 9
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
lea ecx, [esp + 0x18]
mov byte [esp + 0x400a0], bl
call fcn.00484da0
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
call fcn.004d5d86
lea ecx, [esp + 0x14]
mov dword [esp + 0x400a0], 0xffffffff
call fcn.00484da0
jmp 0x45de51
test byte [esp + 0x92], 1
je 0x45dc08
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.0045e0e0
add esp, 4
test eax, eax
je 0x45de51
push 0x148
call fcn.004d3c8b
mov edx, eax
add esp, 4
test edx, edx
je 0x45dc75
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov esi, edx
call fcn.0048ae80
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x45dc81
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x28], eax
je 0x45de51
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
push ecx
mov eax, esi
call fcn.0047c6c0
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.004d3cbb
add esp, 4
push edi
push edi
push esi
push 0x45d580
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 0x45de4d
mov edx, esi
cmp dword [edx + 0x928], 0xffffffff
je 0x45de4d
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x924], 0xffffffff
mov edi, eax
je 0x45de51
test byte [edi + 0x2b4], 2
jne 0x45dfc1
cmp dword [ebx], 0
jle 0x45de38
mov ecx, dword [edi + 0x8fc]
mov eax, 0x100000
sub eax, ecx
cmp eax, 4
jge 0x45dd54
neg eax
push eax
push ebx
mov dword [edi + 0x8fc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x45de40
lea ecx, [ecx + ecx*8]
add ecx, dword [edi + 0x8f4]
mov esi, dword [ecx]
cmp esi, 0xffffffff
jne 0x45dd7d
neg eax
push eax
push ebx
mov dword [edi + 0x8fc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x45de40
cmp byte [ecx + 4], 6
jne 0x45de0e
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 0x45de4d
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 0x45de0c
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0047c740
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
jmp 0x45de0e
mov edi, ecx
mov edx, dword [edi + 0x8fc]
add edx, esi
and edx, 0x800fffff
jns 0x45de26
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 0x45de40
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x928], 0xffffffff
jne 0x45dd00
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 0x45de82
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 0x45dea7
call fcn.0048abe0
mov ecx, esi
push ecx
call fcn.004d3cb6
add esp, 4
mov esi, edi
call fcn.0044c4e0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x45deb7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x45dec7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45dedc
lea ecx, [edi + 0xa8]
push ecx
push eax
call fcn.0047c490
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45defa
mov edi, eax
call fcn.00489690
mov edx, edi
push edx
call fcn.004d3cb6
mov edi, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x4c]
cmp esi, ebx
je 0x45df20
mov eax, dword [esi + 0x24]
push eax
call fcn.0050df40
add esp, 4
push esi
call fcn.0050e160
add esp, 4
push esi
call fcn.004d3cb6
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 0x45df5d
push eax
call fcn.004d3cb6
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 0x45df89
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.0044d9e0
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.004f2719
mov esp, ebp
pop ebp
ret
and dword [edi + 0x2b4], 0xfffffffd
mov edi, eax
jmp 0x45de51