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

Disassembly:
push 0x4ec
mov eax, 0x4e10a2
call fcn.004b5257
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4d4], 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.004b4620
push esi
lea eax, [ebp - 0x4b0]
push ebx
lea edi, [esi + 4]
push eax
mov dword [ebp - 0x398], edi
call fcn.004b4620
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 0x46ac5d
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.004b84e2
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 0x46ac6a
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
and dword [ebp - 0x4f8], 0
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
lea edi, [ebp - 0x4f4]
push str.kernel32.dll
rep stosd dword es:[edi], eax
call esi
push eax
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x46ac9e
lea ecx, [ebp - 0x4f8]
push ecx
call eax
jmp 0x46acab
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x394]
movzx eax, word [ebp - 0x284]
imul esi, esi, 0xa
mov edi, dword [ebp - 0x4bc]
add esi, dword [ebp - 0x390]
mov dword [edi], eax
xor eax, eax
push 0x206
mov word [ebp - 0x27c], ax
lea eax, [ebp - 0x27a]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ebx, ebx
inc ebx
test eax, eax
jl 0x46ae30
push str._ntoskrnl.exe
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x46ae30
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0046a2b6
pop ecx
pop ecx
test eax, eax
je 0x46ae30
mov eax, dword [ebp - 0x4c4]
movzx ecx, word [ebp - 0x4c4]
shr eax, 0x10
mov edx, eax
imul edx, edx, 0xa
add edx, ecx
cmp esi, edx
jge 0x46ae30
mov dword [ebp - 0x390], ecx
xor esi, esi
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x394], eax
mov dword [edi], esi
call fcn.0040c7d0
mov dword [ebp - 4], esi
push str.Service_Pack
lea ecx, [ebp - 0x4c0]
call fcn.0044bc85
mov byte [ebp - 4], bl
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c4]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x4d0], 0x64
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46ae12
mov eax, dword [ebp - 0x4c0]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x4bc]
call fcn.004b6581
add esp, 0xc
test eax, eax
jne 0x46ae12
mov eax, dword [ebp - 0x4c0]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x4bc]
lea eax, [ecx + eax*2]
push eax
call fcn.004bc1e2
pop ecx
mov dword [edi], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4bc]
call fcn.0040d610
mov ecx, dword [ebp - 0x394]
mov eax, dword [ebp - 0x4cc]
mov edx, dword [ebp - 0x4d4]
push 5
mov dword [eax], ecx
mov eax, dword [ebp - 0x390]
pop esi
mov dword [edx], eax
cmp ecx, esi
jne 0x46aeac
test eax, eax
jne 0x46ae62
mov dword [ebp - 0x4b8], ebx
jmp 0x46af70
cmp eax, ebx
jne 0x46ae75
mov dword [ebp - 0x4b8], 2
jmp 0x46af70
push 2
pop ecx
cmp eax, ecx
jne 0x46af70
cmp byte [ebp - 0x27e], bl
jne 0x46ae9d
cmp word [ebp - 0x4f8], 9
jne 0x46ae9d
mov dword [ebp - 0x4b8], ecx
jmp 0x46af70
mov dword [ebp - 0x4b8], 4
jmp 0x46af70
push 6
pop edx
cmp ecx, edx
jne 0x46af57
test eax, eax
jne 0x46aee2
push 3
pop eax
cmp byte [ebp - 0x27e], al
je 0x46af6a
cmp byte [ebp - 0x27e], 2
je 0x46af6a
mov dword [ebp - 0x4b8], eax
jmp 0x46af70
cmp eax, ebx
jne 0x46af0c
cmp byte [ebp - 0x27e], 3
je 0x46af00
cmp byte [ebp - 0x27e], 2
je 0x46af00
mov dword [ebp - 0x4b8], esi
jmp 0x46af70
mov dword [ebp - 0x4b8], 7
jmp 0x46af70
cmp eax, 2
jne 0x46af25
cmp byte [ebp - 0x27e], bl
jne 0x46af70
mov dword [ebp - 0x4b8], 8
jmp 0x46af70
cmp eax, 3
jne 0x46af3e
cmp byte [ebp - 0x27e], bl
jne 0x46af70
mov dword [ebp - 0x4b8], 9
jmp 0x46af70
cmp eax, 4
jne 0x46af70
cmp byte [ebp - 0x27e], bl
jne 0x46af70
mov dword [ebp - 0x4b8], 0xa
jmp 0x46af70
push 0xa
pop edx
cmp ecx, edx
jne 0x46af70
test eax, eax
jne 0x46af70
cmp byte [ebp - 0x27e], bl
jne 0x46af70
mov dword [ebp - 0x4b8], edx
test byte [ebp - 0x280], 0x40
je 0x46af80
and dword [ebp - 0x4b8], 0
mov eax, dword [ebp - 0x4b8]
call fcn.004b52da
ret