Function at 0x180065b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea ebx, [r9 + 0x2f4]
mov edi, r9d
mov dword [rsp + 0xa8], ebx
mov r12, rdx
mov rsi, rcx
cmp r9d, ebx
jae 0x180065d87
mov r13d, dword [rsp + 0xa8]
mov rbp, qword [rsp + 0x20]
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0x20]
cmp edi, 0x102
ja 0x180065c46
je 0x180065c3b
cmp edi, 2
je 0x180065e84
cmp edi, 0x17
je 0x180065d6a
cmp edi, 0x32
jne 0x180065d5d
mov rax, qword [rsi + 8]
cmp dword [rax + 0x1008], 0
jne 0x180065c25
mov r8, qword [rax + 0x60]
mov rcx, rsi
mov edx, dword [r12]
call qword [rax + 0x40]
jmp 0x180065d5d
cmp dword [r12], 3
jne 0x180065d5d
inc dword [rax + 0x1ac8]
jmp 0x180065d5d
mov r13d, 4
jmp 0x180065d5d
mov eax, edi
sub eax, 0x111
je 0x180065cc2
sub eax, 0x5d
je 0x180065c6a
cmp eax, 0x6c
jne 0x180065d5d
mov dword [rsp + 0x20], 1
jmp 0x180065d87
cmp dword [rsi + 0x98], 2
jne 0x180065eea
mov r9, qword [rsi]
mov edx, 1
mov r8d, r13d
mov rcx, r12
mov ebx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x180065ed6
mov rcx, qword [rsi]
mov eax, r13d
neg eax
mov r8d, 1
movsxd rdx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x180065ec2
mov ebx, dword [rsp + 0xa8]
jmp 0x180065d5d
cmp dword [0x1800924b8], 0
je 0x180065efe
mov ecx, 0x74
mov eax, ecx
sub eax, 0x74
je 0x180065d4d
sub eax, 1
je 0x180065cff
cmp eax, 1
jne 0x180065d52
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, r15
jmp 0x180065d8c
mov r8d, 0x8e
mov rdx, rsi
xor ecx, ecx
xor r15d, r15d
call fcn.1800540c0
mov rbp, rax
test rax, rax
je 0x180065d41
mov r8d, 0x8e
mov rdx, r12
xor ecx, ecx
call fcn.1800540c0
mov r14, rax
test rax, rax
je 0x180065d41
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r15, rax
mov ecx, 0x75
mov edi, 0x111
jmp 0x180065d52
xor ebp, ebp
xor r14d, r14d
inc ecx
cmp ecx, 0x77
jb 0x180065cd4
add edi, 0x6c
cmp edi, ebx
jb 0x180065be0
jmp 0x180065d87
mov ebx, dword [rsi]
cmp ebx, 3
jg 0x180065e00
cmp ebx, 1
jg 0x180065db4
test ebx, ebx
jne 0x180065da4
xorps xmm0, xmm0
movsd qword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsd xmm0, qword [0x18008beb0]
divsd xmm0, qword [r12]
jmp 0x180065d81
movsd xmm1, qword [0x18008beb0]
movsd xmm3, qword [r12]
movaps xmm2, xmm1
movaps xmm0, xmm3
addsd xmm0, xmm1
divsd xmm2, xmm0
movaps xmm0, xmm1
divsd xmm0, xmm3
addsd xmm2, xmm0
cmp ebx, 2
jne 0x180065de8
movsd qword [rsp + 0x20], xmm2
jmp 0x180065d87
addsd xmm3, qword [0x18008bed0]
divsd xmm1, xmm3
addsd xmm1, xmm2
movsd qword [rsp + 0x20], xmm1
jmp 0x180065d87
mov rax, qword [rsp + 0xa0]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movsd xmm7, qword [r12]
movsd xmm6, qword [rax]
comisd xmm6, xmm0
ja 0x180065e45
lea rdx, [rsp + 0x20]
movsd qword [rsp + 0x20], xmm7
mov ecx, 0xbd
call fcn.180041c30
mov qword [rsp + 0x20], rax
movsd xmm6, qword [rsp + 0x20]
movd xmm0, ebx
lea rdx, [rsp + 0x20]
cvtdq2pd xmm0, xmm0
mov ecx, 0xbd
addsd xmm0, xmm7
movsd qword [rsp + 0x20], xmm0
call fcn.180041c30
movaps xmm7, xmmword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movsd xmm0, qword [rsp + 0x20]
subsd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x180065d81
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x180065e90
add rbx, rsi
cmp rbx, rsi
jbe 0x180065eba
movsx ecx, byte [rbx - 1]
dec rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x180065eba
mov byte [rbx], 0
cmp rbx, rsi
ja 0x180065ea1
mov rax, rsi
jmp 0x180065d8c
mov dword [rsi + 0x58], 7
mov dword [rsp + 0x20], 0
jmp 0x180065d87
mov dword [rsi + 0x58], 6
mov dword [rsp + 0x20], 0
jmp 0x180065d87
mov dword [rsi + 0x58], 1
mov dword [rsp + 0x20], 0
jmp 0x180065d87
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
jmp 0x180065d8c