Function at 0x405bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x218
cmp al, 1
push ebp
push esi
push edi
jne 0x405e06
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.Software_aiasgenmukan
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d19
mov ecx, 0x41
lea edi, [esp + 0x120]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.INSTALL_PATH
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
call ebp
test eax, eax
je 0x405c9d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, 0x43a478
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x43a124
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x218
ret
mov ecx, 0x41
xor eax, eax
mov edi, 0x910ff0
rep stosd dword es:[edi], eax
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 4
mov edx, ecx
mov esi, edi
mov edi, 0x910ff0
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.INSTALL_TYPE
push eax
call ebp
test eax, eax
je 0x405d6a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, 0x43a478
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x43a124
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x218
ret
mov ecx, 0x41
xor eax, eax
mov edi, 0x935e64
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405dd5
mov ecx, 0x41
xor eax, eax
mov edi, 0x935e64
rep stosd dword es:[edi], eax
mov edi, 0x91058c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x935e64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43a464
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x935e64
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
jmp 0x405e6c
mov edi, 0x910ff0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x935e64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov ecx, 0x41
xor eax, eax
mov edi, 0x910ff0
push 0x104
push 0x910ff0
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x910ff0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [ecx + 0x910ff0]
cmp byte [eax], 0x5c
je 0x405e47
mov byte [eax], 0
dec eax
jmp 0x405e3c
mov ecx, 0x41
xor eax, eax
mov edi, 0x935e64
rep stosd dword es:[edi], eax
mov edi, 0x910ff0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x935e64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x218
ret