Function at 0x100510ce
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x100bc9cf
call fcn.100a0664
sub esp, 0x344
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
cmp dword [ebp + 0x7c], esi
jne 0x100510fc
mov eax, 0x80004003
jmp 0x100513f7
lea eax, [ebp + 0x68]
push eax
call fcn.10016371
pop ecx
push 0x100c6e54
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.1000c4dd
add esp, 0xc
push 0x1010c424
push eax
lea eax, [ebp + 0x5c]
push eax
mov byte [ebp - 4], 2
call fcn.10004f80
add esp, 0xc
push str.Layouts
push eax
lea eax, [ebp + 0x60]
push eax
mov byte [ebp - 4], 3
call fcn.1000c4dd
add esp, 0xc
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x54]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.10001ccd
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x68], esi
push esi
push esi
mov edi, 0x2001f
push edi
push esi
push esi
push dword [ebp + 0x60]
lea ecx, [ebp + 0x64]
push SysReAllocString
mov byte [ebp - 4], 8
call fcn.10001485
test eax, eax
je 0x100511ae
xor esi, esi
inc esi
lea ecx, [ebp + 0x64]
call fcn.1000146a
mov ecx, dword [ebp + 0x60]
add ecx, 0xfffffff0
call fcn.10001ccd
mov eax, esi
jmp 0x100513f7
xor eax, eax
push 0x206
mov word [ebp - 0x350], ax
lea eax, [ebp - 0x34e]
push esi
push eax
call fcn.1009f9b0
xor eax, eax
push 0xfe
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push esi
push eax
call fcn.1009f9b0
add esp, 0x18
lea eax, [ebp + 0x50]
push eax
push esi
push esi
push esi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x78]
mov dword [ebp + 0x58], 0x104
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1005121a
mov esi, 0x80004005
jmp 0x10051194
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x64]
lea ecx, [ebp + 0x64]
call fcn.10001485
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x148]
push eax
push str.fcuserid
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x78], 0x80
call fcn.10027d59
mov ebx, dword [0x1010c400]
cmp ebx, esi
je 0x10051269
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1005126d
xor eax, eax
jmp 0x10051286
lea edi, [eax + eax]
mov eax, edi
call fcn.100a2940
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.1000b154
push eax
lea ecx, [ebp + 0x1c]
call fcn.10005257
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.10015e24
pop ecx
push esi
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 8
call fcn.100033aa
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100512c5
xor eax, eax
jmp 0x100512e4
lea edi, [eax + eax]
mov eax, edi
call fcn.100a2940
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x148]
push ecx
push eax
call fcn.1000b154
push eax
lea ecx, [ebp + 0x1c]
call fcn.10005257
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xa
call fcn.10047f95
pop ecx
push esi
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xc
call fcn.100033aa
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x10051319
lea eax, [ebp + 4]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100159f9
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 0xd
jb 0x10051338
mov eax, dword [eax + 4]
jmp 0x1005133b
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005257
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.100033aa
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
jae 0x1005135b
lea ebx, [ebp - 0x28]
cmp ebx, esi
je 0x10051371
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x10051375
xor eax, eax
jmp 0x1005138c
lea eax, [edi + edi]
call fcn.100a2940
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.100132f8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x7c]
push esi
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.100033aa
push esi
push 1
lea ecx, [ebp]
call fcn.100033aa
jmp 0x10051194
lea esp, [ebp - 0x35c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc