Function at 0x4446d4
Capabilities:
Get common file path
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x46c]
sub esp, 0x4ec
mov eax, dword [0x4b1d00]
xor eax, ebp
mov dword [ebp + 0x468], eax
mov eax, dword [ebp + 0x474]
and dword [ebp - 0x40], 0
push ebx
mov ebx, dword [ebp + 0x47c]
push esi
push edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x478]
mov esi, 0x118
push esi
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0xe4]
push 0
push eax
call fcn.00464d20
push esi
lea eax, [ebp - 0x38]
push 0
lea edi, [esi + 4]
push eax
mov dword [ebp + 0xe0], edi
call fcn.00464d20
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x3c], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4447d4
lea ecx, [ebp - 0x3c]
push ecx
call eax
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0xe8], eax
mov al, byte [ebp + 0xde]
mov byte [ebp + 0x1fa], al
mov ax, word [ebp + 0xd8]
mov word [ebp + 0x1f4], ax
mov ax, word [ebp + 0xda]
mov word [ebp + 0x1f6], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xf4]
push 0x80
push eax
call fcn.00466df2
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0xf0], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xec], eax
mov ax, word [ebp + 0xdc]
add esp, 0xc
mov word [ebp + 0x1f8], ax
jmp 0x4447e1
lea eax, [ebp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
and dword [ebp - 0x80], 0
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
lea edi, [ebp - 0x7c]
push 0x499238
rep stosd dword es:[edi], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
je 0x444810
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x44481a
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp + 0xe4]
movzx eax, word [ebp + 0x1f4]
imul esi, esi, 0xa
add esi, dword [ebp + 0xe8]
mov dword [ebx], eax
xor eax, eax
push 0x206
mov word [ebp + 0x1fc], ax
lea eax, [ebp + 0x1fe]
push edi
push eax
call fcn.00464d20
add esp, 0xc
lea eax, [ebp + 0x1fc]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x444968
push str._ntoskrnl.exe
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x444968
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1fc]
push eax
call fcn.00443ba0
pop ecx
pop ecx
test eax, eax
je 0x444968
mov eax, dword [ebp - 0x44]
movzx ecx, word [ebp - 0x44]
shr eax, 0x10
mov edx, eax
imul edx, edx, 0xa
add edx, ecx
cmp esi, edx
jge 0x444968
mov dword [ebp + 0xe8], ecx
push 0x4b84ac
lea ecx, [ebp - 0x54]
mov dword [ebp + 0xe4], eax
mov dword [ebx], edi
call fcn.00401ae0
push str.Service_Pack
lea ecx, [ebp - 0x44]
call fcn.00404be0
xor eax, eax
push 0x62
mov word [ebp + 0x404], ax
lea eax, [ebp + 0x406]
push edi
push eax
call fcn.00464d20
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x404]
push eax
lea eax, [ebp - 0x5c]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x50], 0x64
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x44]
test eax, eax
jne 0x444956
push dword [esi - 0xc]
push esi
push edi
call fcn.00466d4c
add esp, 0xc
test eax, eax
jne 0x444956
mov eax, dword [esi - 0xc]
lea eax, [edi + eax*2]
push eax
call fcn.00466c57
pop ecx
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.004016d0
lea ecx, [edi - 0x10]
call fcn.004016d0
xor edi, edi
mov ecx, dword [ebp + 0xe4]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push 5
mov dword [eax], ecx
mov eax, dword [ebp + 0xe8]
pop esi
mov dword [edx], eax
cmp ecx, esi
jne 0x4449d2
cmp eax, edi
jne 0x444995
mov dword [ebp - 0x40], 1
jmp 0x444a4c
cmp eax, 1
jne 0x4449a6
mov dword [ebp - 0x40], 2
jmp 0x444a4c
push 2
pop ecx
cmp eax, ecx
jne 0x444a4c
cmp byte [ebp + 0x1fa], 1
jne 0x4449c9
cmp word [ebp - 0x80], 9
jne 0x4449c9
mov dword [ebp - 0x40], ecx
jmp 0x444a4c
mov dword [ebp - 0x40], 4
jmp 0x444a4c
push 6
pop edx
cmp ecx, edx
jne 0x444a4c
cmp eax, edi
jne 0x4449fb
push 3
pop eax
cmp byte [ebp + 0x1fa], al
je 0x4449f6
cmp byte [ebp + 0x1fa], 2
je 0x4449f6
mov dword [ebp - 0x40], eax
jmp 0x444a4c
mov dword [ebp - 0x40], edx
jmp 0x444a4c
cmp eax, 1
jne 0x444a20
cmp byte [ebp + 0x1fa], 3
je 0x444a17
cmp byte [ebp + 0x1fa], 2
je 0x444a17
mov dword [ebp - 0x40], esi
jmp 0x444a4c
mov dword [ebp - 0x40], 7
jmp 0x444a4c
cmp eax, 2
jne 0x444a37
cmp byte [ebp + 0x1fa], 1
jne 0x444a4c
mov dword [ebp - 0x40], 8
jmp 0x444a4c
cmp eax, 3
jne 0x444a4c
cmp byte [ebp + 0x1fa], 1
jne 0x444a4c
mov dword [ebp - 0x40], 9
test byte [ebp + 0x1f8], 0x40
je 0x444a58
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp + 0x468]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464fe1
add ebp, 0x46c
leave
ret