Function at 0x4182ed
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x150
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
mov rcx, qword [rax]
cmp rcx, 0
je 0x41831a
jmp 0x41831f
jmp 0x418d27
mov rax, qword [rbp + 0x20]
cmp rax, 0
je 0x41833e
mov eax, dword [rbp + 0x18]
cmp eax, 0
je 0x41833e
jmp 0x41847a
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x4183cc
mov rax, qword [rbp + 0x10]
add rax, 0x4f8
mov ecx, 1
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00442ae3
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
mov ecx, 0xffffffff
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_WaitForSingleObject
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_CloseHandle
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
movabs rcx, 0xffffffffffffffff
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
cmp rcx, 0
je 0x418433
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e8
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 8], rax
mov rcx, r10
mov r11, qword [rbp - 8]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, 0
mov dword [rax], ecx
mov rax, qword [rbp + 0x10]
add rax, 0x508
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x510
movabs rcx, 0
mov qword [rax], rcx
jmp 0x418d27
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, dword [rax]
mov eax, dword [rbp + 0x18]
cmp ecx, eax
je 0x418d03
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, dword [rbp + 0x18]
mov dword [rax], ecx
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
cmp rcx, 0
je 0x418509
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e8
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0x10], rax
mov rcx, r10
mov r11, qword [rbp - 0x10]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
movabs rcx, 0
mov qword [rax], rcx
mov eax, dword [rbp + 0x18]
cmp eax, 0
jle 0x418d03
mov eax, 2
mov dword [rbp - 0x14], eax
mov eax, 0xac44
mov dword [rbp - 0x18], eax
mov eax, 0x10
mov dword [rbp - 0x1c], eax
mov eax, 1
mov word [rbp - 0x1e], ax
movabs rax, 0x14
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x34]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
movzx eax, word [rbp - 0x1e]
mov word [rbp - 0x34], ax
mov eax, dword [rbp - 0x14]
and eax, 0xffff
mov word [rbp - 0x32], ax
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x30], eax
mov eax, dword [rbp - 0x14]
mov ecx, dword [rbp - 0x1c]
imul eax, ecx
mov ecx, 8
cdq
idiv ecx
and eax, 0xffff
mov word [rbp - 0x28], ax
mov eax, dword [rbp - 0x18]
movzx ecx, word [rbp - 0x28]
imul eax, ecx
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x1c]
and eax, 0xffff
mov word [rbp - 0x26], ax
mov eax, 0
mov word [rbp - 0x24], ax
movabs rax, 0x18
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x18
mov dword [rbp - 0x50], eax
mov eax, 0x18180
mov dword [rbp - 0x4c], eax
mov eax, dword [rbp - 0x1c]
mov ecx, 8
cdq
idiv ecx
mov ecx, dword [rbp - 0x14]
imul ecx, eax
mov eax, dword [rbp + 0x18]
imul ecx, eax
mov dword [rbp - 0x54], ecx
mov eax, dword [rbp - 0x54]
mov dword [rbp - 0x48], eax
lea rax, [rbp - 0x34]
mov qword [rbp - 0x40], rax
movabs rax, 0
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x18
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e0
movabs rdx, 0
mov r9, rdx
lea rdx, [rbp - 0x60]
mov r8, rdx
lea rdx, [rbp - 0x50]
mov r11, rdx
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0x70], rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x70]
mov r11, qword [r11]
call r11
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
cmp eax, 0
jl 0x41869a
mov rax, qword [rbp - 0x60]
cmp rax, 0
je 0x41869a
jmp 0x418754
lea rax, [0x00573f91]
mov r8, rax
mov eax, 1
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00415b5a
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e0
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0x78], rax
mov rcx, r10
mov r11, qword [rbp - 0x78]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, 0
mov dword [rax], ecx
mov rax, qword [rbp + 0x10]
add rax, 0x508
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x510
movabs rcx, 0
mov qword [rax], rcx
jmp 0x418d27
mov eax, 0x6825a449
mov dword [rbp - 0x88], eax
mov eax, 0x7524
mov word [rbp - 0x84], ax
mov eax, 0x4d82
mov word [rbp - 0x82], ax
mov eax, 0x92
mov byte [rbp - 0x80], al
mov eax, 0xf
mov byte [rbp - 0x7f], al
mov eax, 0x50
mov byte [rbp - 0x7e], al
mov eax, 0xe3
mov byte [rbp - 0x7d], al
mov eax, 0x6a
mov byte [rbp - 0x7c], al
mov eax, 0xb3
mov byte [rbp - 0x7b], al
mov eax, 0xab
mov byte [rbp - 0x7a], al
mov eax, 0x1e
mov byte [rbp - 0x79], al
lea rax, [rbp - 0x88]
mov qword [rbp - 0x90], rax
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov r8, rax
mov rax, qword [rbp - 0x90]
mov r11, rax
mov rax, qword [rbp - 0x60]
mov r10, rax
mov qword [rbp - 0x98], rcx
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x98]
mov r11, qword [r11]
call r11
mov dword [rbp - 0x64], eax
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
add rcx, 0x10
mov rax, qword [rbp - 0x60]
mov r10, rax
mov qword [rbp - 0xa0], rcx
mov rcx, r10
mov r11, qword [rbp - 0xa0]
mov r11, qword [r11]
call r11
mov eax, dword [rbp - 0x64]
cmp eax, 0
jl 0x41885a
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
cmp rcx, 0
je 0x41885a
jmp 0x41891a
lea rax, [0x00573faf]
mov r8, rax
mov eax, 1
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00415b5a
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e0
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0xa8], rax
mov rcx, r10
mov r11, qword [rbp - 0xa8]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, 0
mov dword [rax], ecx
mov rax, qword [rbp + 0x10]
add rax, 0x508
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x510
movabs rcx, 0
mov qword [rax], rcx
jmp 0x418d27
movabs rax, 0
mov qword [rbp - 0xb0], rax
mov eax, 0xb0210783
mov dword [rbp - 0xc0], eax
mov eax, 0x89cd
mov word [rbp - 0xbc], ax
mov eax, 0x11d0
mov word [rbp - 0xba], ax
mov eax, 0xaf
mov byte [rbp - 0xb8], al
mov eax, 8
mov byte [rbp - 0xb7], al
mov eax, 0
mov byte [rbp - 0xb6], al
mov eax, 0xa0
mov byte [rbp - 0xb5], al
mov eax, 0xc9
mov byte [rbp - 0xb4], al
mov eax, 0x25
mov byte [rbp - 0xb3], al
mov eax, 0xcd
mov byte [rbp - 0xb2], al
mov eax, 0x16
mov byte [rbp - 0xb1], al
lea rax, [rbp - 0xc0]
mov qword [rbp - 0xc8], rax
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e8
lea rdx, [rbp - 0xb0]
mov r8, rdx
mov rdx, qword [rbp - 0xc8]
mov r11, rdx
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0xd0], rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0xd0]
mov r11, qword [r11]
call r11
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
cmp eax, 0
jl 0x418a29
mov rax, qword [rbp - 0xb0]
cmp rax, 0
je 0x418a29
jmp 0x418b3e
lea rax, str.Failed_to_create_sound_buffer
mov r8, rax
mov eax, 1
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00415b5a
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e8
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0xd8], rax
mov rcx, r10
mov r11, qword [rbp - 0xd8]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x10
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e0
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0xe0], rax
mov rcx, r10
mov r11, qword [rbp - 0xe0]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4e0
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x4fc
mov ecx, 0
mov dword [rax], ecx
mov rax, qword [rbp + 0x10]
add rax, 0x508
movabs rcx, 0
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x510
movabs rcx, 0
mov qword [rax], rcx
jmp 0x418d27
mov eax, 0
mov dword [rbp - 0x100], eax
mov rax, qword [rbp + 0x10]
add rax, 0x4c8
mov rcx, qword [rax]
mov qword [rbp - 0xf8], rcx
mov eax, dword [rbp - 0x54]
mov ecx, 2
cdq
idiv ecx
mov dword [rbp - 0xf0], eax
mov rax, qword [rbp + 0x10]
add rax, 0x4c8
add rax, 8
mov rcx, qword [rax]
mov qword [rbp - 0xe8], rcx
mov rax, qword [rbp - 0xb0]
mov rcx, qword [rax]
add rcx, 0x18
lea rax, [rbp - 0x100]
mov r8, rax
mov eax, 2
mov r11, rax
mov rax, qword [rbp - 0xb0]
mov r10, rax
mov qword [rbp - 0x108], rcx
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x108]
mov r11, qword [r11]
call r11
mov rax, qword [rbp - 0xb0]
mov rcx, qword [rax]
add rcx, 0x10
mov rax, qword [rbp - 0xb0]
mov r10, rax
mov qword [rbp - 0x110], rcx
mov rcx, r10
mov r11, qword [rbp - 0x110]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x4f8
mov ecx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00442ae3
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
movabs rcx, 0
mov qword [rsp + 0x28], rcx
mov ecx, 0
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
mov r9, rcx
lea rcx, [0x0041813f]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
movabs rcx, 0
mov r10, rcx
mov qword [rbp - 0x118], rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_CreateThread
mov rcx, qword [rbp - 0x118]
mov qword [rcx], rax
mov rax, qword [rbp + 0x10]
add rax, 0x4f0
mov ecx, 2
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_SetThreadPriority
mov rax, qword [rbp + 0x10]
add rax, 0x4e8
mov rcx, qword [rax]
mov rax, qword [rcx]
add rax, 0x60
mov rcx, qword [rbp + 0x10]
add rcx, 0x4e8
mov edx, 1
mov r9, rdx
mov edx, 0
mov r8, rdx
mov edx, 0
mov r11, rdx
mov rdx, qword [rcx]
mov r10, rdx
mov qword [rbp - 0x120], rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x120]
mov r11, qword [r11]
call r11
mov rax, qword [rbp + 0x10]
add rax, 0x508
mov rcx, qword [rbp + 0x20]
mov qword [rax], rcx
mov rax, qword [rbp + 0x10]
add rax, 0x510
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
leave
ret