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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x930
mov eax, dword [ebp + 0xc]
mov edx, dword [0x42c9b0]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, eax
cmp edx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ecx
jne 0x40b6cd
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40b803
cmp dword [ebx + 0x108], 0xffffffff
je 0x40b803
push eax
push str.__writing__d_bytes_n
push 0xa
push 0x4333b0
call fcn.00405690
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WSOCK32.dll_send]
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp esi, eax
jge 0x40b803
mov ecx, dword [ebp - 0x14]
sub eax, esi
push 0
push eax
mov edx, dword [ecx + 0x108]
lea eax, [esi + edi]
push eax
push edx
call ebx
cmp eax, 0xffffffff
je 0x40b674
test eax, eax
je 0x40b674
add esi, eax
jmp 0x40b647
push eax
push esi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa4]
push str.WriteExact:_Socket_error_while_writing.__bytes_d__error_d__i_d__j_d
push ecx
call fcn.00418db9
add esp, 0x18
lea ecx, [ebp - 0x24]
push 0x4325fc
call fcn.0040b8d0
lea edx, [ebp - 0x24]
push 0x4289b0
push edx
call fcn.00418ed4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040b8d0
lea edx, [ebp - 0x3c]
push 0x4289b0
push edx
call fcn.00418ed4
mov esi, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0x1c], esi
jle 0x40b803
cmp ecx, 0x800
mov dword [ebp + 8], 0x800
jge 0x40b6ed
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
mov edi, eax
sar edi, 4
test edi, edi
jle 0x40b730
lea ebx, [ebp - 0x93c]
mov dword [ebp - 0x18], edi
sub ebx, esi
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + esi]
push ecx
push edx
push esi
call fcn.00401000
mov eax, dword [ebp - 0x18]
add esp, 0xc
add esi, 0x10
dec eax
mov dword [ebp - 0x18], eax
jne 0x40b70d
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
shl edi, 4
mov dword [ebp - 4], 2
je 0x40b7ea
cmp dword [ebx + 0x108], 0xffffffff
je 0x40b7ea
push edi
push str.__writing__d_bytes_n
push 0xa
push 0x4333b0
call fcn.00405690
add esp, 0x10
xor esi, esi
cmp esi, edi
jge 0x40b7e7
mov edx, dword [ebx + 0x108]
mov eax, edi
sub eax, esi
push 0
lea ecx, [ebp + esi - 0x93c]
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40b791
test eax, eax
je 0x40b791
add esi, eax
jmp 0x40b764
push eax
push esi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
lea eax, [ebp - 0xa4]
push str.WriteExact:_Socket_error_while_writing.__bytes_d__error_d__i_d__j_d
push eax
call fcn.00418db9
add esp, 0x18
lea ecx, [ebp - 0x2c]
push 0x4325fc
call fcn.0040b8d0
lea ecx, [ebp - 0x2c]
push 0x4289b0
push ecx
call fcn.00418ed4
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call fcn.0040b8d0
lea ecx, [ebp - 0x34]
push 0x4289b0
push ecx
call fcn.00418ed4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], ecx
add esi, eax
jmp 0x40b6d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc