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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x26c
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x224], eax
test edx, edx
je 0x4da615
lea eax, [ebp - 0x224]
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp], esi
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
mov edx, eax
test eax, eax
jne 0x4da60b
lea eax, [ebp - 0x22c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x230]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x224]
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_RegQueryInfoKeyW
sub esp, 0x30
mov edx, eax
test eax, eax
jne 0x4da5ee
mov eax, dword [ebp - 0x230]
lea ebx, [ebp - 0x220]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], edx
add eax, 1
cmp edx, eax
mov dword [ebp - 0x22c], eax
cmovae eax, edx
mov edi, eax
cmp eax, 0x104
ja 0x4da760
mov dword [ebp - 0x244], esi
mov esi, dword [ebp - 0x240]
lea eax, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
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 - 0x228], edi
call sub.advapi32.dll_RegEnumKeyExW
sub esp, 0x20
test eax, eax
jne 0x4da690
mov eax, dword [ebp - 0x224]
mov ecx, esi
mov edx, ebx
call fcn.004da430
test eax, eax
je 0x4da540
mov edx, eax
lea eax, [ebp - 0x220]
cmp ebx, eax
je 0x4da5e4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x240], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x240]
sub esp, 0xc
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4da60b
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x23c], edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x23c]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x22c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x230]
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], esi
call sub.advapi32.dll_RegQueryInfoKeyW
sub esp, 0x30
mov edx, eax
test eax, eax
je 0x4da4fe
jmp 0x4da60b
mov ecx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x244]
test ecx, ecx
je 0x4da6f7
mov eax, dword [0x58b7c0]
test eax, eax
je 0x4da7a4
mov edi, dword [ebp - 0x240]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], esi
call eax
sub esp, 0x10
mov edx, eax
lea eax, [ebp - 0x220]
cmp ebx, eax
jne 0x4da5b4
jmp 0x4da5ee
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.advapi32.dll_RegDeleteValueW
sub esp, 8
test eax, eax
jne 0x4da7a0
lea eax, [ebp - 0x228]
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], esi
mov dword [ebp - 0x228], edi
call sub.advapi32.dll_RegEnumValueW
sub esp, 0x20
test eax, eax
je 0x4da6e0
xor edx, edx
lea eax, [ebp - 0x220]
cmp ebx, eax
jne 0x4da5b4
jmp 0x4da60b
lea edx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
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 0x4da534
mov edx, 8
jmp 0x4da5b4
mov edx, eax
jmp 0x4da744
mov eax, dword [ebp - 0x23c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.advapi32.dll_RegDeleteKeyW
sub esp, 8
mov edx, eax
jmp 0x4da6cd