Function at 0x14008da80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x98
lea rbp, [0x140140120]
mov rbx, rcx
mov rdx, rbp
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x14008df77
mov qword [rsp + 0xb0], rsi
lea rcx, [rbx + 0x28]
mov qword [rsp + 0xc0], rdi
mov edi, 2
mov edx, edi
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0x90], r15
call fcn.140025da0
mov r14, 0xffffffffffffffff
lea r10, [0x14014cea0]
mov rdx, r14
mov r9, rax
nop dword [rax]
movzx r8d, word [r9 + rdx*2 + 2]
movzx ecx, word [r10 + rdx*2 + 2]
sub r8d, ecx
jne 0x14008db19
add rdx, rdi
cmp rdx, 0xf
je 0x14008db19
movzx r8d, word [r9 + rdx*2]
movzx eax, word [r10 + rdx*2]
sub r8d, eax
je 0x14008daf0
test r8d, r8d
lea rcx, [rbx + 0x28]
mov edx, edi
sete al
mov byte [rbx + 0x2a0], al
call fcn.140025da0
xor r15d, r15d
mov edx, r15d
nop word [rax + rax]
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbp + rdx*2]
jne 0x14008db65
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [rbp + rdx*2 + 2]
jne 0x14008db65
add rdx, rdi
cmp rdx, 0x10
jne 0x14008db40
jmp 0x14008dbf6
mov edx, edi
lea rcx, [rbx + 0x28]
call fcn.140025da0
mov r8, rax
lea r9, [0x140140140]
mov rdx, r14
nop dword [rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r9 + rdx*2 + 2]
jne 0x14008dba7
add rdx, rdi
cmp rdx, 0xf
je 0x14008dc2b
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x14008db80
mov edx, edi
lea rcx, [rbx + 0x28]
call fcn.140025da0
lea r9, [0x140140160]
mov rdx, r15
nop dword [rax]
movzx r8d, word [rax + rdx*2]
movzx ecx, word [r9 + rdx*2]
sub r8d, ecx
jne 0x14008dbe9
movzx r8d, word [rax + rdx*2 + 2]
movzx ecx, word [r9 + rdx*2 + 2]
sub r8d, ecx
jne 0x14008dbe9
add rdx, rdi
cmp rdx, 0x10
jne 0x14008dbc0
test r8d, r8d
mov edi, r15d
setne dil
add edi, 3
lea r8, str.WavpackOpenFileInputEx64
mov dword [rbx + 0x2a4], edi
lea rdx, [0x1401a9140]
mov dword [rbx + 0x2b0], r15d
lea rcx, str.wavpackdll.dll
call fcn.140028a70
test al, al
jne 0x14008dc32
mov eax, 0x80040210
jmp 0x14008df57
mov edi, 1
jmp 0x14008dbf6
mov ecx, dword [rbx + 0x264]
imul ecx, dword [rbx + 0x258]
mov rdi, qword [rbx + 0x270]
shl rcx, 2
call fcn.1400b609c
mov qword [rbx + 0x270], rax
test rdi, rdi
je 0x14008dc63
mov rcx, rdi
call fcn.1400b60a4
cmp qword [rbx + 0x270], r15
je 0x14008df52
mov r8, rbx
lea rcx, [0x14008e6d0]
mov rdx, rbx
call qword [0x1401a91b0]
mov qword [rbx + 0x298], rax
mov rcx, rax
test rax, rax
je 0x14008df52
xor eax, eax
xorps xmm0, xmm0
cmp byte [rbx + 0x2a0], r15b
mov edx, 0x7f
mov dword [rsp + 0x80], eax
mov eax, dword [rbx + 0x2a4]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x3c], eax
lea eax, [rax*8]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x25c]
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], eax
mov eax, dword [rbx + 0x258]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x4c], eax
mov eax, dword [rbx + 0x260]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x50]
cmovne eax, edx
movabs rdx, 0x7fffffffffffffff
mov dword [rsp + 0x50], eax
mov rax, qword [rbx + 0x250]
cmp rax, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x70], xmm0
cmovne r14, rax
xor r9d, r9d
mov r8, r14
call qword [0x1401a91b8]
test eax, eax
je 0x14008df4b
mov rcx, qword [rbx + 0x298]
call qword [0x1401a91c0]
test eax, eax
je 0x14008df4b
movzx eax, byte [rbx + 0x2a0]
test al, al
jne 0x14008dd89
mov edx, dword [rbx + 0x2a4]
cmp edx, 4
jge 0x14008dd92
mov r9d, dword [rbx + 0x260]
lea edx, [rdx*8]
mov r8d, dword [rbx + 0x258]
mov rcx, rbx
call fcn.140024600
movzx eax, byte [rbx + 0x2a0]
test al, al
je 0x14008dd92
lea rdi, [0x14012dc78]
jmp 0x14008ddd0
mov eax, dword [rbx + 0x2a4]
cmp eax, 8
je 0x14008ddc9
cmp eax, 0x10
je 0x14008ddc0
cmp eax, 0x18
je 0x14008ddb7
cmp eax, 0x20
lea rdi, [0x140130280]
cmovne rdi, r15
jmp 0x14008ddd0
lea rdi, [0x14012dc98]
jmp 0x14008ddd0
lea rdi, [0x14012bb38]
jmp 0x14008ddd0
lea rdi, [0x14012dcb0]
mov rcx, qword [rbx + 0x10]
mov edx, dword [rbx + 0x258]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rdx, rax
test rax, rax
je 0x14008de18
cmp rdi, rax
je 0x14008de0c
test rdi, rdi
je 0x14008de18
sub rdx, rdi
movzx ecx, word [rdi]
movzx eax, word [rdi + rdx]
sub ecx, eax
jne 0x14008de08
add rdi, 2
test eax, eax
jne 0x14008ddf5
test ecx, ecx
jne 0x14008de18
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x38]
jmp 0x14008de20
mov rcx, rbx
call fcn.1400246e0
mov edi, eax
mov ebp, eax
shr edi, 0x1f
not dil
and dil, 1
je 0x14008df25
mov rcx, qword [rbx + 0x298]
call qword [0x1401a91d0]
cmp r14, qword [rbx + 0x268]
je 0x14008df25
mov eax, dword [rbx + 0x2b0]
test eax, eax
je 0x14008df25
mov ecx, eax
call fcn.1400b609c
mov rsi, rax
test rax, rax
je 0x14008df25
mov rdx, qword [rbx + 0x2a8]
xor r9d, r9d
mov rcx, qword [rbx + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [rbx + 0x2b0]
lea r9, [rsp + 0xb8]
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0xb8], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008df0e
cmp dword [rsp + 0xb8], edi
jne 0x14008df0e
mov rcx, qword [rbx + 0x298]
mov rdx, rsi
call qword [0x1401a91d8]
mov rdx, qword [rbx + 0x2a8]
xor r9d, r9d
mov rcx, qword [rbx + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [rbx + 0x2b0]
lea r9, [rsp + 0xb8]
mov rcx, qword [rbx + 0x38]
mov rdx, rsi
mov dword [rsp + 0xb8], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call fcn.1400b60a4
mov rcx, qword [rbx + 0x298]
call qword [0x1401a91e0]
jmp 0x14008df37
mov rcx, qword [rbx + 0x298]
call qword [0x1401a91e0]
test dil, dil
je 0x14008df47
mov rdx, qword [rbx + 0x10]
lea rcx, [rbx + 0x38]
xor r8d, r8d
call fcn.14004fe70
mov eax, ebp
jmp 0x14008df57
mov eax, 0x80040200
jmp 0x14008df57
mov eax, 0x80040202
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x90]
add rsp, 0x98
pop rbp
pop rbx
ret