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

Disassembly:
push 0x4ec
mov eax, 0x51d0e7
call fcn.004f21c7
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.004e7380
push esi
lea eax, [ebp - 0x4b0]
push ebx
lea edi, [esi + 4]
push eax
mov dword [ebp - 0x398], edi
call fcn.004e7380
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 0x440e83
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.004ec303
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 0x440e90
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
and dword [ebp - 0x4f8], 0
push 8
pop ecx
push 0x53091c
xor eax, eax
lea edi, [ebp - 0x4f4]
push 0x530930
rep stosd dword es:[edi], eax
call esi
push eax
call ebx
xor esi, esi
cmp eax, esi
je 0x440ec4
lea ecx, [ebp - 0x4f8]
push ecx
call eax
jmp 0x440ed1
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.004e7380
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 0x44104f
push str._ntoskrnl.exe
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x44104f
lea edi, [ebp - 0x4d0]
lea esi, [ebp - 0x27c]
call fcn.00441521
test eax, eax
je 0x44104f
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 0x44104f
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 [0x582d44]
mov ecx, 0x582d44
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.00405747
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.004e7380
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 0x441039
mov eax, dword [ebp - 0x4bc]
push dword [eax - 0xc]
push eax
push esi
call fcn.004e8702
add esp, 0xc
test eax, eax
jne 0x441039
mov eax, dword [ebp - 0x4bc]
mov eax, dword [eax - 0xc]
lea eax, [esi + eax*2]
push eax
call fcn.004f00da
pop ecx
mov dword [edi], eax
mov eax, dword [ebp - 0x4bc]
add eax, 0xfffffff0
call fcn.0040557a
lea eax, [esi - 0x10]
call fcn.0040557a
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 0x4410d1
test eax, eax
jne 0x441085
mov dword [ebp - 0x4b8], 1
jmp 0x44119a
cmp eax, 1
jne 0x441099
mov dword [ebp - 0x4b8], 2
jmp 0x44119a
push 2
pop ecx
cmp eax, ecx
jne 0x44119a
cmp byte [ebp - 0x27e], 1
jne 0x4410c2
cmp word [ebp - 0x4f8], 9
jne 0x4410c2
mov dword [ebp - 0x4b8], ecx
jmp 0x44119a
mov dword [ebp - 0x4b8], 4
jmp 0x44119a
push 6
pop edx
cmp ecx, edx
jne 0x441180
test eax, eax
jne 0x441107
push 3
pop eax
cmp byte [ebp - 0x27e], al
je 0x441194
cmp byte [ebp - 0x27e], 2
je 0x441194
mov dword [ebp - 0x4b8], eax
jmp 0x44119a
cmp eax, 1
jne 0x441132
cmp byte [ebp - 0x27e], 3
je 0x441126
cmp byte [ebp - 0x27e], 2
je 0x441126
mov dword [ebp - 0x4b8], esi
jmp 0x44119a
mov dword [ebp - 0x4b8], 7
jmp 0x44119a
cmp eax, 2
jne 0x44114c
cmp byte [ebp - 0x27e], 1
jne 0x44119a
mov dword [ebp - 0x4b8], 8
jmp 0x44119a
cmp eax, 3
jne 0x441166
cmp byte [ebp - 0x27e], 1
jne 0x44119a
mov dword [ebp - 0x4b8], 9
jmp 0x44119a
cmp eax, 4
jne 0x44119a
cmp byte [ebp - 0x27e], 1
jne 0x44119a
mov dword [ebp - 0x4b8], 0xa
jmp 0x44119a
push 0xa
pop edx
cmp ecx, edx
jne 0x44119a
test eax, eax
jne 0x44119a
cmp byte [ebp - 0x27e], 1
jne 0x44119a
mov dword [ebp - 0x4b8], edx
test byte [ebp - 0x280], 0x40
je 0x4411aa
and dword [ebp - 0x4b8], 0
mov eax, dword [ebp - 0x4b8]
call fcn.004f224a
ret