Function at 0x474100
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb3bd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x502054]
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 0x474342
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 0x474339
cmp dword [ebp - 0x30], eax
je 0x474339
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x474339
inc esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp esi, 0x7ffffffe
ja 0x474367
mov dword [ebp - 0x14], 7
cmp esi, 8
jae 0x4741d2
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4741c9
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 0x474228
mov edi, esi
lea ecx, [ebp - 0x28]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4741f5
push SysReAllocString
call fcn.004634c0
mov dword [ebp - 0x14], SysReAllocString
jmp 0x47420b
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
call fcn.004634c0
mov dword [ebp - 0x14], edi
mov edx, eax
mov dword [ebp - 0x18], esi
xor eax, eax
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 0x47432a
nop dword [eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x47431a
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x47435d
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.00460eb0
test al, al
jne 0x4742bf
test esi, esi
jne 0x4742a1
xor eax, eax
jmp 0x4742b5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4742a6
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00461210
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 0x4742f2
lea eax, [esi - 0x10]
mov dword [ebp - 0x44], edi
push eax
call fcn.00461130
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 0x4742fe
lea ecx, [ebp - 0x2c]
push ecx
push edi
mov ecx, eax
call fcn.0047ca50
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47431a
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 0x474240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460b90
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.004a9913
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
call fcn.004575c0
int3