Function at 0x47539c
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 [0x4ffeb0]
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.004a0bd0
push esi
lea eax, [ebp - 0x38]
push 0
lea edi, [esi + 4]
push eax
mov dword [ebp + 0xe0], edi
call fcn.004a0bd0
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 0x47549c
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.004a3178
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 0x4754a9
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 0x4e0d00
rep stosd dword es:[edi], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
je 0x4754d8
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x4754e2
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.004a0bd0
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 0x475630
push str._ntoskrnl.exe
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x475630
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1fc]
push eax
call fcn.00474afd
pop ecx
pop ecx
test eax, eax
je 0x475630
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 0x475630
mov dword [ebp + 0xe8], ecx
push 0x50739c
lea ecx, [ebp - 0x54]
mov dword [ebp + 0xe4], eax
mov dword [ebx], edi
call fcn.0041af40
push str.Service_Pack
lea ecx, [ebp - 0x44]
call fcn.00404030
xor eax, eax
push 0x62
mov word [ebp + 0x404], ax
lea eax, [ebp + 0x406]
push edi
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x404]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x4d2bcc
push 0x4d2b70
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 0x47561e
push dword [esi - 0xc]
push esi
push edi
call fcn.004a30d2
add esp, 0xc
test eax, eax
jne 0x47561e
mov eax, dword [esi - 0xc]
lea eax, [edi + eax*2]
push eax
call fcn.004a2fdd
pop ecx
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.00404d60
lea ecx, [edi - 0x10]
call fcn.00404d60
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 0x47569d
cmp eax, edi
jne 0x47565d
mov dword [ebp - 0x40], 1
jmp 0x475751
cmp eax, 1
jne 0x47566e
mov dword [ebp - 0x40], 2
jmp 0x475751
push 2
pop ecx
cmp eax, ecx
jne 0x475751
cmp byte [ebp + 0x1fa], 1
jne 0x475691
cmp word [ebp - 0x80], 9
jne 0x475691
mov dword [ebp - 0x40], ecx
jmp 0x475751
mov dword [ebp - 0x40], 4
jmp 0x475751
push 6
pop edx
cmp ecx, edx
jne 0x47573a
cmp eax, edi
jne 0x4756d0
push 3
pop eax
cmp byte [ebp + 0x1fa], al
je 0x47574e
cmp byte [ebp + 0x1fa], 2
je 0x47574e
mov dword [ebp - 0x40], eax
jmp 0x475751
cmp eax, 1
jne 0x4756f5
cmp byte [ebp + 0x1fa], 3
je 0x4756ec
cmp byte [ebp + 0x1fa], 2
je 0x4756ec
mov dword [ebp - 0x40], esi
jmp 0x475751
mov dword [ebp - 0x40], 7
jmp 0x475751
cmp eax, 2
jne 0x47570c
cmp byte [ebp + 0x1fa], 1
jne 0x475751
mov dword [ebp - 0x40], 8
jmp 0x475751
cmp eax, 3
jne 0x475723
cmp byte [ebp + 0x1fa], 1
jne 0x475751
mov dword [ebp - 0x40], 9
jmp 0x475751
cmp eax, 4
jne 0x475751
cmp byte [ebp + 0x1fa], 1
jne 0x475751
mov dword [ebp - 0x40], 0xa
jmp 0x475751
push 0xa
pop edx
cmp ecx, edx
jne 0x475751
cmp eax, edi
jne 0x475751
cmp byte [ebp + 0x1fa], 1
jne 0x475751
mov dword [ebp - 0x40], edx
test byte [ebp + 0x1f8], 0x40
je 0x47575d
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.004a0e91
add ebp, 0x46c
leave
ret