Function at 0x1002292
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x100ea17
call fcn.01008b10
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0x80000000
push esi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x10022ea
call fcn.010093e5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
call fcn.01008bc4
ret 4
cmp dword [ebp - 0x14], esi
jne 0x10022fc
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10022cf
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
push 0x1001304
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x100233c
dec eax
dec eax
je 0x1002321
push dword [ebp - 0x24]
jmp 0x1002326
push 0x3f7
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010093e5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10022d4
cmp dword [ebp - 0x1c], esi
je 0x10022ef
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call sub.framedynos.dll_public:_class_CHString___thiscall_CHString::Right_int_
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_class_CHString_const____thiscall_CHString::operator_class_CHString_const__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, 0x80
mov dword [ebp - 0x28], eax
push eax
call fcn.0100986e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x10023c6
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
mov dword [ebp - 0x24], eax
cmp eax, 0xea
jne 0x10023c6
lea eax, [ebp - 0x20]
push eax
call fcn.01009b84
push dword [ebp - 0x28]
call fcn.0100986e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x10023c6
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x14], esi
je 0x10023e1
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], esi
je 0x10023f4
lea eax, [ebp - 0x20]
push eax
call fcn.01009b84
jmp 0x10022d4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
movzx ecx, word [eax]
cmp cx, si
je 0x100240c
cmp cx, 0x40
je 0x1002412
inc eax
inc eax
jmp 0x10023f7
cmp word [eax], 0x40
jne 0x1002428
push esi
mov ecx, eax
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov edx, dword [ebp - 0x28]
sub edx, ecx
push edx
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
push dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
call sub.framedynos.dll_public:_class_CHString_const____thiscall_CHString::operator_unsigned_short_int_const__
lea eax, [ebp - 0x20]
push eax
call fcn.01009b84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
inc eax
jmp 0x10022e2