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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4ff004]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
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 0x4056de
jb 0x405656
cmp edi, eax
jae 0x4056de
mov ecx, esi
call fcn.00418b10
test eax, eax
je 0x4056de
mov eax, dword [0x500b60]
test eax, eax
jne 0x405692
push 0x112f
push str.yapi
push str.API_not_initialized
push str._s___s:_d_
lea eax, [esp + 0x28]
push 0x100
push eax
call fcn.0041c830
add esp, 0x18
jmp 0x4056b2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x4056b2
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 0x405656
ja 0x4056de
cmp edi, eax
jb 0x405656
mov dword [esi + 0xac], 3
cmp dword [esi + 0xa4], 1
jne 0x4056fb
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 0x4057b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea eax, [esp + 0x18]
push edi
push 0x115
push str.ytcp
push str._s:_d:tcp__d_:
push 0x100
push eax
call fcn.0041c830
lea ecx, [esp + 0x30]
add esp, 0x18
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405750
push 0
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [esp + 0x20]
add eax, ecx
push eax
push 0x400
push edi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405784
sub ecx, edx
test ecx, ecx
jle 0x4057b0
mov al, byte [esp + ecx + 0x17]
cmp al, 0xa
je 0x40579d
cmp al, 0xd
jne 0x4057b0
mov byte [esp + ecx + 0x17], 0
dec ecx
test ecx, ecx
jg 0x405791
nop word [eax + eax]
mov eax, dword [esi + 0xa4]
cmp eax, 1
je 0x4057c0
cmp eax, 2
jne 0x4057f0
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 0x4057ea
jb 0x4057e0
cmp edi, eax
jae 0x4057ea
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4057b0
mov eax, dword [esi + 0xa4]
cmp eax, 1
je 0x4057fe
cmp eax, 2
je 0x4057fe
xor eax, eax
jmp 0x405803
mov eax, 1
mov ecx, dword [esi + 0xa8]
test eax, eax
je 0x40582d
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405842
push 0
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x405842
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 + 0x118]
xor ebx, ebx
mov esi, 0x100
nop dword [eax + eax]
movzx edi, word [eax]
cmp di, 0xffff
je 0x405875
test ecx, ecx
je 0x405874
mov word [edx], di
add edx, 2
dec ecx
inc ebx
add eax, 2
sub esi, 1
jne 0x405860
mov esi, dword [esp + 0x14]
xor edi, edi
test ebx, ebx
jle 0x4058e9
nop word [eax + eax]
movzx eax, word [esp + edi*2 + 0x118]
cmp ax, 0xffff
je 0x4058e4
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.004143d0
test eax, eax
js 0x4058d9
lea ecx, [eax*4 + 0x38bc]
mov eax, dword [0x500b60]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + eax]
test ecx, ecx
je 0x4058d9
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 0x405890
mov edi, dword [0x500b60]
xor eax, eax
lea ecx, [edi + 0x383c]
mov edx, dword [ecx]
test edx, edx
je 0x405901
cmp edx, esi
je 0x40590c
inc eax
add ecx, 4
cmp eax, 0x20
jl 0x4058f7
jmp 0x405917
mov dword [edi + eax*4 + 0x383c], 0
mov ecx, esi
call fcn.00405410
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret