Function at 0x1400a7380
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor r13d, r13d
mov dword [rbp - 0x19], r13d
lea r12d, [r13 + 1]
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x1400a79d1
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x27], rax
lea rbx, [0x140114aa8]
mov rdx, rbx
lea rcx, [rbp + 0x27]
call fcn.140004bf0
lea rdi, [r13 - 1]
test al, al
jne 0x1400a741e
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a7404
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x27]
call fcn.140004e70
nop
call fcn.14001ef50
test dword [rax + 4], 0x2000000
je 0x1400a760f
mov edx, 0x7b
mov rcx, qword [r15 + 8]
call fcn.1400d4dd4
mov rcx, rax
test rax, rax
jne 0x1400a744a
mov ecx, edi
jmp 0x1400a7451
sub rcx, qword [r15 + 8]
sar rcx, 1
mov rax, qword [r15 + 8]
mov r9d, dword [rax - 0x10]
sub r9d, ecx
mov r8d, ecx
lea rdx, [rbp + 0xf]
lea rcx, [r15 + 8]
call fcn.1400101e0
mov dword [rbp - 0x19], r12d
mov qword [rbp - 0x11], r13
mov rbx, qword [rbp + 0xf]
lea r12, [rbx - 0x18]
mov rcx, qword [r12]
test rcx, rcx
je 0x1400a7493
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400a74a4
call fcn.140005430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400a79dc
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x19], 3
mov ecx, dword [rbx - 0x10]
lea rdx, str.GlobalRtk_Gen4BSSNLT2_
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400a74d0
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, eax
lea rcx, [rbp - 0x11]
call fcn.140010330
nop
mov qword [rbp - 9], r13
mov rbx, qword [rbp - 0x11]
lea r14, [rbx - 0x18]
mov rcx, qword [r14]
test rcx, rcx
je 0x1400a7510
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400a7521
call fcn.140005430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400a79e7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 9], rax
mov dword [rbp - 0x19], 7
lea r9, str._C18E2F7E_933D_4965_B7D1_1EEF228D2AF3
mov rax, rdi
nop dword [rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400a7550
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.140010330
mov rdx, qword [rbp - 9]
lea rbx, [rdx - 0x18]
mov rsi, qword [rbp + 0x27]
add rsi, 0xffffffffffffffe8
cmp rbx, rsi
je 0x1400a75d0
cmp dword [rsi + 0x10], 0
jl 0x1400a75c3
mov rax, qword [rsi]
cmp qword [rbx], rax
jne 0x1400a75c3
mov rcx, rbx
call fcn.140007120
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x1400a75b6
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbp + 0x27], rax
xor r13d, r13d
jmp 0x1400a75d0
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x27]
call fcn.140004e70
mov dword [rbp - 0x19], 3
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1400a75f0
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400a760a
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400a77fa
call fcn.14001ef50
test dword [rax + 4], 0x10000
je 0x1400a781b
mov edx, 0x7b
mov rcx, qword [r15 + 8]
call fcn.1400d4dd4
mov rcx, rax
test rax, rax
jne 0x1400a763b
mov ecx, edi
jmp 0x1400a7642
sub rcx, qword [r15 + 8]
sar rcx, 1
mov rax, qword [r15 + 8]
mov r9d, dword [rax - 0x10]
sub r9d, ecx
mov r8d, ecx
lea rdx, [rbp + 0x17]
lea rcx, [r15 + 8]
call fcn.1400101e0
mov dword [rbp - 0x19], 8
mov qword [rbp - 1], r13
mov rbx, qword [rbp + 0x17]
lea r12, [rbx - 0x18]
mov rcx, qword [r12]
test rcx, rcx
je 0x1400a7687
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400a7698
call fcn.140005430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400a79f2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 1], rax
mov dword [rbp - 0x19], reloc.OLEAUT32.dll_SafeArrayGetElement
mov ecx, dword [rbx - 0x10]
lea rdx, str.GlobalRtk_Gen4BSSNL_
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400a76c3
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, eax
lea rcx, [rbp - 1]
call fcn.140010330
nop
mov qword [rbp + 7], r13
mov rbx, qword [rbp - 1]
lea r14, [rbx - 0x18]
mov rcx, qword [r14]
test rcx, rcx
je 0x1400a7703
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400a7714
call fcn.140005430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x1400a79c6
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 7], rax
mov dword [rbp - 0x19], 0x38
lea r9, str._C18E2F7E_933D_4965_B7D1_1EEF228D2AF3
mov rax, rdi
nop dword [rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400a7740
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140010330
mov rdx, qword [rbp + 7]
lea rbx, [rdx - 0x18]
mov rsi, qword [rbp + 0x27]
add rsi, 0xffffffffffffffe8
cmp rbx, rsi
je 0x1400a77c0
cmp dword [rsi + 0x10], 0
jl 0x1400a77b3
mov rax, qword [rsi]
cmp qword [rbx], rax
jne 0x1400a77b3
mov rcx, rbx
call fcn.140007120
mov r13, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x1400a77a6
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r13 + 0x18]
mov qword [rbp + 0x27], rax
xor r13d, r13d
jmp 0x1400a77c0
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x27]
call fcn.140004e70
mov dword [rbp - 0x19], reloc.OLEAUT32.dll_SafeArrayGetElement
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1400a77e0
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400a77fa
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r12 + 0x10], eax
sub eax, 1
jg 0x1400a7815
mov rcx, qword [r12]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, 1
mov rbx, qword [rbp + 0x27]
mov r9, rbx
mov r8d, 0x240
lea rdx, str.CRtkBssGen5SpkTrackEnroll::CheckSNR
lea rcx, str._s__d_csTmpEndpointId__s
call fcn.140064950
mov r8, rbx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_OpenFileMappingW]
mov r14, rax
test rax, rax
jne 0x1400a786f
mov r8d, 0x248
lea rdx, str.CRtkBssGen5SpkTrackEnroll::CheckSNR
lea rcx, str._s__d_OpenFileMapping_fail
call fcn.140064950
jmp 0x1400a797e
mov qword [rsp + 0x20], 0x20
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x1400a78ba
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov r8d, 0x255
lea rdx, str.CRtkBssGen5SpkTrackEnroll::CheckSNR
lea rcx, str._s__d_MapViewOfFile_fail
call fcn.140064950
jmp 0x1400a797e
call fcn.14001ef50
test dword [rax + 4], 0x2000000
je 0x1400a78d7
mov eax, dword [rsi + 4]
mov dword [r15 + 0x950], eax
mov eax, dword [rsi + 8]
jmp 0x1400a78f2
call fcn.14001ef50
test dword [rax + 4], 0x10000
je 0x1400a78f9
mov eax, dword [rsi + 4]
mov dword [r15 + 0x950], eax
mov eax, dword [rsi + 0xc]
mov dword [r15 + 0x954], eax
movss xmm3, dword [r15 + 0x950]
movss xmm2, dword [r15 + 0x958]
movss xmm1, dword [r15 + 0x954]
movss xmm0, dword [r15 + 0x95c]
comiss xmm3, xmm2
ja 0x1400a7927
comiss xmm0, xmm1
jbe 0x1400a792a
mov r12d, r13d
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
cvtps2pd xmm3, xmm3
mov dword [rsp + 0x38], r12d
movsd qword [rsp + 0x30], xmm0
movsd qword [rsp + 0x28], xmm1
movsd qword [rsp + 0x20], xmm2
movq r9, xmm3
mov r8d, 0x267
lea rdx, str.CRtkBssGen5SpkTrackEnroll::CheckSNR
lea rcx, str._s__d_Noise__f__f__Speech__f__f___bRet___d
call fcn.140064950
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400a7996
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r12d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400ce210
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
int3