Function at 0x140070bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov r13, rdx
mov qword [rsp + 0x70], rdx
mov dil, 1
mov byte [rsp + 0x20], dil
mov rdx, qword [rcx + 0x20]
cmp qword [rcx + 0x18], 0xf
jbe 0x140070c3a
mov rcx, qword [rcx]
xor r9d, r9d
lea r8, [0x1413c7b7c]
call fcn.14005ee90
test rax, rax
je 0x1400711b2
lea rdx, [0x1413a189c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400711b2
mov r9, rax
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x2c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp dword [rsp + 0x2c], 0
jne 0x1400711a9
mov r9, r14
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x28], ebx
lea r12, vtable.std::_Root_node.0
cmp r15d, dword [rsp + 0x30]
jae 0x1400711a4
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], send
mov byte [rsp + 0x78], 0
vmovups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], send
mov byte [rsp + 0x98], 0
mov r9, r14
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x140070d64
mov r8d, eax
mov r9, r14
mov edx, 1
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.14001bf00
mov r9, r14
mov edx, 1
mov r8d, 4
lea rcx, [rsp + 0x24]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x140070db8
mov r8d, eax
mov r9, r14
mov edx, 1
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.14001bf00
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
call fcn.140071c30
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call fcn.140071870
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0xf
cmova rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x88]
add r8, rdx
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 0xf
cmova rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xd8], 0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xf8], rbx
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.1400726d0
nop
mov ecx, 0x30
call fcn.1403f4d70
mov qword [rax + 8], socket
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax], r12
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x110], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x120], 0x100
mov dword [rsp + 0x124], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], 1
mov dword [rsp + 0x140], 0x8775dfb
lea rcx, [rsp + 0xc0]
call fcn.140072790
nop
lea rcx, [rsp + 0xc0]
call fcn.140072370
mov rsi, rax
test rax, rax
je 0x140070f38
lock inc dword [rax + 0x2c]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140070f7c
mov eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x140070f7c
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140070f7c
nop dword [rax + rax]
mov rcx, rdi
lea rax, [rdi + 0x10]
mov rdi, qword [rax]
mov qword [rax], rbx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rdi, rdi
jne 0x140070f60
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0xe0]
call fcn.140049d50
nop
jmp 0x140070fad
vmovups ymm1, ymmword [rsp + 0x78]
vmovups ymmword [rsp + 0xc0], ymm1
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], send
mov byte [rsp + 0x78], 0
vmovups ymm1, ymmword [rsp + 0x98]
vmovups ymmword [rsp + 0xe0], ymm1
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], send
mov byte [rsp + 0x98], 0
mov qword [rsp + 0x100], rbx
mov cl, 1
vzeroupper
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x118]
call fcn.140071c30
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x118]
call fcn.140071870
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x100]
call fcn.140071760
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [r13 + 8]
cmp rax, qword [r13 + 0x10]
je 0x140071088
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.1400725f0
add qword [r13 + 8], 0x68
jmp 0x14007109c
lea r8, [rsp + 0xc0]
mov rdx, rax
mov rcx, r13
call fcn.140072020
nop
lea rcx, [rsp + 0x100]
call fcn.140071760
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x1400710ce
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
test rax, rax
je 0x1400710ce
mov rax, qword [rax]
mov edx, 1
call qword [rax]
lea rcx, [rsp + 0xe0]
call fcn.1400035f0
lea rcx, [rsp + 0xc0]
call fcn.1400035f0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007112c
mov eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x14007112c
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14007112c
nop dword [rax]
mov rcx, rdi
lea rax, [rdi + 0x10]
mov rdi, qword [rax]
mov qword [rax], rbx
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rdi, rdi
jne 0x140071110
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140071154
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
test rax, rax
je 0x140071154
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rsp + 0x90]
cmp rdx, 0xf
jbe 0x140071197
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071192
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140071192
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403f4db4
inc r15d
mov dword [rsp + 0x28], r15d
jmp 0x140070cc0
movzx edi, byte [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movzx eax, dil
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret