Function at 0x140020670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
movaps xmmword [rsp + 0x160], xmm10
mov rax, qword [0x1400e10c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, qword [rbp + 0x110]
mov rbx, rdx
mov r13, rcx
lea rdx, [0x1400c1570]
mov rcx, rbx
movaps xmm10, xmm2
call fcn.140003120
mov rdi, rax
test rax, rax
je 0x140020989
xor edx, edx
mov r8d, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140020980
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140020980
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140020980
mov rax, qword [0x1401c7ab0]
mov r14, rsi
test rax, rax
je 0x140020726
inc dword [rax + 0x3c8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140020980
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, r14
je 0x14002077d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401c7ab0]
test rax, rax
je 0x14002076f
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140020989
mov qword [rsp + 0x208], r15
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm7
movaps xmmword [rsp + 0x180], xmm8
movaps xmmword [rsp + 0x170], xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
mov byte [rsp + 0x3c], 1
xor eax, eax
mov qword [rsp + 0x5c], rcx
xorps xmm1, xmm1
mov qword [rbp - 0x5c], rax
movups xmmword [rbp - 0x7c], xmm1
mov qword [rsp + 0x30], rcx
mov rdi, r14
movups xmmword [rbp - 0x6c], xmm1
mov r15, rsi
mov dword [rsp + 0x38], ecx
movaps xmm7, xmmword [rbp - 0x70]
movaps xmm2, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rbp - 0x60]
movd eax, xmm1
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
movaps xmm3, xmmword [rsp + 0x40]
mov byte [rsp + 0x50], cl
mov qword [rsp + 0x54], rcx
movaps xmm4, xmmword [rsp + 0x50]
mov qword [rsp + 0x68], rcx
movaps xmm0, xmmword [rsp + 0x60]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], cl
mov dword [rsp + 0x7c], ecx
movaps xmm5, xmmword [rsp + 0x70]
mov dword [rbp - 0x80], 0x3f800000
movaps xmm6, xmmword [rbp - 0x80]
mov qword [rbp - 0x50], rcx
movsd xmm9, qword [rbp - 0x50]
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm3
movaps xmmword [rbp - 0x20], xmm4
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp], xmm5
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp + 0x20], xmm7
movaps xmmword [rbp + 0x30], xmm8
movsd qword [rbp + 0x40], xmm9
test al, al
jne 0x1400208f5
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rbx + r9], cl
jne 0x140020881
add r9, rbx
cmp r9, rbx
jbe 0x1400208ab
movzx eax, byte [r9 - 1]
lea rcx, [r9 - 1]
cmp al, 0x2f
je 0x1400208ab
cmp al, 0x5c
je 0x1400208ab
mov r9, rcx
cmp rcx, rbx
ja 0x140020892
xorps xmm0, xmm0
lea r8, str._s___.0fpx
cvtss2sd xmm0, xmm10
mov edx, Ordinal_41
lea rcx, [rbp + 0x14]
movsd qword [rsp + 0x20], xmm0
call fcn.140002f40
movaps xmm5, xmmword [rbp]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm4, xmmword [rbp - 0x20]
movaps xmm3, xmmword [rbp - 0x30]
movaps xmm2, xmmword [rbp - 0x40]
movsd xmm9, qword [rbp + 0x40]
movaps xmm8, xmmword [rbp + 0x30]
movaps xmm7, xmmword [rbp + 0x20]
movaps xmm6, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm2
test r12, r12
psrldq xmm0, 8
mov rcx, r13
movq rax, xmm0
movaps xmmword [rsp + 0x40], xmm3
cmovne rax, r12
movss dword [rsp + 0x44], xmm10
mov qword [rsp + 0x68], rax
movaps xmmword [rsp + 0x50], xmm4
movaps xmmword [rsp + 0x70], xmm5
movaps xmmword [rbp - 0x80], xmm6
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm9
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], edi
call fcn.1400203f0
movaps xmm9, xmmword [rsp + 0x170]
movaps xmm8, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
movaps xmm6, xmmword [rsp + 0x1a0]
mov r15, qword [rsp + 0x208]
jmp 0x14002098b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400ae470
movaps xmm10, xmmword [rsp + 0x160]
add rsp, 0x1b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret