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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420897
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x42b530]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x42b530]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
xor ebx, ebx
mov eax, 0x104
lea esi, [esp + 0x58]
mov dword [esp + 0x18], ebx
call fcn.00404f28
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
jae 0x402b22
lea eax, [esp + 0x58]
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x48]
push ecx
push eax
push dword [esp + 0x30]
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x402d2b
cmp dword [esp + 0x6c], 8
mov edi, dword [esp + 0x58]
mov byte [esp + 0x17], 0
jae 0x402b5e
lea edi, [esp + 0x58]
call fcn.00407056
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x402b72
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x94]
call fcn.004014ab
mov byte [esp + 0xd8], 2
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x90]
add esi, 0x40
push eax
lea edi, [esp + 0x54]
mov dword [esp + 0x40], esi
call fcn.00405114
mov edi, dword [eax]
mov byte [esp + 0xd8], 1
lea esi, [esp + 0x90]
call fcn.00401075
mov eax, dword [esp + 0x1c]
cmp edi, dword [eax + 0x44]
je 0x402be1
mov ebx, dword [edi + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [ebx + 4]
ja 0x402c32
jb 0x402d29
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx]
ja 0x402c32
jmp 0x402d29
push 0x20
call fcn.0040a71f
pop ecx
mov ecx, eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0xd8], 3
cmp ecx, ebx
je 0x402c13
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 ebx, ecx
mov byte [esp + 0xd8], 1
test ebx, ebx
je 0x402d29
mov esi, dword [ebp + 0x14]
push 8
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x17], 1
push dword [esp + 0x34]
lea esi, [esp + 0x78]
call fcn.004014ab
mov byte [esp + 0xd8], 4
push 0x425f24
mov eax, esi
push eax
call fcn.004053d2
push 0
lea eax, [esp + 0x5c]
push eax
or eax, 0xffffffff
call fcn.004055d1
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x402c73
mov eax, esi
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d0a
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.004029ca
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
cmp dword [esp + 0x6c], 8
mov edi, dword [esp + 0x58]
jae 0x402cbb
lea edi, [esp + 0x58]
call fcn.00407056
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x402ccf
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0xb0]
call fcn.004014ab
mov byte [esp + 0xd8], 5
mov edi, dword [esp + 0x3c]
mov ecx, esi
call fcn.00405002
mov dword [eax], ebx
mov byte [esp + 0xd8], 4
call fcn.00401075
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d18
cmp byte [esp + 0x17], 0
je 0x402d18
push ebx
call fcn.0040a53c
pop ecx
mov byte [esp + 0xd8], 1
lea esi, [esp + 0x74]
call fcn.00401075
xor ebx, ebx
inc dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
je 0x402b0b
mov byte [esp + 0xd8], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
or dword [esp + 0xd8], 0xffffffff
lea esi, [esp + 0x58]
call fcn.00401075
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.0040a3f3
mov esp, ebp
pop ebp
ret 0x10