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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x16c
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x120], eax
test edx, edx
je 0x424344
lea eax, [ebp - 0x120]
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], edi
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov edx, eax
test eax, eax
jne 0x42433a
lea eax, [ebp - 0x128]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x120]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 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 edx, eax
test eax, eax
jne 0x42431d
mov eax, dword [ebp - 0x12c]
lea ebx, [ebp - 0x11c]
lea esi, [eax + 1]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], esi
add eax, 1
cmp esi, eax
mov dword [ebp - 0x128], eax
cmovb esi, eax
cmp esi, 0x104
ja 0x424470
lea eax, [ebp - 0x124]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x120]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x124], esi
call sub.advapi32.dll_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x4243c0
mov eax, dword [ebp - 0x120]
mov edx, ebx
call fcn.00424170
test eax, eax
je 0x424271
mov edx, eax
lea eax, [ebp - 0x11c]
cmp ebx, eax
je 0x424313
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x140], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x140]
sub esp, 0xc
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x42433a
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x13c], edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x13c]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x128]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.advapi32.dll_RegQueryInfoKeyA
sub esp, 0x30
mov edx, eax
test eax, eax
je 0x42423c
jmp 0x42433a
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x424407
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.advapi32.dll_RegDeleteKeyA
mov edx, eax
lea eax, [ebp - 0x11c]
sub esp, 8
cmp ebx, eax
jne 0x4242e3
jmp 0x42431d
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.advapi32.dll_RegDeleteValueA
sub esp, 8
test eax, eax
jne 0x4244b0
lea eax, [ebp - 0x124]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [ebp - 0x124], esi
call sub.advapi32.dll_RegEnumValueA
sub esp, 0x20
test eax, eax
je 0x4243f0
xor edx, edx
lea eax, [ebp - 0x11c]
cmp ebx, eax
jne 0x4242e3
jmp 0x42433a
mov dword [esp + 8], esi
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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x424271
mov edx, 8
jmp 0x4242e3
mov edx, eax
jmp 0x424454