Function at 0x476df0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4f32
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x4eb690]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push esi
mov eax, dword [0x4eb690]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x2c]
push eax
push 0x20019
push ebx
mov dword [esp + 0x49c], ebx
call fcn.0041abb0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x476e75
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x477036
push 0x208
lea ecx, [esp + 0x272]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x278], ax
call fcn.0048e940
add esp, 0xc
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, edx
lea eax, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ebx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x294]
push edx
push eax
mov dword [esp + 0x70], 0x104
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, dword [esp + 0x28]
cmp esi, ebx
ja 0x476ef5
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x477036
push 0x208
lea ecx, [esp + 0x62]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x68], ax
call fcn.0048e940
add esp, 0xc
mov dword [esp + 0x30], ebx
cmp esi, ebx
jbe 0x477023
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x34]
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00404020
mov byte [esp + 0x490], 3
cmp esi, ebx
jne 0x477000
lea ecx, [esp + 0x14]
call fcn.00403aa0
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.00403d60
lea edx, [esi + 1]
push edx
push eax
call fcn.00491cb2
add esp, 8
push esi
lea ecx, [esp + 0x18]
call fcn.00403e80
lea eax, [esp + 0x14]
push eax
mov esi, eax
call fcn.00470ce0
push ebx
push 0x4d812c
mov ecx, esi
call fcn.00420400
cmp eax, 0xffffffff
jne 0x477000
push ebx
push str._proplus_
mov ecx, esi
call fcn.00420400
cmp eax, 0xffffffff
jne 0x477000
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404020
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
mov byte [esp + 0x490], 4
call fcn.004704f0
lea ecx, [esp + 0x38]
call fcn.00404120
push 0x105
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.00404b50
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], bl
call fcn.00404120
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x28]
jb 0x476f1b
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [esp + 0x18]
cmp edi, ecx
je 0x477071
mov ecx, edi
call fcn.00420910
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00403300
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
call fcn.00420560
mov eax, edi
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0048a346
mov esp, ebp
pop ebp
ret