Function at 0x4085a0
Capabilities:
Send data
Send data on socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4ff004]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x500b60]
xor edx, edx
push ebx
push esi
mov ebx, 0x383c
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebx + eax]
test ecx, ecx
je 0x408922
test byte [ecx + 0x6f0], 2
je 0x408922
push edx
push str.cleanup_disabled_hub__i_n
push 0x10d8
push str.yapi
call fcn.00409950
mov eax, dword [0x500b60]
add esp, 0x10
mov esi, dword [ebx + eax]
mov dword [esp + 0x14], esi
call fcn.00408c40
mov ebx, eax
mov dword [esp + 0x10], edx
call fcn.00408c40
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0xa98]
sub edi, ebx
cdq
sbb ecx, dword [esp + 0x10]
cmp ecx, edx
ja 0x4086c8
jb 0x408640
cmp edi, eax
jae 0x4086c8
mov ecx, esi
call fcn.00418b10
test eax, eax
je 0x4086c8
mov eax, dword [0x500b60]
test eax, eax
jne 0x40867c
push 0x112f
push str.yapi
push str.API_not_initialized
push str._s___s:_d_
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0041c830
add esp, 0x18
jmp 0x40869c
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x40869c
call fcn.0040cb20
mov eax, dword [0x500b60]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408c40
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0xa98]
sub edi, ebx
cdq
sbb ecx, dword [esp + 0x10]
cmp ecx, edx
jb 0x408640
ja 0x4086c8
cmp edi, eax
jb 0x408640
mov dword [esi + 0xac], 3
cmp dword [esi + 0xa4], 1
jne 0x4086e5
mov dword [esi + 0xa4], 2
push 0
push 1
lea eax, [esp + 0x14]
mov byte [esp + 0x14], 0
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4087a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea eax, [esp + 0x20]
push edi
push 0x115
push str.ytcp
push str._s:_d:tcp__d_:
push 0x100
push eax
call fcn.0041c830
lea ecx, [esp + 0x38]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408738
push 0
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [esp + 0x28]
add eax, ecx
push eax
push 0x400
push edi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408770
sub eax, edx
test eax, eax
jle 0x4087a0
nop dword [eax]
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
je 0x40878e
cmp cl, 0xd
jne 0x4087a0
mov byte [esp + eax + 0x1f], 0
dec eax
test eax, eax
jg 0x408780
nop dword [eax + eax]
mov eax, dword [esi + 0xa4]
cmp eax, 1
je 0x4087b0
cmp eax, 2
jne 0x4087e0
call fcn.00408c40
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0xa98]
sub edi, ebx
cdq
sbb ecx, dword [esp + 0x10]
cmp ecx, edx
ja 0x4087da
jb 0x4087d0
cmp edi, eax
jae 0x4087da
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4087a0
mov eax, dword [esi + 0xa4]
cmp eax, 1
je 0x4087ee
cmp eax, 2
je 0x4087ee
xor eax, eax
jmp 0x4087f3
mov eax, 1
mov ecx, dword [esi + 0xa8]
test eax, eax
je 0x40881d
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408832
push 0
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x408832
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x898]
mov ecx, 0x80
lea edx, [esp + 0x120]
xor ebx, ebx
mov esi, 0x100
nop dword [eax + eax]
movzx edi, word [eax]
cmp di, 0xffff
je 0x408865
test ecx, ecx
je 0x408864
mov word [edx], di
add edx, 2
dec ecx
inc ebx
add eax, 2
sub esi, 1
jne 0x408850
mov esi, dword [esp + 0x14]
xor edi, edi
test ebx, ebx
jle 0x4088d9
nop word [eax + eax]
movzx eax, word [esp + edi*2 + 0x120]
cmp ax, 0xffff
je 0x4088d4
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.004143d0
test eax, eax
js 0x4088c9
lea ecx, [eax*4 + 0x38bc]
mov eax, dword [0x500b60]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + eax]
test ecx, ecx
je 0x4088c9
call fcn.00418a60
mov eax, dword [0x500b60]
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax], 0
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00402110
inc edi
cmp edi, ebx
jl 0x408880
mov edi, dword [0x500b60]
xor eax, eax
lea ecx, [edi + 0x383c]
mov edx, dword [ecx]
test edx, edx
je 0x4088f1
cmp edx, esi
je 0x4088fc
inc eax
add ecx, 4
cmp eax, 0x20
jl 0x4088e7
jmp 0x408907
mov dword [edi + eax*4 + 0x383c], 0
mov ecx, esi
call fcn.00405410
mov eax, dword [0x500b60]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [ebx + eax], 0
add ebx, 4
inc edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x38bc
jl 0x4085d1
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret