Function at 0x10008260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a828
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1000f044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x70]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
nop word [eax + eax]
xor edi, edi
cmp dword [ebx + 0x17c], edi
jle 0x1000830e
lea esi, [ebx + 0x148]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x164]
cmp edi, dword [ebx + 0x168]
je 0x100082d7
mov eax, dword [edi + 4]
mov dword [ebx + 0x164], eax
mov dword [eax + 8], 0
jmp 0x100082ef
test edi, edi
je 0x10008307
mov dword [ebx + 0x164], 0
mov dword [ebx + 0x168], 0
test edi, edi
je 0x10008307
mov dword [edi + 4], 0
mov dword [edi + 8], 0
dec dword [ebx + 0x160]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x10008581
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov edx, dword [edi + 0x14]
sub eax, edx
je 0x100083a8
nop dword [eax]
sub ecx, edx
cmp ecx, dword [ebx + 0x2c]
push 0
cmovge ecx, dword [ebx + 0x2c]
push ecx
push edx
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x10008393
lea esi, [ebx + 0x148]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x17c]
sub ecx, dword [ebp - 0x14]
push esi
mov dword [ebx + 0x17c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [ebx]
push esi
push dword [edi + 0x14]
call dword [eax + 0x90]
push esi
mov ecx, edi
call fcn.10006870
jmp 0x1000839c
cmp eax, 0xffffffff
je 0x10008431
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov edx, dword [edi + 0x14]
sub eax, edx
jne 0x10008330
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10008533
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 4
cmp dword [esi + 0x14], eax
je 0x1000846a
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x10], eax
jbe 0x10008462
lea eax, [esi + 0x54]
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
mov edx, dword [eax]
mov ecx, edx
mov eax, dword [esi + 0x94]
sub ecx, eax
mov dword [ebp - 0x18], edx
cmp ecx, dword [esi + 0x10]
jge 0x1000845f
mov eax, edx
xor edx, edx
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp dword [eax + edx*4], 0
lea edx, [eax + edx*4]
jne 0x10008413
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x1000844b
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x54]
lea ecx, [eax + 1]
lock cmpxchg dword [edx], ecx
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x10]
jae 0x1000845f
lea eax, [esi + 0x54]
jmp 0x100083e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10008478
mov eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100083ab
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
lea ecx, [eax + 1]
lock cmpxchg dword [edx], ecx
mov eax, 1
jmp 0x10008462
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100082a0
push edi
call fcn.10006820
add esp, 4
jmp 0x100082a0
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 3
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 1
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 0
je 0x10008516
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0x10], edx
jbe 0x10008512
lea eax, [ebx + 0x54]
mov dword [ebp - 0x20], eax
mov esi, dword [eax]
xor edx, edx
mov eax, dword [ebx + 0x94]
mov ecx, esi
sub ecx, eax
cmp ecx, dword [ebx + 0x10]
jge 0x10008512
mov eax, esi
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp dword [eax + edx*4], 0
lea edx, [eax + edx*4]
jne 0x100084e0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x100084fd
lea ecx, [esi + 1]
mov eax, esi
lea edx, [ebx + 0x54]
lock cmpxchg dword [edx], ecx
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebx + 0x10]
jae 0x10008510
lea eax, [ebx + 0x54]
jmp 0x100084b0
mov edx, dword [ebp - 0x20]
lea ecx, [esi + 1]
mov eax, esi
lock cmpxchg dword [edx], ecx
mov edx, 1
jmp 0x10008512
xor edx, edx
test edx, edx
jne 0x1000851f
push edi
call fcn.10006820
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 0x148]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x10008558
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x164]
mov dword [edi + 4], eax
jmp 0x1000856c
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [ebx + 0x168], edi
inc dword [ebx + 0x160]
push esi
mov dword [ebx + 0x164], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10008581
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret