Function at 0x101f506
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x1030c96
call fcn.01025fed
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push 0x10016d0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push ebx
push 0xc000c356
lea eax, [ebp - 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 0x14]
mov edi, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x101f6eb
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 0xc000c357
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push 0x1002314
push dword [ebp - 0x24]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f6eb
mov eax, dword [esi]
push ebx
push 0xc000c358
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1002328
push dword [ebp - 0x20]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f6eb
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1004254
push dword [ebp - 0x1c]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f6eb
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f6eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call edi
cmp eax, 0xea
jne 0x101f6ca
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x101f6eb
mov ecx, dword [esi]
push ebx
push 0xc000c42d
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call edi
push eax
mov eax, dword [ebp - 0x30]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f6b7
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x101f6eb
cmp eax, ebx
jne 0x101f6dd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x101f6eb
mov edx, dword [esi]
push ebx
push 0xc000c42d
push eax
mov ecx, esi
call dword [edx + 0x10]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.010106e6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.010106e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.010106e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010106e6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.010106e6
mov eax, dword [ebp + 8]
call fcn.010260d9
ret