Function at 0x41ab00
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x20]
mov dword [edi], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x41ab50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegQueryInfoKeyA
sub esp, 0x30
mov ebx, eax
test eax, eax
jne 0x41ab3f
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 1
mov dword [esp + 8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41ad33
xor eax, eax
mov dword [ebp - 0x34], ebx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyA
sub esp, 0x10
test eax, eax
jne 0x41aca5
mov esi, dword [ebp - 0x2c]
mov edi, str.af054738b93a8cb43b12803b397f483b
mov ecx, 0x21
mov eax, dword [ebp - 0x20]
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x41acf0
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
add ebx, 1
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
call fcn.0041ab00
test eax, eax
jne 0x41abfb
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
cmp dword [ecx], eax
je 0x41acf8
mov dword [esp], eax
xor ebx, ebx
call sub.advapi32.dll_RegCloseKey
mov edi, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x41ab3f
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
cmp dword [edi], eax
je 0x41ad24
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov ecx, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov ebx, 2
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x41ab3f
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x34]
mov dword [ecx], eax
mov edi, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x41ab3f
mov edi, dword [ebp - 0x2c]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
jmp 0x41acc7
mov ebx, 8
jmp 0x41ab3f