Function at 0x1007f390
Capabilities:
Access peb ldr_data
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10135fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x1017455c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
mov edi, 5
call fcn.100804b0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x60], 0
mov ebx, dword [eax + 0x10]
sub ebx, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push ecx
mov edi, 4
call fcn.100804b0
lea esi, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.1007ef20
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
jne 0x1007f408
call fcn.1010e381
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x30]
mov byte [ecx], al
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
jne 0x1007f420
call fcn.1010e381
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
cmp eax, 1
ja 0x1007f436
call fcn.1010e381
mov cl, byte [esi]
mov edx, dword [esp + 0x30]
mov byte [edx + 1], cl
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
cmp eax, 1
ja 0x1007f451
call fcn.1010e381
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub ecx, dword [esp + 0x30]
inc esi
cmp ecx, 2
ja 0x1007f468
call fcn.1010e381
mov dl, byte [esi]
mov eax, dword [esp + 0x30]
mov byte [eax + 2], dl
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
cmp ecx, 2
ja 0x1007f483
call fcn.1010e381
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub edx, dword [esp + 0x30]
add esi, 2
cmp edx, 3
ja 0x1007f49c
call fcn.1010e381
mov al, byte [esi]
mov ecx, dword [esp + 0x30]
mov byte [ecx + 3], al
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
cmp edx, 3
ja 0x1007f4b7
call fcn.1010e381
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
add esi, 3
cmp eax, 4
ja 0x1007f4d0
call fcn.1010e381
mov cl, byte [esi]
mov edx, dword [esp + 0x30]
mov byte [edx + 4], cl
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
jbe 0x1007f4e8
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 0x1007f515
call fcn.1010e381
xor eax, eax
lea ecx, [edi + 5]
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x10]
ja 0x1007f520
test esi, esi
je 0x1007f519
mov esi, dword [esi]
jmp 0x1007f51b
mov eax, dword [eax]
jmp 0x1007f501
xor esi, esi
cmp ecx, dword [esi + 0xc]
jae 0x1007f525
call fcn.1010e381
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xc], eax
jbe 0x1007f539
call fcn.1010e381
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x1007f548
call fcn.1010e381
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edi
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.1009c670
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, ecx
xor edi, edi
sub edx, eax
mov ebx, edx
je 0x1007f6be
cmp dword [0x10193f6c], 0
je 0x1007f5aa
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
push ebx
push edx
push eax
push str._HF___sendmsg__cmd___c__socket___d__bytes___d_
push 0
call fcn.10053700
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add esp, 0x14
sub ecx, eax
jne 0x1007f5b7
call fcn.1010e381
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
push 0
push ebx
add eax, edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x10193f6c], 0
mov esi, eax
je 0x1007f5e2
push esi
push str._HF__send_returns_n___d
push 0
call fcn.10053700
add esp, 0xc
test esi, esi
jl 0x1007f6b6
je 0x1007f605
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, ecx
add edi, esi
sub edx, eax
sub ebx, esi
cmp edi, edx
jb 0x1007f580
jmp 0x1007f6be
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
push str.____int_clientserver::_sendmsg_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 + 0x48]
xor esi, esi
cmp eax, esi
je 0x1007f65e
push eax
call fcn.1010e8a3
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.1010e8a3
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, esi
je 0x1007f688
push eax
call fcn.1010e8a3
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
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 + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
cmp eax, ecx
jbe 0x1007f6d3
call fcn.1010e381
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov ebx, eax
cmp eax, ecx
jbe 0x1007f6e2
call fcn.1010e381
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edx
push esi
push ebx
push eax
lea ebx, [esp + 0x2c]
lea esi, [esp + 0x34]
call fcn.10080780
xor esi, esi
cmp dword [0x10193f6c], esi
je 0x1007f714
push edi
push str._HF__FUNC_returns_total___d
push esi
call fcn.10053700
add esp, 0xc
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x1007f725
push eax
call fcn.1010e8a3
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.1010e8a3
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, esi
je 0x1007f74f
push eax
call fcn.1010e8a3
add esp, 4
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.1010e8a3
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret