Function at 0x140036fa0
Capabilities:
Print debug messages
Read .ini file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x570
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov r13, rcx
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x40], ebp
mov r14d, ebp
mov r15, rbp
lea r12, [rcx + 0x948]
lea r8, [0x140000000]
lea rbx, [0x14012c778]
mov eax, r14d
imul rax, rax, 0x268
lea rcx, [rax + r13 + 0x9c0]
mov qword [r12], rcx
movsxd rax, dword [r13 + 0x528]
imul rax, rax, 0xb
add rax, r15
cmp dword [r8 + rax*4 + 0x18d2d0], 0
je 0x1400374ad
mov qword [rsp + 0x78], rbp
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x84], ebp
mov edi, ebp
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x8c], ebp
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0x94], ebp
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0x9c], ebp
mov dword [rsp + 0xa0], ebp
mov dword [rsp + 0xa4], ebp
mov dword [rsp + 0xa8], 8
mov dword [rsp + 0xac], ebp
mov rdx, qword [r8 + r15*8 + 0x1b3f80]
mov rax, qword [r13 + 0x940]
add rax, 0x27770
je 0x1400370dd
test rdx, rdx
je 0x1400370dd
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x140]
mov r8, rbx
lea rcx, str.DefFormatPage
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r8, [0x140000000]
lea rcx, [rsp + 0x130]
mov rax, qword [r8 + 0x13c890]
mov qword [rcx], rax
movzx eax, word [r8 + 0x13c898]
mov word [rcx + 8], ax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x140]
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
test eax, eax
jne 0x140037131
mov qword [rsp + 0x78], rbp
jmp 0x140037148
cmp eax, 1
jne 0x140037148
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0x78], rax
mov rdi, rbp
nop
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b2
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + rdi*4 + 0x80], eax
add rdi, 1
cmp rdi, 0xa
jl 0x140037150
mov edi, dword [rsp + 0x88]
cmp edi, 0xffffffff
cmove edi, dword [rsp + 0xa0]
mov dword [rsp + 0x88], edi
mov eax, dword [rsp + 0x8c]
cmp eax, 0xffffffff
cmove eax, dword [rsp + 0xa4]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x98]
cmp eax, 0xffffffff
cmove eax, ebp
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x9c]
cmp eax, 0xffffffff
cmove eax, ebp
mov dword [rsp + 0x9c], eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xa8], eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xac], eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xb0], eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xb4], eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400372b9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xb8], eax
jmp 0x1400372b9
mov edi, dword [rsp + 0x88]
mov rax, qword [r13 + 0x940]
mov rcx, qword [rax + 0x19488]
mov qword [rsp + 0x70], rcx
lea eax, [rdi + 0x14]
imul eax, esi
add dword [rsp + 0x80], eax
lea rdx, [rsp + 0x70]
mov rcx, qword [r12]
call fcn.140021450
call fcn.1400cc6e8
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x1400374fa
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rdx, [0x14012c778]
test rdx, 0xffffffffffff0000
jne 0x14003734b
movzx edi, dx
mov ecx, edi
call fcn.1400de4e4
test rax, rax
je 0x14003744a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000b050
mov rbx, qword [rsp + 0x50]
jmp 0x14003744a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400373bd
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14003744a
cmp dword [rdx + 0x10], eax
jge 0x14003738e
cmp dword [rbx - 0xc], eax
jl 0x1400374e4
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x14003744a
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400373a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x14003744a
mov esi, dword [rbx - 0x10]
mov rbp, rdx
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400373f2
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400025c0
mov rbx, qword [rsp + 0x50]
lea rdx, [0x14012c778]
cmp rbp, rsi
ja 0x140037412
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400fa430
jmp 0x14003742a
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
mov r8, rdx
mov rdx, rsi
mov rcx, rbx
call fcn.1400f9cc0
test edi, edi
js 0x1400374ef
cmp edi, dword [rbx - 0xc]
jg 0x1400374ef
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x40]
xor ebp, ebp
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [r12]
call fcn.1400211e0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140037478
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
add esi, 1
mov dword [rsp + 0x40], esi
cmp dword [r13 + 0x528], 0xb
jne 0x1400374b6
mov rax, qword [r13 + 0x940]
cmp dword [rax + 0x266a4], 0
je 0x1400374bf
xor edx, edx
mov rcx, qword [r12]
call fcn.1400dca24
lea rbx, [0x14012c778]
jmp 0x1400374c6
xor edx, edx
call fcn.1400dc9c4
jmp 0x1400374c6
lea rbx, [0x14012c778]
jmp 0x1400374c6
lea rbx, [0x14012c778]
add r14d, 1
add r15, 1
add r12, 8
cmp r14d, 0xb
jae 0x140037505
lea r8, [0x140000000]
jmp 0x140037003
mov ecx, 0x80070057
call fcn.1400025a0
int3
mov ecx, 0x80070057
call fcn.1400025a0
nop
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov esi, ebp
mov dword [rsp + 0x40], ebp
mov r14d, ebp
mov r15, rbp
lea r12, [r13 + 0x9a0]
nop
nop
mov eax, r14d
imul rax, rax, 0x268
lea rdi, [rax + r13 + 0x2438]
mov qword [r12], rdi
movsxd rax, dword [r13 + 0x528]
lea rcx, [r15 + rax*4]
lea r8, [0x140000000]
cmp dword [r8 + rcx*4 + 0x131070], 0
je 0x1400379af
mov qword [rsp + 0xc8], rbp
mov dword [rsp + 0xd0], ebp
mov dword [rsp + 0xd4], ebp
mov edi, ebp
mov dword [rsp + 0xd8], ebp
mov dword [rsp + 0xdc], ebp
mov dword [rsp + 0xe0], ebp
mov dword [rsp + 0xe4], ebp
mov dword [rsp + 0xe8], ebp
mov dword [rsp + 0xec], ebp
mov dword [rsp + 0xf0], ebp
mov dword [rsp + 0xf4], ebp
mov dword [rsp + 0xf8], 8
mov dword [rsp + 0xfc], ebp
mov rdx, qword [r8 + r15*8 + 0x1b3fd8]
mov rax, qword [r13 + 0x940]
add rax, 0x27770
je 0x140037601
test rdx, rdx
je 0x140037601
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x350]
mov r8, rbx
lea rcx, str.DefFormatPage
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r8, [0x140000000]
lea rcx, [rsp + 0x120]
mov rax, qword [r8 + 0x13c890]
mov qword [rcx], rax
movzx eax, word [r8 + 0x13c898]
mov word [rcx + 8], ax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x350]
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
test eax, eax
jne 0x140037658
mov qword [rsp + 0xc8], rbp
jmp 0x140037672
cmp eax, 1
jne 0x140037672
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0xc8], rax
mov rdi, rbp
nop
nop
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e2
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + rdi*4 + 0xd0], eax
add rdi, 1
cmp rdi, 0xa
jl 0x140037680
mov edi, dword [rsp + 0xd8]
cmp edi, 0xffffffff
cmove edi, dword [rsp + 0xf0]
mov dword [rsp + 0xd8], edi
mov eax, dword [rsp + 0xdc]
cmp eax, 0xffffffff
cmove eax, dword [rsp + 0xf4]
mov dword [rsp + 0xdc], eax
mov eax, dword [rsp + 0xe8]
cmp eax, 0xffffffff
cmove eax, ebp
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xec]
cmp eax, 0xffffffff
cmove eax, ebp
mov dword [rsp + 0xec], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xf8], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0xfc], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0x100], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0x104], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x120]
xor ecx, ecx
call fcn.1400fa5e0
test rax, rax
je 0x1400377e9
mov rcx, rax
call fcn.1400fa6e0
mov dword [rsp + 0x108], eax
jmp 0x1400377e9
mov edi, dword [rsp + 0xd8]
mov rax, qword [r13 + 0x940]
mov rcx, qword [rax + 0x19488]
mov qword [rsp + 0xc0], rcx
lea eax, [rdi + 0x14]
imul eax, esi
add dword [rsp + 0xd0], eax
lea rdx, [rsp + 0xc0]
mov rcx, qword [r12]
call fcn.140021450
call fcn.1400cc6e8
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x1400379ed
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rdx, [0x14012c778]
test rdx, 0xffffffffffff0000
jne 0x140037881
movzx edi, dx
mov ecx, edi
call fcn.1400de4e4
test rax, rax
je 0x140037978
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000b050
mov rbx, qword [rsp + 0x48]
jmp 0x140037978
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400378f3
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140037978
cmp dword [rdx + 0x10], eax
jge 0x1400378c4
cmp dword [rbx - 0xc], eax
jl 0x1400379d7
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x140037978
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400378dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x140037978
mov esi, dword [rbx - 0x10]
mov rbp, rdx
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140037928
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400025c0
mov rbx, qword [rsp + 0x48]
lea rdx, [0x14012c778]
cmp rbp, rsi
ja 0x140037948
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1400fa430
jmp 0x140037960
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
mov r8, rdx
mov rdx, rsi
mov rcx, rbx
call fcn.1400f9cc0
test edi, edi
js 0x1400379e2
cmp edi, dword [rbx - 0xc]
jg 0x1400379e2
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov esi, dword [rsp + 0x40]
xor ebp, ebp
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [r12]
call fcn.1400211e0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400379a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.DSOUND.dll_DirectSoundCaptureEnumerateW]
add esi, 1
mov dword [rsp + 0x40], esi
jmp 0x1400379b9
xor edx, edx
mov rcx, rdi
call fcn.1400dc9c4
add r14d, 1
add r15, 1
add r12, 8
cmp r14d, 4
jae 0x1400379f8
lea rbx, [0x14012c778]
jmp 0x140037520
mov ecx, 0x80070057
call fcn.1400025a0
int3
mov ecx, 0x80070057
call fcn.1400025a0
nop
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov rcx, qword [r13 + 0x940]
add rcx, 0xa88
lea rdx, [r13 + 0x734]
call fcn.14008a160
lea rdx, [0x14012c778]
lea rcx, [r13 + 0x3510]
call fcn.1400dc8dc
lea r9, [r13 + 0x3510]
lea r8, str.Dolby_AC3
lea rdx, str.DefFormatPage
mov rcx, qword [r13 + 0x940]
call fcn.140026f50
mov edx, dword [r13 + 0x528]
cmp edx, 2
je 0x140037a71
cmp edx, 4
je 0x140037a71
cmp edx, 3
je 0x140037a71
cmp edx, 5
je 0x140037a71
xor edx, edx
lea rcx, [r13 + 0x3510]
call fcn.1400dc9c4
jmp 0x140037a7f
xor edx, edx
lea rcx, [r13 + 0x3510]
call fcn.1400dc9c4
lea rdx, [0x14012c778]
lea rcx, [r13 + 0x32a8]
call fcn.1400dc8dc
lea r9, [r13 + 0x32a8]
lea r8, str.DTS_Interactive
lea rdx, str.DefFormatPage
mov rcx, qword [r13 + 0x940]
call fcn.140026f50
mov r11d, dword [r13 + 0x528]
cmp r11d, 2
je 0x140037ad9
cmp r11d, 4
je 0x140037ad9
xor edx, edx
lea rcx, [r13 + 0x32a8]
call fcn.1400dc9c4
jmp 0x140037bda
mov rcx, qword [r13 + 0x940]
add rcx, 0xa88
lea rdx, [r13 + 0x734]
call fcn.14008a160
mov rdx, qword [r13 + 0x940]
mov rcx, qword [rdx + 0x110]
test rcx, rcx
je 0x140037bb2
mov dword [rsp + 0x68], ebp
add rcx, 4
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140037b4d
lea rcx, str.GetInstalledSoundeffects:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140037bb2
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x110]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1d6070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140037ba1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.GetInstalledSoundeffects:_DeviceIoControl:_IOCTL_HDAUD_GET_VIA_DRVSUPPORT3RDPRTEFTS_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140037bb2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x68]
mov dword [rsp + 0x6c], edx
test byte [rsp + 0x6c], 2
je 0x140037bcc
mov edx, 1
lea rcx, [r13 + 0x32a8]
call fcn.1400dc9c4
jmp 0x140037bda
xor edx, edx
lea rcx, [r13 + 0x32a8]
call fcn.1400dc9c4
lea rdx, [0x14012c778]
lea rcx, [r13 + 0x3778]
call fcn.1400dc8dc
lea r9, [r13 + 0x3778]
lea r8, str.AutoSelectSampleRate
lea rdx, str.DefFormatPage
mov rcx, qword [r13 + 0x940]
call fcn.140026f50
cmp dword [r13 + 0x528], 0xb
je 0x140037c28
xor edx, edx
lea rcx, [r13 + 0x3778]
call fcn.1400dc9c4
jmp 0x140037c66
mov rax, qword [r13 + 0x940]
mov ecx, dword [rax + 0x266a4]
test ecx, ecx
jne 0x140037c42
mov dword [r13 + 0x39d8], ebp
jmp 0x140037c4e
cmp ecx, 1
jne 0x140037c4e
mov dword [r13 + 0x39d8], ecx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13 + 0x37b8]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov dword [r13 + 0x3ac0], 1
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400f9790
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret