Function at 0x1400a2ac0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rcx + 0x1b0], 0
mov rdi, rcx
jne 0x1400a2317
lea r8, str.MicWizard.cpp
mov edx, 0x14d
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor eax, eax
jmp 0x1400a26be
xor eax, eax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x98], rsi
call fcn.1400a26e0
mov ecx, 0xc8
call fcn.1400f8110
xor esi, esi
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x1400a2379
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 0x1400a237c
mov rbx, rsi
mov qword [rdi + 0x350], rbx
test rbx, rbx
jne 0x1400a23a7
lea r8, str.MicWizard.cpp
mov edx, 0x157
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
xor eax, eax
jmp 0x1400a26ae
mov rcx, qword [rdi + 0x378]
xor edx, edx
mov qword [rsp + 0xc0], rbp
mov r8d, 0x11002
mov qword [rsp + 0x90], r14
lea rbp, [rdi + 0x358]
mov qword [rbx + 0xa0], 2
call qword [sym.imp.WINMM.dll_mmioOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400a267c
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 0x1400a2670
mov dword [rbx + 0x10], 0x20746d66
cmp word [rbp], 1
jne 0x1400a242d
mov eax, 0x10
jmp 0x1400a2434
movzx eax, word [rbp + 0x10]
add eax, 0x12
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
xor r8d, r8d
mov dword [rbx + 0x14], eax
call qword [sym.imp.WINMM.dll_mmioCreateChunk]
test eax, eax
jne 0x1400a2670
cmp word [rbp], 1
mov rdx, rbp
mov rcx, qword [rbx + 8]
jne 0x1400a246d
lea r8d, [rax + 0x10]
call qword [sym.imp.WINMM.dll_mmioWrite]
cmp eax, 0x10
jmp 0x1400a2489
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 0x1400a2670
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x1400a2670
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 0x1400a2670
mov rcx, qword [rbx + 8]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINMM.dll_mmioWrite]
cmp eax, 4
jne 0x1400a2670
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x1400a2670
mov rcx, rbx
call fcn.1400f6470
test eax, eax
js 0x1400a2681
mov eax, dword [rdi + 0x360]
lea r8, [rdi + 0x1b8]
mov rcx, qword [rdi + 0x1b0]
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
jns 0x1400a2555
mov edx, 0x161
jmp 0x1400a2686
lea rbx, [rdi + 0x2c8]
mov ebp, 0x11
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a256f
call qword [sym.imp.KERNEL32.dll_ResetEvent]
add rbx, 8
sub rbp, 1
jne 0x1400a2561
mov rcx, qword [rdi + 0x1b8]
lea r8, [rdi + 0x1c0]
lea rdx, [0x1403468e0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jns 0x1400a25a1
mov edx, 0x16c
jmp 0x1400a2686
mov rcx, qword [rdi + 0x1c0]
lea r8, [rdi + 0x1c8]
mov edx, 0x10
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jns 0x1400a25c8
mov edx, 0x170
jmp 0x1400a2686
mov qword [rsp + 0x28], rsi
lea rcx, [0x1400a2850]
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor r8d, r8d
mov rdx, rdi
call fcn.14010fba8
mov rbp, rax
test rax, rax
jne 0x1400a260f
lea r8, str.MicWizard.cpp
mov edx, 0x174
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x1400a269c
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 + 0x370]
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 + 0x1b8]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x1400a2669
mov edx, 0x17f
jmp 0x1400a2686
mov eax, 1
jmp 0x1400a269e
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov eax, 0x80004005
mov edx, 0x15a
mov r9d, eax
lea r8, str.MicWizard.cpp
lea rcx, str._VCpl__RETURN_FALSE_ON_ERROR:_Line___d__File___s__hr__0x_X_n
call fcn.140055180
xor eax, eax
mov rbp, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14029d880
add rsp, 0xa0
pop rdi
ret
push rbx
sub rsp, 0x40
add edx, 0xdefdfdf0
mov rbx, rcx
cmp edx, 0x14
ja case.0x1400a2ae9.553779730
lea rcx, [0x140000000]
mov edx, dword [rcx + rdx*4 + 0xa2d10]
add rdx, rcx
jmp rdx
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400a2b0a
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rbx + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov r8d, dword [rbx + 0xc0]
xor r9d, r9d
mov rcx, qword [rbx - 0xa8]
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [rbx + 0xc0]
xor r9d, r9d
mov rcx, qword [rbx - 0xa8]
mov edx, 0x3ea
lea r8d, [rax + rax*4]
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400a2b62
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbx - 0xa8]
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx - 0xa8]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_KillTimer]
mov eax, 1
add rsp, 0x40
pop rbx
ret
add rbx, 0xffffffffffffff18
mov qword [rsp + 0x50], rdi
cmp qword [rbx + 0x178], 0
jne 0x1400a2bc4
lea r8, str.MicWizard.cpp
mov edx, 0x134
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x1400a2c76
lea rdx, [0x140345b70]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400a2bd0
mov r8d, eax
lea rcx, [rbx + 0x180]
call fcn.1400105e0
mov rcx, qword [rbx + 0x390]
test rcx, rcx
jne 0x1400a2c0f
lea r8, str.MicWizard.cpp
mov edx, 0x13a
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x1400a2c76
mov rax, qword [rcx]
lea rdx, [rbx + 0x180]
call qword [rax + 0x78]
test eax, eax
jne 0x1400a2c3a
lea r8, str.MicWizard.cpp
mov edx, 0x13e
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
jmp 0x1400a2c76
movups xmm0, xmmword [str._alsC]
mov rcx, qword [rbx + 0x180]
lea rax, [rbx + 0x35c]
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x1b]
call fcn.14005e2c0
test eax, eax
jne 0x1400a2c80
mov dword [rbx + 0x35c], 0x3e80
mov rcx, rbx
call fcn.1400a2070
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
lea rcx, [rbx - 0xe8]
call fcn.1400a26e0
mov eax, 1
add rsp, 0x40
pop rbx
ret
lea rcx, [rbx - 0xe8]
add rsp, 0x40
pop rbx
jmp 0x1400a22d0
xor r9d, r9d
lea r8, str.MicCalExecuted
lea rdx, str.General
lea rcx, [0x140400ce0]
call fcn.1401076a0
test eax, eax
jne 0x1400a2cfa
lea r9d, [rax + 1]
lea r8, str.MicCalExecuted
lea rdx, str.General
lea rcx, [0x140400ce0]
call fcn.140107c34
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret