Function at 0x416df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18c
mov eax, dword [0x437888]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov dword [0x43aca4], 0
xor eax, eax
mov dword [0x43ab60], 0
mov dword [0x43ac70], 0x20000000
jmp 0x416e30
mov byte [eax + 0x43a6d0], 0
mov byte [eax + 0x43a4b0], 0
cmp eax, 0x100
jae 0x4171ae
mov byte [esp + eax + 0x90], 0
inc eax
cmp eax, 0x100
jb 0x416e30
call dword [sym.imp.winmm.dll_waveInGetNumDevs]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x416e85
mov eax, 1
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d486
add esp, 0x18c
ret
call dword [sym.imp.winmm.dll_waveOutGetNumDevs]
mov esi, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov ebp, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ebp
push eax
lea eax, [esp + 0x18]
mov edi, 1
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x43473c
mov ebx, edi
push 0x80000001
mov dword [esp + 0x3c], ebx
call esi
test eax, eax
je 0x416ef4
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x43473c
push 0x80000002
call esi
test eax, eax
jne 0x416fb7
cmp dword [esp + 0x28], 2
jne 0x416f5c
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x14], 0xff
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x434768
push dword [esp + 0x28]
call esi
neg eax
mov dword [esp + 0x10], 0xff
sbb eax, eax
and ebx, eax
lea eax, [esp + 0x10]
push eax
push 0x43a6d0
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ebx
push eax
push 0
push 0x434774
push dword [esp + 0x28]
call esi
neg eax
sbb eax, eax
and edi, eax
push dword [esp + 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
jne 0x416fb7
xor esi, esi
cmp dword [esp + 0x24], esi
jbe 0x416fb7
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.winmm.dll_waveInGetDevCapsA]
lea esp, [esp]
push 0x30
lea eax, [esp + 0x30]
push eax
push edi
call ebx
lea eax, [esp + 0x34]
push 0x43a6d0
push eax
call fcn.0041d556
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
inc edi
cmp edi, ebp
jb 0x416f80
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test esi, esi
jne 0x416fdd
push 0x30
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.winmm.dll_waveInGetDevCapsA]
lea eax, [esp + 0x34]
push eax
push 0xff
push 0x43a6d0
call fcn.0041d64e
add esp, 0xc
test ebx, ebx
je 0x416ff2
push 0x34
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.winmm.dll_waveOutGetDevCapsA]
jmp 0x41703d
mov ebx, dword [sym.imp.winmm.dll_waveOutGetDevCapsA]
xor esi, esi
xor edi, edi
test ebp, ebp
je 0x417032
push 0x34
lea eax, [esp + 0x60]
push eax
push edi
call ebx
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041d556
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
inc edi
cmp edi, ebp
jb 0x417000
test esi, esi
jne 0x417057
push 0x34
lea eax, [esp + 0x60]
push eax
push 0
call ebx
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x94]
push 0xff
push eax
call fcn.0041d64e
add esp, 0xc
lea eax, [esp + 0x90]
or esi, 0xffffffff
push eax
push 0xff
push 0x43a4b0
mov dword [esp + 0x24], esi
call fcn.0041d64e
push 7
lea eax, [esp + 0xa0]
xor ebx, ebx
push 0x43477c
push eax
call fcn.0041d706
mov ebp, dword [esp + 0x3c]
add esp, 0x18
test eax, eax
mov eax, 1
cmove ebx, eax
xor edi, edi
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x4171a7
lea ebx, [ebx]
push 0x30
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.winmm.dll_waveInGetDevCapsA]
lea eax, [esp + 0x34]
push 0x43a6d0
push eax
call fcn.0041d556
mov ecx, dword [0x43ab60]
lea edx, [esp + 0x98]
add esp, 8
test eax, eax
cmove ecx, edi
xor esi, esi
mov dword [0x43ab60], ecx
xor ecx, ecx
test ebx, ebx
lea ebx, [edx + 1]
je 0x417150
mov al, byte [edx]
inc edx
test al, al
jne 0x4170f3
sub edx, ebx
je 0x417113
mov edi, edi
mov al, byte [esp + ecx + 0x90]
cmp al, byte [esp + ecx + 0x34]
jne 0x417113
inc ecx
inc esi
cmp ecx, edx
jb 0x417100
push 0xa
lea ebx, [esp + 0x38]
add ebx, ecx
push 0x434784
push ebx
call fcn.0041d706
add esp, 0xc
test eax, eax
jne 0x417132
add esi, 0xa
jmp 0x417173
push 7
push 0x434790
push ebx
call fcn.0041d706
add esp, 0xc
test eax, eax
jne 0x417173
add esi, 7
jmp 0x417173
mov al, byte [edx]
inc edx
test al, al
jne 0x417150
sub edx, ebx
je 0x417173
jmp 0x417160
mov al, byte [esp + ecx + 0x90]
cmp al, byte [esp + ecx + 0x34]
jne 0x417173
inc ecx
inc esi
cmp ecx, edx
jb 0x417160
cmp esi, dword [esp + 0x18]
jle 0x41719a
lea eax, [esp + 0x34]
mov dword [0x43aca4], edi
push eax
push 0xff
push 0x43a4b0
mov dword [esp + 0x24], esi
call fcn.0041d64e
add esp, 0xc
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, ebp
jb 0x4170b0
xor eax, eax
jmp 0x416e6c
call fcn.0041dbcb
int3