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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x533be4
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5895c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x5895c0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, 0x104
lea esi, [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ebx
call fcn.004074b2
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
jae 0x404e77
lea eax, [esp + 0x58]
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
push eax
push dword [esp + 0x34]
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x38], eax
cmp eax, ebx
jne 0x4050a4
cmp dword [esp + 0x6c], 8
mov edi, dword [esp + 0x58]
mov byte [esp + 0x17], bl
jae 0x404eb2
lea edi, [esp + 0x58]
call fcn.00408c82
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x404ec6
lea eax, [esp + 0x58]
lea ecx, [esp + 0x90]
call fcn.00403140
mov byte [esp + 0xd8], 2
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x90]
add esi, 0x40
push eax
lea edi, [esp + 0x58]
mov dword [esp + 0x34], esi
call fcn.00407686
mov edi, dword [eax]
mov byte [esp + 0xd8], 1
lea esi, [esp + 0x90]
call fcn.00402b60
mov eax, dword [esp + 0x20]
cmp edi, dword [eax + 0x44]
je 0x404f38
mov edi, dword [edi + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
cmp eax, dword [edi + 4]
ja 0x404f93
jb 0x4050a4
mov eax, dword [esp + 0x28]
cmp eax, dword [edi]
ja 0x404f93
jmp 0x4050a4
push 0x20
call fcn.00412216
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0xd8], 3
cmp ecx, ebx
je 0x404f6c
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov byte [ecx + 0x18], 1
mov edi, ecx
jmp 0x404f6e
xor edi, edi
mov byte [esp + 0xd8], 1
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x4050a4
mov esi, dword [ebp + 0x14]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x74]
call fcn.00403140
mov byte [esp + 0xd8], 4
push 0x563b24
lea eax, [esp + 0x78]
push eax
call fcn.00403d3a
push ebx
lea eax, [esp + 0x5c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x7c]
call fcn.00403ec8
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x404fd9
mov eax, esi
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405086
push dword [ebp + 0x14]
mov ebx, dword [esp + 0x28]
push dword [esp + 0x24]
mov ecx, edi
call fcn.00404d23
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
cmp dword [esp + 0x6c], 8
mov edi, dword [esp + 0x58]
jae 0x405026
lea edi, [esp + 0x58]
call fcn.00408c82
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40503a
lea eax, [esp + 0x58]
lea ecx, [esp + 0xac]
call fcn.00403140
mov byte [esp + 0xd8], 5
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xac]
call fcn.00407586
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov byte [esp + 0xd8], 4
lea esi, [esp + 0xac]
call fcn.00402b60
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x405093
cmp byte [esp + 0x17], bl
je 0x405093
push edi
call fcn.00412245
pop ecx
mov byte [esp + 0xd8], 1
lea esi, [esp + 0x74]
call fcn.00402b60
inc dword [esp + 0x1c]
cmp dword [esp + 0x38], ebx
je 0x404e60
mov byte [esp + 0xd8], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
or dword [esp + 0xd8], 0xffffffff
lea esi, [esp + 0x58]
call fcn.00402b60
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00509730
mov esp, ebp
pop ebp
ret 0x10