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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10135f28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x1017455c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x24]
push eax
mov edi, 1
call fcn.100804b0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
jne 0x1007f1c4
call fcn.1010e381
mov edx, dword [esp + 0x30]
mov byte [edx], 0x44
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
je 0x1007f263
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
jbe 0x1007f1e6
call fcn.1010e381
mov eax, dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
test eax, eax
jne 0x1007f211
call fcn.1010e381
xor eax, eax
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 0x10]
ja 0x1007f21c
test esi, esi
je 0x1007f215
mov esi, dword [esi]
jmp 0x1007f217
mov eax, dword [eax]
jmp 0x1007f1ff
xor esi, esi
cmp edi, dword [esi + 0xc]
jae 0x1007f221
call fcn.1010e381
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x1007f232
call fcn.1010e381
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx]
cmp esi, dword [ebx + 0x10]
jbe 0x1007f241
call fcn.1010e381
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push esi
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.1009c670
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
xor esi, esi
sub eax, ecx
mov edi, eax
je 0x1007f345
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea ecx, [ecx]
test eax, eax
ja 0x1007f28d
call fcn.1010e381
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 8]
push 0
push edi
add ecx, esi
push ecx
push edx
call ebx
test eax, eax
jl 0x1007f341
je 0x1007f2ba
mov ecx, dword [esp + 0x30]
add esi, eax
sub edi, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
cmp esi, eax
jb 0x1007f280
jmp 0x1007f345
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
push str.____int_clientserver::_sendmsgPlain_int_socketfd__const_std::array_char__1__command_const_std::vector_char__message___
push ecx
push eax
push ecx
push str._______send_returned_0_bytes._Expected:
push 0x1018e270
call fcn.100821b0
add esp, 0xc
push eax
call fcn.10080250
add esp, 4
push eax
call fcn.100821b0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10080390
mov ecx, esi
call fcn.10016d90
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x1007f313
push eax
call fcn.1010e8a3
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.1010e8a3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1007f352
push ecx
call fcn.1010e8a3
add esp, 4
mov ecx, dword [esp + 0x24]
xor eax, eax
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.1010e8a3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret