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

Disassembly:
push 0x4ec
mov eax, 0x527c25
call fcn.004fc737
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x118
xor ebx, ebx
push esi
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x394]
push ebx
push eax
mov dword [ebp - 0x4b8], ebx
call fcn.004f18b0
push esi
lea eax, [ebp - 0x4b0]
push ebx
lea edi, [esi + 4]
push eax
mov dword [ebp - 0x398], edi
call fcn.004f18b0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x4b4], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x447c04
lea ecx, [ebp - 0x4b4]
push ecx
call eax
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x390], eax
mov al, byte [ebp - 0x39a]
mov byte [ebp - 0x27e], al
mov ax, word [ebp - 0x3a0]
mov word [ebp - 0x284], ax
mov ax, word [ebp - 0x39e]
mov word [ebp - 0x282], ax
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x384]
push 0x80
push eax
call fcn.004f6833
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x38c], eax
mov ax, word [ebp - 0x39c]
add esp, 0xc
mov word [ebp - 0x280], ax
jmp 0x447c11
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
and dword [ebp - 0x4f8], 0
push 8
pop ecx
push 0x53bc60
xor eax, eax
lea edi, [ebp - 0x4f4]
push 0x53bc74
rep stosd dword es:[edi], eax
call esi
push eax
call ebx
xor esi, esi
cmp eax, esi
je 0x447c45
lea ecx, [ebp - 0x4f8]
push ecx
call eax
jmp 0x447c52
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x394]
movzx eax, word [ebp - 0x284]
imul ebx, ebx, 0xa
mov ecx, dword [ebp - 0x4bc]
add ebx, dword [ebp - 0x390]
mov dword [ecx], eax
xor eax, eax
push 0x206
mov word [ebp - 0x27c], ax
lea eax, [ebp - 0x27a]
push esi
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x447dd0
push str._ntoskrnl.exe
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x447dd0
lea edi, [ebp - 0x4d0]
lea esi, [ebp - 0x27c]
call fcn.004481bf
test eax, eax
je 0x447dd0
mov eax, dword [ebp - 0x4cc]
movzx ecx, word [ebp - 0x4cc]
shr eax, 0x10
mov edx, eax
imul edx, edx, 0xa
add edx, ecx
cmp ebx, edx
jge 0x447dd0
mov edi, dword [ebp - 0x4bc]
xor ebx, ebx
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x390], ecx
mov dword [edi], ebx
mov eax, dword [0x590e04]
mov ecx, 0x590e04
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4cc], esi
push str.Service_Pack
lea eax, [ebp - 0x4bc]
push eax
mov dword [ebp - 4], ebx
call fcn.004056ee
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c8]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4c8], 1
mov dword [ebp - 0x4d4], 0x64
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x447dba
mov eax, dword [ebp - 0x4bc]
push dword [eax - 0xc]
push eax
push esi
call fcn.004f2c32
add esp, 0xc
test eax, eax
jne 0x447dba
mov eax, dword [ebp - 0x4bc]
mov eax, dword [eax - 0xc]
lea eax, [esi + eax*2]
push eax
call fcn.004fa60a
pop ecx
mov dword [edi], eax
mov eax, dword [ebp - 0x4bc]
add eax, 0xfffffff0
call fcn.00405521
lea eax, [esi - 0x10]
call fcn.00405521
mov ecx, dword [ebp - 0x394]
mov eax, dword [ebp - 0x4c4]
mov edx, dword [ebp - 0x4c0]
push 5
mov dword [eax], ecx
mov eax, dword [ebp - 0x390]
pop esi
mov dword [edx], eax
cmp ecx, esi
jne 0x447e52
test eax, eax
jne 0x447e06
mov dword [ebp - 0x4b8], 1
jmp 0x447f1b
cmp eax, 1
jne 0x447e1a
mov dword [ebp - 0x4b8], 2
jmp 0x447f1b
push 2
pop ecx
cmp eax, ecx
jne 0x447f1b
cmp byte [ebp - 0x27e], 1
jne 0x447e43
cmp word [ebp - 0x4f8], 9
jne 0x447e43
mov dword [ebp - 0x4b8], ecx
jmp 0x447f1b
mov dword [ebp - 0x4b8], 4
jmp 0x447f1b
push 6
pop edx
cmp ecx, edx
jne 0x447f01
test eax, eax
jne 0x447e88
push 3
pop eax
cmp byte [ebp - 0x27e], al
je 0x447f15
cmp byte [ebp - 0x27e], 2
je 0x447f15
mov dword [ebp - 0x4b8], eax
jmp 0x447f1b
cmp eax, 1
jne 0x447eb3
cmp byte [ebp - 0x27e], 3
je 0x447ea7
cmp byte [ebp - 0x27e], 2
je 0x447ea7
mov dword [ebp - 0x4b8], esi
jmp 0x447f1b
mov dword [ebp - 0x4b8], 7
jmp 0x447f1b
cmp eax, 2
jne 0x447ecd
cmp byte [ebp - 0x27e], 1
jne 0x447f1b
mov dword [ebp - 0x4b8], 8
jmp 0x447f1b
cmp eax, 3
jne 0x447ee7
cmp byte [ebp - 0x27e], 1
jne 0x447f1b
mov dword [ebp - 0x4b8], 9
jmp 0x447f1b
cmp eax, 4
jne 0x447f1b
cmp byte [ebp - 0x27e], 1
jne 0x447f1b
mov dword [ebp - 0x4b8], 0xa
jmp 0x447f1b
push 0xa
pop edx
cmp ecx, edx
jne 0x447f1b
test eax, eax
jne 0x447f1b
cmp byte [ebp - 0x27e], 1
jne 0x447f1b
mov dword [ebp - 0x4b8], edx
test byte [ebp - 0x280], 0x40
je 0x447f2b
and dword [ebp - 0x4b8], 0
mov eax, dword [ebp - 0x4b8]
call fcn.004fc7ba
ret