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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
push ecx
sub esp, 0x688
mov eax, dword [ecx + 4]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x65c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x658], eax
test byte [0x63bcb034], 8
jne 0x63bc8b00
mov eax, dword [ebp - 0x658]
mov edx, 0x57
mov edi, dword [ebx]
test eax, eax
sete al
test edi, edi
mov dword [ebp - 0x64c], edi
sete cl
or al, cl
mov esi, eax
jne 0x63bc8921
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x63bc8940
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x63bc8938
lea eax, [ebp - 0x418]
mov dword [ebx], 0
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x620]
mov dword [ebp - 0x664], eax
mov edi, eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x664]
cmp edi, eax
je 0x63bc88ba
mov dword [ebp - 0x64c], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x64c]
sub esp, 0xc
mov ecx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x660]
cmp ecx, eax
je 0x63bc88fa
mov dword [ebp - 0x64c], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x64c]
sub esp, 0xc
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x63bc8921
mov eax, dword [ebx]
test eax, eax
je 0x63bc8921
mov dword [ebp - 0x64c], edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x64c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebx]
mov dword [ebp - 0x64c], eax
lea edx, [ebp - 0x630]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], edx
lea edi, [ebp - 0x418]
lea edx, [ebp - 0x638]
mov dword [esp + 0x28], 0
mov dword [ebp - 0x660], edi
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0x634]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x63c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x64c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryInfoKeyW
sub esp, 0x30
mov dword [ebp - 0x668], eax
mov edx, eax
test eax, eax
jne 0x63bc8af0
mov edx, dword [ebp - 0x634]
lea ecx, [ebp - 0x620]
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x664], ecx
mov edi, ecx
cmp eax, edx
cmovb eax, edx
lea edx, [eax + 1]
mov dword [ebp - 0x634], edx
cmp eax, 0x103
ja 0x63bc8d20
mov ecx, dword [ebp - 0x660]
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x650], ecx
cmp eax, 0x400
ja 0x63bc8ce0
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x63bc8d54
mov eax, esi
cmp al, 1
je 0x63bc8d54
lea eax, [ebp - 0x624]
xor esi, esi
mov dword [ebp - 0x64c], eax
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x624], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x64c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyExW
sub esp, 0x20
mov edx, eax
test eax, eax
jne 0x63bc8880
lea eax, [ebp - 0x62c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
mov edx, eax
test eax, eax
je 0x63bc8b50
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x64c], edx
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x64c]
sub esp, 4
jmp 0x63bc8880
mov dword [ebp - 0x650], edi
jmp 0x63bc88ba
mov eax, dword [ebp - 0x65c]
call fcn.63bc3570
mov dword [esp + 0x1c], esi
mov ecx, dword [ebp - 0x658]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebx]
mov dword [esp + 0xc], str._p___s___p___ld._n
mov dword [esp + 8], str.SHCopyKeyW
mov dword [esp + 4], 0x63bcb034
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63bc2700
jmp 0x63bc87f3
lea eax, [ebp - 0x628]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x658]
mov dword [esp], eax
call sub.advapi32.dll_RegCreateKeyW
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x63bc8ac9
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x628]
add esi, 1
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
call sym.shcore.dll_SHCopyKeyW
mov dword [ebp - 0x654], eax
mov eax, dword [ebp - 0x628]
sub esp, 0x10
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x62c]
sub esp, 4
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov edx, dword [ebp - 0x654]
sub esp, 4
cmp esi, dword [ebp - 0x63c]
jae 0x63bc8be5
test edx, edx
je 0x63bc8a3f
mov ecx, dword [ebp - 0x638]
test ecx, ecx
je 0x63bc8880
test edx, edx
jne 0x63bc8880
lea esi, [ebp - 0x628]
mov dword [ebp - 0x654], esi
mov esi, dword [ebp - 0x668]
lea eax, [ebp - 0x624]
mov dword [ebp - 0x64c], eax
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x624], eax
mov eax, dword [ebp - 0x64c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x650]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x654]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x62c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumValueW
sub esp, 0x20
mov edx, eax
test eax, eax
jne 0x63bc8880
mov eax, dword [ebp - 0x624]
add esi, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x650]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x628]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x658]
mov dword [esp], eax
call sym.shcore.dll_SHSetValueW
sub esp, 0x18
mov edx, eax
cmp esi, dword [ebp - 0x638]
jae 0x63bc8880
test eax, eax
je 0x63bc8c19
jmp 0x63bc8880
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x650], eax
sete al
or esi, eax
jmp 0x63bc8a19
add edx, edx
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
test eax, eax
mov edi, eax
sete al
mov esi, eax
jmp 0x63bc89fc
mov eax, esi
movzx esi, al
lea edx, [esi*8]
jmp 0x63bc8be5