Function at 0x418160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xb18
mov eax, dword [0x4bfbe4]
push ebx
push ebp
mov dword [esp + 0xb1c], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareWanMP3Settings_
push SysReAllocString
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4183e3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x51c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.Module
push ecx
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], 0x601
call ebx
test eax, eax
jne 0x41824c
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x45ebe8
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], pe_nt_image_headers32
call ebx
test eax, eax
jne 0x41824c
lea eax, [esp + 0x418]
push eax
call fcn.00429623
fcomp qword [0x45db40]
add esp, 4
fnstsw ax
test ah, 5
jnp 0x41824c
mov cl, byte [esp + 0x518]
push esi
push edi
mov byte [ebp + 0x3b9], cl
lea edi, [ebp + 0x3ba]
mov ecx, 0x180
lea esi, [esp + 0x521]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x418253
mov ecx, ebp
call fcn.00416570
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x51c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Current
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], pe_nt_image_headers32
call ebx
test eax, eax
jne 0x4183d8
mov bl, byte [esp + 0x518]
cmp bl, 0x64
jae 0x4183d8
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x220]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x324]
movzx ecx, bl
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00415db0
test al, al
je 0x4183d8
lea eax, [esp + 0x318]
mov edx, eax
mov ecx, ebp
sub ecx, edx
mov byte [ebp + 0x1b4], bl
lea edx, [ecx + 0x9bb]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4182f0
lea eax, [esp + 0x218]
mov edx, eax
mov ecx, ebp
sub ecx, edx
lea edx, [ecx + 0x9e3]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418310
mov al, byte [esp + 0x118]
mov dl, byte [esp + 0x11a]
mov cl, al
and cl, 1
and al, 6
mov byte [ebp + 0x1b6], al
mov al, byte [esp + 0x11b]
mov byte [ebp + 0x1b8], al
lea eax, [esp + 0x18]
mov byte [ebp + 0x1b7], dl
mov byte [ebp + 0x1b5], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418355
sub eax, edx
mov dword [esp + 0x14], eax
je 0x4183a2
lea eax, [esp + 0x18]
mov edx, eax
mov ecx, ebp
sub ecx, edx
lea edx, [ecx + 0x2b9]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418374
mov al, byte [ebp + 0x1b5]
test al, al
je 0x4183a2
lea eax, [esp + 0x18]
mov edx, eax
mov ecx, ebp
sub ecx, edx
lea edx, [ecx + 0x1b9]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418398
mov ecx, dword [esp + 8]
mov al, byte [esp + 0x119]
push ecx
mov byte [ebp + 0x9ba], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.00416df0
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xb14]
call fcn.0042825d
add esp, 0xb18
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.00416df0
mov ecx, dword [esp + 0xb1c]
pop ebp
xor al, al
pop ebx
call fcn.0042825d
add esp, 0xb18
ret