Function at 0x1002e7ad
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 0x1008e4a9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x100ec274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 1
xor edi, edi
mov dword [ebp - 0x4c], 0x1009807c
push eax
xor edx, edx
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x40], 1
call fcn.10012d20
test eax, eax
je 0x1002e829
cmp byte [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0x1009807c
je 0x1002e987
cmp dword [ebp - 0x44], edi
jmp 0x1002e97c
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x44]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1002e810
mov eax, dword [ebp - 0x18]
push ecx
inc eax
lea ecx, [ebp - 0x30]
push eax
call fcn.10012d20
mov eax, dword [ebp - 0x18]
inc eax
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
push ecx
jmp 0x1002e8ad
test eax, eax
jne 0x1002e90a
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x1002e904
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x24]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
inc edi
inc eax
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.advapi32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1002e86c
push str.Successfully_got_the_registry_values
push ecx
push 0x32
mov edx, 0x3a7
mov ecx, 0x23ca345
call fcn.10012d20
lea ecx, [ebp - 0x30]
call fcn.1002d5e3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x1009807c
call fcn.1001f7cc
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], 0x100aff54
mov dword [ebp - 0x64], str.RegEnumValue
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x58], ax
call fcn.1004534c
test al, al
je 0x1002e963
lea eax, [ebp - 0x68]
mov dword [ebp - 0x3c], 0x100a3e58
mov dword [ebp - 0x20], eax
mov edx, 0x3a7
lea eax, [ebp - 0x20]
mov ecx, 0x23ca344
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push str.RegEnumValue_did_not_return_an_expected_result
push 0
push 0xf
call fcn.10012d20
lea ecx, [ebp - 0x30]
call fcn.1002d5e3
cmp byte [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0x1009807c
je 0x1002e987
cmp dword [ebp - 0x44], 0
je 0x1002e987
push dword [ebp - 0x44]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
jmp 0x1002e8f0