Function at 0x140021d10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
movaps xmmword [rsp + 0x1f0], xmm10
mov rax, qword [0x14013f080]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rdx
mov r13, rcx
mov rcx, rbx
lea rdx, [0x1400c3698]
mov rsi, r9
movaps xmm10, xmm2
call fcn.140003170
mov rdi, rax
test rax, rax
je 0x140022091
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140022088
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r12, eax
cmp r12d, 0xffffffff
je 0x140022088
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 0x140022088
mov rcx, qword [0x140163ec0]
test rcx, rcx
je 0x140021dc3
inc dword [rcx + 0x3c8]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x140022088
mov r9, rdi
mov r8, r12
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, r12
je 0x140021e1a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140163ec0]
test rax, rax
je 0x140021e0c
dec dword [rax + 0x3c8]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140022091
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x220], xmm7
movaps xmmword [rsp + 0x210], xmm8
movaps xmmword [rsp + 0x200], xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140021e99
movaps xmm0, xmmword [rsi]
lea rax, [rbp - 0x40]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [rsi + 0x20]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [rsi + 0x40]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [rsi + 0x30]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [rsi + 0x60]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm1, xmmword [rsi + 0x50]
movaps xmmword [rbp + 0x20], xmm0
movsd xmm0, qword [rsi + 0x80]
movaps xmmword [rbp + 0x10], xmm1
movaps xmm1, xmmword [rsi + 0x70]
movsd qword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm1
jmp 0x140021f06
xor ecx, ecx
mov byte [rsp + 0x3c], 1
xor eax, eax
mov qword [rsp + 0x30], rcx
xorps xmm1, xmm1
mov qword [rbp - 0x5c], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov byte [rsp + 0x50], cl
mov qword [rsp + 0x54], rcx
mov qword [rsp + 0x5c], rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], cl
mov dword [rsp + 0x7c], ecx
mov dword [rbp - 0x80], 0x3f800000
movups xmmword [rbp - 0x7c], xmm1
mov qword [rbp - 0x50], rcx
movups xmmword [rbp - 0x6c], xmm1
movaps xmm1, xmmword [rax + 0x50]
movaps xmm2, xmmword [rax]
movdqa xmm0, xmm1
movaps xmm3, xmmword [rax + 0x10]
movaps xmm4, xmmword [rax + 0x20]
movaps xmm5, xmmword [rax + 0x30]
movaps xmm6, xmmword [rax + 0x40]
movaps xmm7, xmmword [rax + 0x60]
movaps xmm8, xmmword [rax + 0x70]
movsd xmm9, qword [rax + 0x80]
psrldq xmm0, 4
movd eax, xmm0
movaps xmmword [rbp + 0x50], xmm2
movaps xmmword [rbp + 0x60], xmm3
movaps xmmword [rbp + 0x70], xmm4
movaps xmmword [rbp + 0x80], xmm5
movaps xmmword [rbp + 0x90], xmm6
movaps xmmword [rbp + 0xa0], xmm1
movaps xmmword [rbp + 0xb0], xmm7
movaps xmmword [rbp + 0xc0], xmm8
movsd qword [rbp + 0xd0], xmm9
test al, al
jne 0x14002201a
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rbx + r9], 0
jne 0x140021f84
add r9, rbx
cmp r9, rbx
jbe 0x140021fbb
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
lea rax, [r9 - 1]
cmp cl, 0x2f
je 0x140021fbb
cmp cl, 0x5c
je 0x140021fbb
mov r9, rax
cmp rax, rbx
ja 0x140021fa0
xorps xmm0, xmm0
lea r8, str._s___.0fpx
cvtss2sd xmm0, xmm10
mov edx, Ordinal_41
lea rcx, [rbp + 0xa4]
movsd qword [rsp + 0x20], xmm0
call fcn.140002f90
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm5, xmmword [rbp + 0x80]
movaps xmm4, xmmword [rbp + 0x70]
movaps xmm3, xmmword [rbp + 0x60]
movaps xmm2, xmmword [rbp + 0x50]
movsd xmm9, qword [rbp + 0xd0]
movaps xmm8, xmmword [rbp + 0xc0]
movaps xmm7, xmmword [rbp + 0xb0]
movaps xmm6, xmmword [rbp + 0x90]
movaps xmmword [rsp + 0x30], xmm2
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0x40], xmm3
mov rcx, r13
movss dword [rsp + 0x44], xmm10
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], r12d
movaps xmmword [rsp + 0x50], xmm4
movaps xmmword [rsp + 0x60], xmm5
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm9
call fcn.140021a90
movaps xmm9, xmmword [rsp + 0x200]
movaps xmm8, xmmword [rsp + 0x210]
movaps xmm7, xmmword [rsp + 0x220]
movaps xmm6, xmmword [rsp + 0x230]
jmp 0x140022093
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400b0f60
movaps xmm10, xmmword [rsp + 0x1f0]
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret