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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10147380
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x10189710]
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.1008c6d0
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.1008c6d0
lea esi, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.1008b1a0
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
jne 0x1008b688
call fcn.10128a71
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 0x1008b6a0
call fcn.10128a71
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
cmp eax, 1
ja 0x1008b6b6
call fcn.10128a71
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 0x1008b6d1
call fcn.10128a71
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub ecx, dword [esp + 0x30]
inc esi
cmp ecx, 2
ja 0x1008b6e8
call fcn.10128a71
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 0x1008b703
call fcn.10128a71
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub edx, dword [esp + 0x30]
add esi, 2
cmp edx, 3
ja 0x1008b71c
call fcn.10128a71
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 0x1008b737
call fcn.10128a71
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
add esi, 3
cmp eax, 4
ja 0x1008b750
call fcn.10128a71
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 0x1008b768
call fcn.10128a71
mov eax, dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
test eax, eax
jne 0x1008b795
call fcn.10128a71
xor eax, eax
lea ecx, [edi + 5]
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x10]
ja 0x1008b7a0
test esi, esi
je 0x1008b799
mov esi, dword [esi]
jmp 0x1008b79b
mov eax, dword [eax]
jmp 0x1008b781
xor esi, esi
cmp ecx, dword [esi + 0xc]
jae 0x1008b7a5
call fcn.10128a71
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xc], eax
jbe 0x1008b7b9
call fcn.10128a71
mov ebx, dword [esi + 0xc]
mov edi, dword [esi]
cmp ebx, dword [esi + 0x10]
jbe 0x1008b7c8
call fcn.10128a71
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.1008cda0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, ecx
xor edi, edi
sub edx, eax
mov ebx, edx
je 0x1008b93d
cmp dword [0x101b60e8], 0
je 0x1008b82a
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.1006ed90
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add esp, 0x14
sub ecx, eax
jne 0x1008b837
call fcn.10128a71
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
push 0
push ebx
add eax, edi
push eax
push ecx
call sub.WS2_32.dll_send
cmp dword [0x101b60e8], 0
mov esi, eax
je 0x1008b861
push esi
push str._HF__send_returns_n___d
push 0
call fcn.1006ed90
add esp, 0xc
test esi, esi
jl 0x1008b935
je 0x1008b884
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 0x1008b800
jmp 0x1008b93d
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 0x101a5aa0
call fcn.1000e410
add esp, 0xc
push eax
call fcn.10013d50
add esp, 4
push eax
call fcn.1000e410
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.1000c790
mov ecx, esi
call fcn.1000c8b0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x1008b8dd
push eax
call fcn.10128f9e
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.10128f9e
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, esi
je 0x1008b907
push eax
call fcn.10128f9e
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.10128f9e
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 0x1008b952
call fcn.10128a71
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov ebx, eax
cmp eax, ecx
jbe 0x1008b961
call fcn.10128a71
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.1008c9c0
xor esi, esi
cmp dword [0x101b60e8], esi
je 0x1008b993
push edi
push str._HF__FUNC_returns_total___d
push esi
call fcn.1006ed90
add esp, 0xc
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x1008b9a4
push eax
call fcn.10128f9e
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.10128f9e
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, esi
je 0x1008b9ce
push eax
call fcn.10128f9e
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.10128f9e
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