Function at 0x14006f000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor r12d, r12d
mov r14, rdx
mov rdi, rcx
cmp dword [rdx + 8], r12d
jne 0x14006f0ad
lea rax, str.vfopen_called_with___
mov dword [rbp - 0x68], 0x15
mov bl, 1
mov qword [rbp - 0x70], rax
lea ecx, [r12 + 0x18]
mov byte [rsp + 0x40], bl
mov qword [rbp - 0x64], 1
call fcn.140001fa0
movups xmm0, xmmword [rbp - 0x70]
mov qword [rbp - 0x70], rax
movsd xmm1, qword [rbp - 0x60]
movups xmmword [rax], xmm0
mov qword [rbp - 0x60], rax
movsd qword [rax + 0x10], xmm1
add rax, 0x10
mov qword [rbp - 0x58], rax
movups xmm1, xmmword [rbp - 0x60]
mov dword [rbp - 0x68], 3
movups xmm0, xmmword [rbp - 0x70]
xor eax, eax
mov byte [rsp + 0x68], r12b
mov dword [rsp + 0x69], eax
mov word [rsp + 0x6d], ax
mov byte [rsp + 0x6f], al
mov rsi, qword [rsp + 0x68]
movups xmmword [rsp + 0x48], xmm0
movups xmm2, xmmword [rsp + 0x40]
jmp 0x14006f1d2
movups xmm0, xmmword [rdx]
lea rax, [0x1400889d0]
mov dword [rbp - 0x78], 2
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rax
movaps xmmword [rsp + 0x20], xmm0
mov dword [rbp - 0x74], 1
call fcn.1400859d0
lea rcx, [rsp + 0x20]
mov rbx, rax
call fcn.1400859d0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rsi, rax
test rax, rax
jne 0x14006f1b1
movups xmm0, xmmword [r14]
lea rax, str.failed_to_open_file__
mov dword [rbp - 0x28], 0x15
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x30]
lea rax, [0x140088a50]
mov dword [rbp - 0x24], 1
mov qword [rbp - 8], rax
lea edx, [rsi + 2]
xor eax, eax
mov dword [rbp - 0x20], 0xfe10
mov bl, 1
mov qword [rbp + 0x14], rax
lea rcx, [rbp - 0x70]
mov dword [rbp + 0x1c], eax
mov byte [rsp + 0x40], bl
movups xmmword [rbp - 0x18], xmm0
mov dword [rbp], 1
mov qword [rbp + 4], 1
mov dword [rbp + 0x10], r12d
call fcn.140080e60
lea ecx, [rsi + 0x18]
mov dword [rbp - 0x40], r12d
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.140001fa0
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
movups xmmword [rax], xmm0
mov dword [rsp + 0x28], 3
movsd xmm0, qword [rbp - 0x40]
movsd qword [rax + 0x10], xmm0
add rax, 0x10
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmm1, xmmword [rsp + 0x30]
jmp 0x14006f085
movups xmm0, xmmword [0x140090220]
mov byte [rsp + 0x40], r12b
movups xmm1, xmmword [0x140090230]
movups xmmword [rsp + 0x48], xmm0
movups xmm2, xmmword [rsp + 0x40]
movd ebx, xmm2
movups xmmword [rsp + 0x58], xmm1
unpckhpd xmm1, xmm1
movaps xmm0, xmm1
movups xmm3, xmmword [rsp + 0x50]
test bl, bl
je 0x14006f1f8
movups xmmword [rdi], xmm2
movups xmmword [rdi + 0x10], xmm3
movsd qword [rdi + 0x20], xmm1
jmp 0x14006f596
xor edx, edx
mov qword [rsp + 0x1a0], r15
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r15d, eax
test ebx, ebx
je 0x14006f2ca
test eax, eax
je 0x14006f2ca
lea rax, str.fseek_failed
mov dword [rsp + 0x28], 0xc
mov bl, 1
mov qword [rsp + 0x20], rax
mov ecx, 0x18
mov byte [rsp + 0x40], bl
mov qword [rsp + 0x2c], 1
call fcn.140001fa0
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x20], rax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rax], xmm0
mov qword [rsp + 0x30], rax
movsd qword [rax + 0x10], xmm1
add rax, 0x10
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm1, xmmword [rsp + 0x30]
mov dword [rsp + 0x28], 3
movups xmm0, xmmword [rsp + 0x20]
mov byte [rsp + 0x68], r12b
movups xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x69], eax
mov r15d, dword [rsp + 0x68]
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x6d], ax
movups xmm3, xmmword [rsp + 0x50]
mov byte [rsp + 0x6f], al
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x20], xmm3
movups xmmword [rbp - 0x50], xmm0
jmp 0x14006f307
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
movups xmm0, xmmword [0x140090220]
mov byte [rsp + 0x40], r12b
movups xmm1, xmmword [0x140090230]
movups xmmword [rsp + 0x48], xmm0
movups xmm2, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rsp + 0x20], xmm0
movd ebx, xmm2
unpckhpd xmm1, xmm1
movsd qword [rbp - 0x80], xmm1
test bl, bl
je 0x14006f33c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd xmm0, qword [rbp - 0x80]
movups xmmword [rdi + 0x10], xmm1
movsd qword [rdi + 0x20], xmm0
jmp 0x14006f58e
test r15d, r15d
jne 0x14006f412
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.1400800d0
movups xmm0, xmmword [rax + 0x10]
movups xmm2, xmmword [rax]
movsd xmm1, qword [rax + 0x40]
movups xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsp + 0x20], xmm2
movups xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [rax + 0x30]
movd eax, xmm2
movaps xmmword [rbp + 0x50], xmm0
movsd qword [rbp + 0x60], xmm1
test al, al
je 0x14006f3af
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rdi], xmm0
movsd xmm0, qword [rbp - 0x80]
movups xmmword [rdi + 0x10], xmm1
movsd qword [rdi + 0x20], xmm0
jmp 0x14006f58e
movups xmm0, xmmword [rbp + 0x48]
lea rdx, [rsp + 0x40]
movups xmm1, xmmword [rbp + 0x58]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
call fcn.140085d60
mov rcx, qword [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x14006f3e8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [0x140090220]
mov byte [rsp + 0x40], r12b
movups xmm2, xmmword [0x140090230]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rsp + 0x20]
jmp 0x14006f56a
lea eax, [r15 + 1]
movsxd rcx, eax
call fcn.1400047a0
movsxd r8, r15d
mov r9, rsi
mov edx, 1
mov rcx, rax
mov r14, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test ebx, ebx
jne 0x14006f511
test eax, eax
je 0x14006f511
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.fread_failed
mov byte [rsp + 0x40], 1
lea ecx, [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x2c], 1
call fcn.140001fa0
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x20], rax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rax], xmm0
mov qword [rsp + 0x30], rax
movsd qword [rax + 0x10], xmm1
add rax, 0x10
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x69], rax
mov dword [rsp + 0x28], 3
movups xmm0, xmmword [rsp + 0x20]
mov byte [rsp + 0x68], r12b
movups xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x71], eax
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x75], ax
movups xmm0, xmmword [rsp + 0x40]
mov byte [rsp + 0x77], al
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
movsd xmm1, qword [rsp + 0x70]
movups xmmword [rdi + 0x20], xmm0
movsd qword [rdi + 0x30], xmm1
jmp 0x14006f585
movsxd rax, r15d
mov qword [rbp - 0x80], r14
mov byte [rax + r14], r12b
test r15d, r15d
jne 0x14006f53e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], r12b
jne 0x14006f530
mov dword [rbp - 0x78], eax
jmp 0x14006f542
mov dword [rbp - 0x78], r15d
movups xmm0, xmmword [0x140090220]
mov byte [rsp + 0x40], r12b
movups xmm2, xmmword [0x140090230]
mov dword [rbp - 0x74], r12d
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x58], xmm2
movups xmm1, xmmword [rsp + 0x50]
unpckhpd xmm2, xmm2
movups xmmword [rdi + 0x10], xmm1
movsd qword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x28], xmm0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r15, qword [rsp + 0x1a0]
mov rbx, qword [rsp + 0x1b0]
mov rax, rdi
add rsp, 0x170
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret