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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x930
mov eax, dword [ebp + 0xc]
mov edx, dword [0x429908]
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 0x40af5d
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40b093
cmp dword [ebx + 0x108], 0xffffffff
je 0x40b093
push eax
push str.__writing__d_bytes_n
push 0xa
push 0x42f668
call fcn.00405580
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 0x40b093
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 0x40af04
test eax, eax
je 0x40af04
add esi, eax
jmp 0x40aed7
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.00416129
add esp, 0x18
lea ecx, [ebp - 0x24]
push 0x42eb08
call fcn.0040b170
lea edx, [ebp - 0x24]
push 0x4259b0
push edx
call fcn.00416244
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040b170
lea edx, [ebp - 0x3c]
push 0x4259b0
push edx
call fcn.00416244
mov esi, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 0x1c], esi
jle 0x40b093
cmp ecx, 0x800
mov dword [ebp + 8], 0x800
jge 0x40af7d
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 0x40afc0
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 0x40af9d
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
shl edi, 4
mov dword [ebp - 4], 2
je 0x40b07a
cmp dword [ebx + 0x108], 0xffffffff
je 0x40b07a
push edi
push str.__writing__d_bytes_n
push 0xa
push 0x42f668
call fcn.00405580
add esp, 0x10
xor esi, esi
cmp esi, edi
jge 0x40b077
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 0x40b021
test eax, eax
je 0x40b021
add esi, eax
jmp 0x40aff4
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.00416129
add esp, 0x18
lea ecx, [ebp - 0x2c]
push 0x42eb08
call fcn.0040b170
lea ecx, [ebp - 0x2c]
push 0x4259b0
push ecx
call fcn.00416244
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call fcn.0040b170
lea ecx, [ebp - 0x34]
push 0x4259b0
push ecx
call fcn.00416244
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 0x40af60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc