Function at 0x1400846d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x88]
sub rsp, 0x188
mov rdi, qword [rbp + 0xd0]
lea rax, [rbp + 0xb0]
mov rsi, rcx
mov dword [rcx + 0x18], 1
mov qword [rcx + 0x10c8], 0
lea r9, [rbp + 0xb8]
mov rdx, rdi
mov dword [rbp + 0xb0], 0x5fb0a94f
lea r8, [rsp + 0x60]
mov dword [rbp + 0xb8], 0
lea rcx, [fcn.140071a10]
mov qword [rsp + 0x20], rax
call fcn.140083d80
test eax, eax
jne 0x140084966
mov eax, dword [rbp + 0xb8]
add qword [rsi + 0x48], rax
test byte [rsp + 0x65], 2
je 0x140084966
nop word [rax + rax]
movzx r10d, byte [rsp + 0x7c]
xor edx, edx
xor r8d, r8d
xor r11d, r11d
xor ecx, ecx
cmp r10, 2
jb 0x1400847a8
lea r9, [r10 - 1]
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x7d]
add edx, eax
movzx eax, byte [rsp + rcx + 0x7e]
add r8d, eax
add rcx, 2
cmp rcx, r9
jl 0x140084790
cmp rcx, r10
jge 0x1400847b3
movzx r11d, byte [rsp + rcx + 0x7d]
lea ebx, [rdx + r8]
add ebx, r11d
cmp ebx, 0x33
jne 0x140084845
mov edx, 1
lea rcx, [rbp + 0xe0]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x140084966
cmp byte [rbp + 0xe0], 0x7f
jne 0x14008483e
mov r9, rdi
lea r8d, [rbx - 0x2f]
mov rdx, rax
lea rcx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x140084966
cmp byte [rbp + 0xc0], 0x46
jne 0x140084837
cmp byte [rbp + 0xc1], 0x4c
jne 0x140084837
cmp byte [rbp + 0xc2], 0x41
jne 0x140084837
cmp byte [rbp + 0xc3], 0x43
je 0x140084974
mov edx, 0x2e
jmp 0x140084865
mov edx, 0x32
jmp 0x140084865
test ebx, ebx
jns 0x140084863
mov r8d, 0x221a
lea rdx, str.D:TheVaultimgui_dockingexamplesSnes_Seqdr_libs_masterdr_flac.h
lea rcx, str.offset___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov edx, ebx
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140084966
movsxd rax, ebx
lea rdx, [rbp + 0xc8]
add qword [rsi + 0x48], rax
mov r8d, 4
mov rcx, rdi
call fcn.140071a10
cmp rax, 4
jne 0x140084966
mov ebx, eax
mov dword [rbp + 0xb8], ebx
nop word [rax + rax]
cmp byte [rbp + 0xc8], 0x4f
movzx eax, byte [rbp + 0xcb]
movzx ecx, byte [rbp + 0xca]
movzx edx, byte [rbp + 0xc9]
jne 0x14008491d
cmp dl, 0x67
jne 0x14008491d
cmp cl, dl
jne 0x14008491d
cmp al, 0x53
jne 0x14008491d
lea rax, [rbp + 0xb0]
mov dword [rbp + 0xb0], 0x5fb0a94f
lea r9, [rbp + 0xb8]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rdx, rdi
lea rcx, [fcn.140071a10]
call fcn.140083d80
test eax, eax
je 0x140084951
cmp eax, 0xffffff9c
jne 0x140084966
mov ebx, dword [rbp + 0xb8]
jmp 0x1400848b0
mov byte [rbp + 0xc8], dl
mov r8d, 1
mov byte [rbp + 0xc9], cl
lea rdx, [rbp + 0xcb]
mov rcx, rdi
mov byte [rbp + 0xca], al
call fcn.140071a10
cmp rax, 1
jne 0x140084966
inc ebx
jmp 0x1400848a4
mov eax, dword [rbp + 0xb8]
add qword [rsi + 0x48], rax
test byte [rsp + 0x65], 2
jne 0x140084770
xor eax, eax
add rsp, 0x188
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 2
lea rcx, [rbp + 0xc8]
mov r9, rdi
mov r8d, ebx
lea edx, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x140084966
cmp byte [rbp + 0xc8], 1
jne 0x140084966
lea r8d, [rbx - 1]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140084966
mov r9, rdi
lea edx, [rbx - 1]
lea r8d, [rbx + 2]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x140084966
cmp byte [rbp + 0xc0], 0x66
jne 0x140084966
cmp byte [rbp + 0xc1], 0x4c
jne 0x140084966
cmp byte [rbp + 0xc2], 0x61
jne 0x140084966
cmp byte [rbp + 0xc3], 0x43
jne 0x140084966
mov r8, rax
lea rdx, [rbp + 0xb8]
mov rcx, rdi
call fcn.140071a10
cmp rax, 4
jne 0x140084966
mov ecx, dword [rbp + 0xb8]
bswap ecx
mov eax, ecx
and ecx, 0xffffff
shr eax, 0x18
test al, 0x7f
jne 0x140084966
cmp ecx, 0x22
jne 0x140084966
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.1400838e0
test eax, eax
je 0x140084966
mov eax, dword [rsp + 0x3c]
lea rcx, [rsi + 0x10d0]
add qword [rsi + 0x48], 0x33
lea rdx, [rsp + 0x60]
mov dword [rsi + 0x30], eax
movzx eax, byte [rsp + 0x40]
mov byte [rsi + 0x34], al
movzx eax, byte [rsp + 0x41]
mov byte [rsi + 0x35], al
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0x38], rax
movzx eax, word [rsp + 0x32]
mov word [rsi + 0x40], ax
mov rax, qword [rsi + 0x48]
add rax, 0xffffffffffffffb1
mov dword [rsi + 0x50], 1
mov qword [rsi + 0x10c8], rax
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x10c0], eax
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rbx, 1
jne 0x140084ab0
movups xmm0, xmmword [rdx]
mov dword [rsi + 0x54], 1
lea eax, [rbx + 1]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
add rsp, 0x188
pop rdi
pop rsi
pop rbx
pop rbp
ret