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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d290
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ebx
jmp 0x40b0f0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
inc edx
cmp edx, 4
je 0x40b1c9
lea ecx, [edx + edx*8]
lea ecx, [ecx + ecx*2]
add ecx, edx
mov esi, dword [ebx + ecx + 0x50]
test esi, esi
je 0x40b0e6
mov dword [ebp - 0x20], edx
add ecx, ebx
add ecx, 0x38
xor edx, edx
div esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [eax + edx*8]
cmp esi, edi
je 0x40b0e0
mov edx, dword [eax + edx*8 + 4]
mov edx, dword [edx]
cmp edx, edi
je 0x40b0e0
mov eax, dword [ebp + 8]
nop word cs:[eax + eax]
cmp dword [edi + 8], eax
je 0x40b13d
mov edi, dword [edi]
cmp edi, edx
jne 0x40b130
jmp 0x40b0e3
cmp esi, edi
je 0x40b0e3
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40b1a9
mov ebx, dword [ebp - 0x30]
jmp 0x40b174
mov dword [esi + 0x14], 0
mov dword [edx + 0x14], 0
lea esi, [ebx + 0x14]
test ebx, ebx
lea eax, [ebp - 0x2c]
cmove esi, eax
mov dword [esi], edx
mov esi, dword [edi + 0xc]
mov ebx, edx
test esi, esi
je 0x40b19c
mov edx, esi
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [esi]
movsd qword [edx + 0x20], xmm0
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40b157
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40b150
mov dword [edi + 0x10], 0
jmp 0x40b150
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], 0
mov dl, 1
mov dword [ebp - 0x38], edx
push edi
call fcn.0040b2f0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
jmp 0x40b0e6
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b27c
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x14]
lea eax, [esi + 0x38]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x54]
mov dword [ebp - 0x30], eax
jmp 0x40b20a
mov eax, 1
xchg dword [esi + 0x34], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x2c]
mov ebx, edi
test edi, edi
je 0x40b27c
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40b21b
mov dword [ebp - 0x28], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 1
push ebx
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b204
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
lea eax, [eax + 0x14]
cmove eax, dword [ebp - 0x30]
mov dword [eax], ebx
mov dword [esi + 0x58], ebx
test edi, edi
je 0x40b1f0
mov dword [ebx + 0x14], edi
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x58], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x40b1f0
test byte [ebp - 0x38], 1
je 0x40b2bd
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x44]
push 0
push 0
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 8