Function at 0xa9e4f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x25c], ecx
mov edx, ebx
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x20c], bx
mov esi, ebx
mov dword [ebp - 0x218], esi
mov edi, ebx
mov dword [ebp - 0x248], edi
test ecx, ecx
je 0xb41169
test eax, eax
je 0xb41169
mov dword [ecx], edi
mov dword [eax], edi
call dword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
mov ecx, 0x9fda70
test al, al
jne 0xa9e5a4
mov ecx, 0x9f39c4
lea eax, [ebp - 0x240]
push eax
call fcn.00a9ea25
mov ebx, eax
cmp ebx, 0x80070002
je 0xa9e911
test ebx, ebx
js 0xa9e8fe
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x228]
xor ecx, ecx
mov dword [ebp - 0x248], edi
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov ebx, eax
test ebx, ebx
jne 0xb40fa4
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x238]
push 4
pop ecx
mul ecx
push edx
push eax
call fcn.00a45844
mov ebx, eax
test ebx, ebx
js 0xa9e8f3
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
mov dword [ebp - 0x224], eax
test eax, eax
je 0xb40fb8
push dword [ebp - 0x21c]
xor ecx, ecx
push ecx
push eax
call fcn.00ab4bf6
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x228]
add esp, 0xc
xor edx, edx
inc edx
push eax
call fcn.00a4a0c1
mov ebx, eax
test ebx, ebx
js 0xb40fc7
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x228]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.00a45844
mov ebx, eax
test ebx, ebx
js 0xb40fc7
push dword [ebp - 0x220]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
mov ecx, eax
mov dword [ebp - 0x230], ecx
test ecx, ecx
je 0xb40fc2
xor eax, eax
mov edx, eax
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x238], eax
jbe 0xa9e8bb
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x24c], eax
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ecx], ax
lea eax, [ebp - 0x24c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0xb4114f
call dword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
test al, al
mov eax, 0x9fda70
jne 0xa9e702
mov eax, 0x9f39c4
push dword [ebp - 0x230]
push eax
push 0x9f3a24
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00a60c0c
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0xb41144
lea eax, [ebp - 0x22c]
push eax
push 0x20119
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
mov dword [ebp - 0x220], ebx
test ebx, ebx
jg 0xb41035
js 0xa9e89b
mov eax, dword [ebp - 0x22c]
mov ecx, eax
mov dword [ebp - 0x218], ecx
test esi, esi
je 0xa9e79d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x218]
mov esi, ecx
mov dword [ebp - 0x250], 4
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x218], esi
push ecx
xor edx, edx
lea ecx, [ebp - 0x21c]
push ecx
push edx
push 0x18
push 0x9f3a04
push edx
push eax
mov dword [ebp - 0x21c], edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0xa9e89b
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 4
push eax
xor ecx, ecx
lea eax, [ebp - 0x244]
push eax
push ecx
push 0x18
push 0x9f3a30
push ecx
push dword [ebp - 0x22c]
mov dword [ebp - 0x244], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
xor eax, eax
mov esi, eax
mov dword [ebp - 0x220], esi
cmp dword [ebp - 0x23c], eax
jne 0xb4104b
cmp dword [ebp - 0x21c], 0x3f
mov byte [ebp - 0x20d], al
je 0xa9e88d
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x21c], eax
je 0xa9e86f
mov ecx, dword [ebp - 0x244]
xor eax, eax
inc eax
xor edx, edx
call fcn.00af91f0
and eax, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or eax, edx
jne 0xb41079
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x21c], eax
je 0xb41085
mov eax, dword [ebp - 0x23c]
test eax, eax
jne 0xb41091
mov al, byte [ebp - 0x20d]
test al, al
jne 0xb410e5
xor eax, eax
test esi, esi
jne 0xb41110
mov esi, dword [ebp - 0x218]
mov edx, dword [ebp - 0x234]
inc edx
mov dword [ebp - 0x234], edx
cmp edx, dword [ebp - 0x238]
jae 0xa9e8bb
mov ecx, dword [ebp - 0x230]
jmp 0xa9e6bf
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x214]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x224]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
test eax, eax
je 0xa9e8e8
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
je 0xa9e8f3
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0xa9e8fe
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret 0x24
mov ebx, edi
jmp 0xa9e8fe
jle 0xa9e8f3
movzx ebx, bx
or ebx, 0x80070000
jmp 0xa9e8f3
mov ebx, 0x8007000e
jmp 0xa9e8f3
mov ebx, 0x8007000e
mov edx, esi
cmp dword [ebp - 0x224], 0
je 0xa9e8d7
xor eax, eax
mov dword [ebp - 0x234], eax
test edx, edx
je 0xb41024
mov ecx, dword [ebp - 0x224]
xor edi, edi
mov esi, dword [ebp - 0x214]
mov edx, dword [ecx + eax*4]
test edx, edx
je 0xb4100d
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edi
inc eax
mov dword [ebp - 0x234], eax
cmp eax, esi
jb 0xb40ff0
mov edi, dword [ebp - 0x248]
mov esi, dword [ebp - 0x218]
push dword [ebp - 0x224]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0xa9e8d7
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x220], ebx
test ebx, ebx
jmp 0xa9e75d
mov edx, 0xa1fc18
cmp dword [ebp + 0x24], eax
jne 0xb4105a
mov edx, 0xa1fbd8
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
call fcn.00bf1221
mov esi, dword [ebp - 0x220]
xor eax, eax
jmp 0xa9e828
mov byte [ebp - 0x20d], 1
jmp 0xa9e860
mov byte [ebp - 0x20d], 1
jmp 0xa9e86f
test esi, esi
je 0xa9e87d
cmp dword [ebp + 0x28], 0
jne 0xb410cf
push eax
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
pop ecx
pop ecx
jmp 0xb410c0
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x23c]
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0xa9e87d
mov al, 1
jmp 0xa9e883
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x258]
jne 0xb410d4
jmp 0xb410ab
push dword [ebp - 0x230]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x214]
mov dword [ecx + edx*4], eax
test eax, eax
je 0xb41124
inc edx
mov dword [ebp - 0x214], edx
jmp 0xa9e88b
push esi
push 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_HeapFree]
jmp 0xa9e895
mov ebx, 0x8007000e
test esi, esi
je 0xb41173
push esi
xor eax, eax
push 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_HeapFree]
mov esi, dword [ebp - 0x218]
mov edx, dword [ebp - 0x214]
jmp 0xb40fc9
mov edx, dword [ebp - 0x214]
jle 0xb40fc9
movzx ebx, bx
or ebx, 0x80070000
jmp 0xb40fc9
mov ebx, 0x80070057
jmp 0xb40fc9
mov esi, dword [ebp - 0x218]
jmp 0xb40fc9