Function at 0x180002c90
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.180013df0
sub rsp, rax
mov rax, qword [0x180052088]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.180015ba0
cmp qword [rbx + 0x18], 0x10
jb 0x180002ce0
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.180008530
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp - 8], 0
jne 0x180002dc3
lea rdx, str.Erro_ao_abrir_o_arquivo_para_escrita.
lea rcx, [0x1800537b0]
call fcn.18000a260
mov rcx, rax
call fcn.18000a510
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1800065e0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1800124d4
nop
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.180013570
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1190
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jle 0x180002e57
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.180006900
lea rdx, str.Recebido
lea rcx, [0x180053690]
call fcn.18000a260
mov rcx, rax
mov edx, ebx
call fcn.180006ca0
mov rcx, rax
lea rdx, str._bytes_do_arquivo.
call fcn.18000a260
mov rcx, rax
call fcn.18000a510
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jg 0x180002df0
test ebx, ebx
jne 0x180002e70
lea rdx, str.Transfer
lea rcx, [0x180053690]
call fcn.18000a260
jmp 0x180002e97
jns 0x180002e9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Erro_ao_receber_o_arquivo._C
lea rcx, [0x1800537b0]
call fcn.18000a260
mov rcx, rax
mov edx, ebx
call fcn.180006ca0
mov rcx, rax
call fcn.18000a510
xor r9d, r9d
lea r8d, [r9 + 0x16]
lea rdx, str.CONF:_Arquivo_recebido
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
lea rcx, [rsp + 0x78]
call fcn.1800083f0
test rax, rax
jne 0x180002d3c
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
je 0x180002d3c
test dl, 4
je 0x180002f0a
lea rbx, str.ios_base::badbit_set
jmp 0x180002f1f
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800017a0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180002010
lea rdx, [0x18004ee10]
lea rcx, [rsp + 0x40]
call fcn.180015f28
int3