Function at 0x1001458b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011b75f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x101a0414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
xor esi, esi
mov dword [ebp - 0x50], 0x101420b0
push eax
xor edx, edx
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x44], 1
call fcn.1003a42b
test eax, eax
je 0x10014607
cmp byte [ebp - 0x44], 0
mov dword [ebp - 0x50], 0x101420b0
je 0x10014786
cmp dword [ebp - 0x48], esi
jmp 0x1001477b
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100145ee
mov eax, dword [ebp - 0x18]
push ecx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.1003a42b
mov eax, dword [ebp - 0x18]
push esi
inc eax
mov dword [ebp - 0x20], esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x40]
push eax
push esi
push 0
jmp 0x10014699
test eax, eax
jne 0x100146fe
mov ecx, dword [edi + 0x24]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x100146f8
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x28]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
inc ecx
inc eax
mov dword [ebp - 0x20], ecx
xor edx, edx
mov dword [ebp - 0x1c], eax
push edx
push edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
push ecx
push dword [ebp - 0x48]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x10014650
push str.Successfully_got_the_registry_values
push ecx
push 0x32
mov edx, 0x3a7
mov ecx, 0x23ca345
call fcn.1003a42b
test esi, esi
je 0x100146d3
mov ecx, dword [ebp - 0x38]
sub ecx, esi
and ecx, 0xfffffffe
push ecx
push esi
call fcn.1003a42b
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x101420b0
call fcn.100176e8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
cdq
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x68], 0x101421f8
mov dword [ebp - 0x64], str.RegEnumValue
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x58], ax
call fcn.100407ee
test al, al
je 0x10014757
lea eax, [ebp - 0x68]
mov dword [ebp - 0x34], 0x10141588
mov dword [ebp - 0x20], eax
mov edx, 0x3a7
lea eax, [ebp - 0x20]
mov ecx, 0x23ca344
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push str.RegEnumValue_did_not_return_an_expected_result
push 0
push 0xf
call fcn.1003a42b
test esi, esi
je 0x1001476a
mov eax, dword [ebp - 0x38]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.1003a42b
cmp byte [ebp - 0x44], 0
mov dword [ebp - 0x50], 0x101420b0
je 0x10014786
cmp dword [ebp - 0x48], 0
je 0x10014786
push dword [ebp - 0x48]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
jmp 0x100146e4