Function at 0x446db0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x446e5e
push ebx
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446e21
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
test eax, eax
jne 0x446e40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call ebx
pop edi
pop ebx
pop esi
add esp, 8
ret
cmp edi, 0x7fffffff
ja 0x446e54
push str._system32
push edi
push esi
call fcn.00408a60
push esi
call ebx
pop edi
pop ebx
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x446e70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x446ed8
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.CommonFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x446ef0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [esp + 0x14]
jne 0x446f76
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push 0
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x446f76
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446f67
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x446f96
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp ebp, 0x7fffffff
mov byte [esi + 2], 0
ja 0x446f96
push str.Program_Files
push ebp
push esi
call fcn.00408a60
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8