Function at 0x474130
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca7cd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 9
push 0
push edx
push ecx
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4743c5
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4743bc
cmp dword [ebp - 0x30], eax
je 0x4743bc
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4743bc
inc esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp esi, 0x7ffffffe
ja 0x4743e0
mov dword [ebp - 0x14], 7
cmp esi, 7
ja 0x474202
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4741f9
mov ecx, esi
lea edi, [ebp - 0x28]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x28], ax
jmp 0x47426c
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x47422c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], SysReAllocString
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004643a0
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov dword [ebp - 0x14], ecx
jmp 0x47424e
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004643a0
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], esi
add esp, 8
mov dword [ebp - 0x28], edx
mov ecx, esi
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x30], ecx
jbe 0x47436b
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x47435b
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x4743ea
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push esi
call fcn.00460f10
test al, al
jne 0x474300
test esi, esi
jne 0x4742e2
xor ecx, ecx
jmp 0x4742f6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4742e7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00461270
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x474333
lea eax, [esi - 0x10]
mov dword [ebp - 0x44], edi
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
add dword [eax + 4], 4
jmp 0x47433f
lea ecx, [ebp - 0x2c]
push ecx
push edi
mov ecx, eax
call fcn.0047cb50
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47435b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, dword [ebp - 0x30]
jb 0x474281
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4743a8
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47439e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4743e5
push ecx
push edx
call fcn.004aa25b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
call fcn.004575d0
call fcn.004b35c4
push 0x80004005
call fcn.00456c80
int3