Function at 0x1000ae50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
push edi
mov byte [eax], cl
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov esi, ecx
push 0x10001e60
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000b025
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000b07e
cmp byte [esi], bl
je 0x1000b07e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000aea2
sub ecx, edx
lea eax, [ecx + 0x11]
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1000aefe
push 0x10003070
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcpy_s]
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push ebx
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000af03
sub ecx, edx
lea eax, [ecx + 0xa]
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000af5c
push 0x10003084
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcpy_s]
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ebx
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000af61
sub ecx, edx
inc esi
add esi, ecx
cmp byte [esi], al
je 0x1000b022
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1000b022
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x24], 4
test eax, eax
je 0x1000afbd
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edx
push esi
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000afba
cmp dword [ebp - 0xc], 4
je 0x1000afe4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000b005
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push esi
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b002
cmp dword [ebp - 0xc], 4
jne 0x1000b002
push dword [ebp + 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.1000ad23
mov edx, eax
mov dword [ebp - 4], edx
jmp 0x1000b005
mov edx, dword [ebp - 4]
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b00d
sub ecx, dword [ebp - 0x28]
inc esi
add esi, ecx
cmp byte [esi], al
jne 0x1000af78
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000b033
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x1000b047
push esi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000b055
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1000b069
push ebx
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test edi, edi
je 0x1000b074
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
xor esi, esi
push eax
push dword [ebp + 0x10]
inc esi
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserDefaultLCID]
mov edx, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.1000ad23
test eax, eax
jne 0x1000b0f0
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x18]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetSystemDefaultLCID]
mov edx, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.1000ad23
test eax, eax
jne 0x1000b0f0
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, edi
mov edx, dword [ebp + 8]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0x409
call fcn.1000ad23
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 4], eax
mov esi, ebx
jmp 0x1000b025