Function at 0x412970
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x468682
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x47e378]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e378]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d8]
mov ecx, dword [esp + 0x1dc]
lea edx, [esp + 0x18]
push edx
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetServicesialmDevice0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x2b], bl
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412c6e
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push 0x46caf4
push eax
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412c5d
mov ebp, 0xf
lea eax, [esp + 0xc0]
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x412a50
sub eax, edx
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0xac]
call fcn.00401860
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00401780
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
push 1
push ebx
push 0x46caf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1dc], 3
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401350
mov esi, eax
push esi
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00401bd0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x1dc], 4
call fcn.00401780
mov edi, 0x10
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x1d0], 3
jb 0x412b29
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0045389c
add esp, 4
cmp dword [esp + 0xa0], edi
mov eax, dword [esp + 0x8c]
jae 0x412b40
lea eax, [esp + 0x8c]
lea edx, [esp + 0x20]
push edx
push 0x46ca74
push eax
call fcn.00454983
mov eax, dword [esp + 0x70]
add esp, 0xc
push eax
add esi, 1
push esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401bd0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x1dc], 5
call fcn.00401780
cmp dword [esp + 0x4c], edi
jb 0x412b92
mov edx, dword [esp + 0x38]
push edx
call fcn.0045389c
add esp, 4
cmp dword [esp + 0x84], edi
mov eax, dword [esp + 0x70]
jae 0x412ba3
lea eax, [esp + 0x70]
lea ecx, [esp + 0x1c]
push ecx
push 0x46ca74
push eax
call fcn.00454983
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x84], edi
mov dword [edx], ecx
mov byte [esp + 0x17], 1
jb 0x412be5
mov eax, dword [esp + 0x70]
push eax
call fcn.0045389c
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x412c10
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0045389c
add esp, 4
cmp dword [esp + 0x68], edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jb 0x412c38
mov edx, dword [esp + 0x54]
push edx
call fcn.0045389c
add esp, 4
cmp dword [esp + 0xbc], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x412c5d
mov eax, dword [esp + 0xa8]
push eax
call fcn.0045389c
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
jmp 0x412c70
mov al, bl
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00454162
add esp, 0x1c0
ret