Function at 0x408420
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478326
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
push 0x206
lea edx, [esp + 0x9a]
push ebx
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
mov word [esp + 0xa0], bx
call fcn.00464db0
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xbc]
push eax
push ecx
mov dword [esp + 0x70], 0x104
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x4084eb
mov dword [esi + 4], edi
cmp edi, 5
jne 0x4084f7
mov al, 1
jmp 0x408775
cmp edi, ebx
je 0x408505
mov dword [esi + 4], edi
xor al, al
jmp 0x408775
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 1
add eax, 1
xor ecx, ecx
mov dword [esp + 0x24], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00461d22
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x3c], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00461d22
add esp, 4
cmp dword [esp + 0x14], ebx
mov esi, eax
mov dword [esp + 0x18], esi
je 0x408635
mov esi, dword [esp + 0x2c]
call fcn.00405070
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.004087a0
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jbe 0x408631
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x40861c
mov eax, esi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4085d0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x5c]
call fcn.00401890
mov ecx, esi
mov dword [esp + 0x2b0], ebx
mov esi, dword [esp + 0x2c]
push ecx
call fcn.004088f0
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x40861c
mov edx, dword [esp + 0x58]
push edx
call fcn.0046207a
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jb 0x408586
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x20], ebx
je 0x40874d
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x10], eax
jbe 0x408654
call fcn.004625df
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x2c], eax
jbe 0x408669
call fcn.004625df
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push ecx
push edi
push eax
push edi
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.004050b0
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.004087a0
xor edi, edi
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
jbe 0x40874d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
push esi
mov word [esi], bx
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, ebx
jne 0x408738
mov eax, esi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4086e1
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x7c]
call fcn.00401890
mov eax, esi
mov esi, dword [esp + 0x34]
push eax
mov dword [esp + 0x2b4], 1
call fcn.004088f0
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x8c], 8
jb 0x408734
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0046207a
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jb 0x408698
mov edx, dword [esp + 0x38]
push edx
call fcn.00462147
add esp, 4
push esi
call fcn.00462147
add esp, 4
cmp edi, ebx
je 0x40876e
mov eax, dword [esp + 0x28]
mov dword [eax + 4], edi
xor eax, eax
cmp edi, ebx
sete al
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.00461f6b
mov esp, ebp
pop ebp
ret 4