Function at 0x1400d2170
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rcx + 0x650], 0
mov rdi, rcx
je 0x1400d2489
xor eax, eax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
call fcn.1400d24c0
mov ecx, 0xc8
call fcn.140153a34
xor esi, esi
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x1400d21f6
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0xc0], rsi
mov dword [rax + 0x38], esi
mov dword [rax + 0xa4], esi
jmp 0x1400d21f9
mov rbx, rsi
mov qword [rdi + 0x7f0], rbx
test rbx, rbx
je 0x1400d2489
mov rcx, qword [rdi + 0x818]
lea rbp, [rdi + 0x7f8]
xor edx, edx
mov qword [rbx + 0xa0], 2
mov r8d, 0x11002
call qword [sym.imp.WINMM.dll_mmioOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400d2489
lea rdx, [rbx + 0x24]
mov dword [rsp + 0x40], 0xffffffff
mov r8d, 0x20
mov dword [rbx + 0x2c], 0x45564157
mov rcx, rax
mov dword [rbx + 0x28], esi
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
test eax, eax
jne 0x1400d247d
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
xor r8d, r8d
mov dword [rbx + 0x10], 0x20746d66
mov dword [rbx + 0x14], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
test eax, eax
jne 0x1400d247d
cmp word [rbp], 1
mov rdx, rbp
mov rcx, qword [rbx + 8]
jne 0x1400d22ae
lea r8d, [rax + 0x10]
call qword [sym.imp.WINMM.dll_mmioWrite]
cmp eax, 0x10
jmp 0x1400d22ca
movzx r8d, word [rbp + 0x10]
add r8d, 0x12
call qword [sym.imp.WINMM.dll_mmioWrite]
mov ecx, eax
movzx eax, word [rbp + 0x10]
add rax, 0x12
cmp rcx, rax
jne 0x1400d247d
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x1400d247d
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x70], 0x74636166
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
test eax, eax
jne 0x1400d247d
mov rcx, qword [rbx + 8]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINMM.dll_mmioWrite]
cmp eax, 4
jne 0x1400d247d
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x1400d247d
mov rcx, rbx
call fcn.1401521e0
test eax, eax
js 0x1400d2489
mov eax, dword [rdi + 0x800]
lea r8, [rdi + 0x658]
mov rcx, qword [rdi + 0x650]
lea rdx, [rsp + 0x48]
shl eax, 3
xor r9d, r9d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 0x28
mov qword [rsp + 0x58], rbp
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400d2489
lea rbx, [rdi + 0x768]
mov ebp, 0x11
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d23ae
call qword [sym.imp.KERNEL32.dll_ResetEvent]
add rbx, 8
sub rbp, 1
jne 0x1400d23a0
mov rcx, qword [rdi + 0x658]
lea r8, [rdi + 0x660]
lea rdx, [0x1403921c8]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x1400d2489
mov rcx, qword [rdi + 0x660]
lea r8, [rdi + 0x668]
lea edx, [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400d2489
mov qword [rsp + 0x28], rsi
lea rcx, [0x1400d28b0]
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor r8d, r8d
mov rdx, rdi
call fcn.140164718
mov rbp, rax
test rax, rax
je 0x1400d2489
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
lea r9, [rdi + 0x810]
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rdi + 0x658]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
js 0x1400d2489
mov eax, 1
jmp 0x1400d248b
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1402ecc20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret