Function at 0x458d30
Capabilities:
Check os version
Get common file path
Get startup folder
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef689
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2b4]
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea ecx, [ebp - 0x3d4]
push 0
push ecx
mov dword [ebp - 0x3d8], 0x11c
call fcn.004be120
add esp, 0xc
lea edx, [ebp - 0x3d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x458e49
cmp dword [ebp - 0x3d4], 6
setae al
test al, al
je 0x458e49
lea esi, [ebp - 0x258]
call fcn.00403c60
mov ebx, 8
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], ebx
jb 0x458dd2
mov eax, dword [eax]
add edi, 0x1c
cmp dword [edi + 0x14], ebx
jb 0x458dde
mov ecx, dword [edi]
jmp 0x458de0
mov ecx, edi
push eax
push ecx
call fcn.0040d140
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x244], ebx
jb 0x458e08
mov eax, dword [ebp - 0x258]
push eax
call fcn.004b6106
add esp, 4
lea esi, [ebp - 0x258]
call fcn.00403c60
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x458e21
mov eax, dword [eax]
cmp dword [edi + 0x14], ebx
jb 0x458e28
mov edi, dword [edi]
push eax
push edi
call fcn.0040d140
add esp, 8
cmp dword [ebp - 0x244], ebx
jb 0x458e49
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.004b6106
add esp, 4
xor edx, edx
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], dx
mov ebx, 2
mov dword [ebp - 4], ebx
cmp dword [0x54566c], edx
je 0x458fa9
mov esi, dword [0x545650]
mov eax, esi
cmp esi, 6
jb 0x458e8a
lea eax, [edx + 6]
cmp dword [0x545654], 0x10
mov edx, dword [0x545640]
jae 0x458e9e
mov edx, 0x545640
mov ecx, str.soyiba
call fcn.00406190
test eax, eax
jne 0x458ec0
cmp esi, 6
jae 0x458eb6
or eax, 0xffffffff
jmp 0x458ebe
xor eax, eax
cmp esi, 6
setne al
test eax, eax
sete al
test al, al
jne 0x458ef8
mov ecx, 0x50b6b4
call fcn.00443690
test al, al
je 0x458fa9
mov ecx, 0x50b6b8
call fcn.00443690
test al, al
je 0x458fa9
call fcn.00459b40
test al, al
jne 0x458fa9
mov ecx, 0x54565c
lea esi, [ebp - 0x258]
call fcn.00403b30
mov edi, eax
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.00406400
mov byte [ebp - 4], bl
cmp dword [ebp - 0x244], 8
jb 0x458f34
mov eax, dword [ebp - 0x258]
push eax
call fcn.004b6106
add esp, 4
mov esi, dword [ebp - 0x23c]
mov edi, 8
cmp dword [ebp - 0x228], edi
jae 0x458f4d
lea esi, [ebp - 0x23c]
push 0x10
call fcn.004301e0
mov esi, dword [ebp - 0x23c]
add esp, 4
cmp dword [ebp - 0x228], edi
jae 0x458f6b
lea esi, [ebp - 0x23c]
push 0xb
call fcn.004301e0
mov eax, dword [ebp - 0x23c]
add esp, 4
cmp dword [ebp - 0x228], edi
jae 0x458f89
lea eax, [ebp - 0x23c]
push eax
mov edx, 0x49
push 0x514cb0
push str.UnSetupUnSetupModule.cpp
lea esi, [edx - 0x45]
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
lea esi, [ebp - 0x258]
call fcn.00403b50
mov edi, eax
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.00406400
mov byte [ebp - 4], bl
cmp dword [ebp - 0x244], 8
jb 0x458fe0
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.004b6106
add esp, 4
mov esi, dword [ebp - 0x23c]
mov edi, 8
cmp dword [ebp - 0x228], edi
jae 0x458ff9
lea esi, [ebp - 0x23c]
push 0x10
call fcn.004301e0
mov esi, dword [ebp - 0x23c]
add esp, 4
cmp dword [ebp - 0x228], edi
jae 0x459017
lea esi, [ebp - 0x23c]
push 0xb
call fcn.004301e0
mov eax, dword [ebp - 0x23c]
add esp, 4
cmp dword [ebp - 0x228], edi
jae 0x459035
lea eax, [ebp - 0x23c]
push eax
mov edx, 0x4e
push 0x514cb0
push str.UnSetupUnSetupModule.cpp
lea esi, [edx - 0x4a]
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
push 0x208
xor esi, esi
lea eax, [ebp - 0x21e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x220], dx
call fcn.004be120
add esp, 0xc
push esi
push ebx
lea ecx, [ebp - 0x220]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
xor edx, edx
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x280], esi
mov word [ebp - 0x290], dx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, ebx
cmp cx, si
jne 0x4590b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x290]
call fcn.004073c0
push 1
mov eax, 0x50b670
lea ecx, [ebp - 0x290]
call fcn.004065e0
xor ecx, ecx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x264], esi
mov word [ebp - 0x274], cx
mov byte [ebp - 4], 6
cmp dword [0x54566c], esi
je 0x459241
mov esi, dword [0x545650]
mov eax, esi
cmp esi, 6
jb 0x459118
lea eax, [ecx + 6]
cmp dword [0x545654], 0x10
mov edx, dword [0x545640]
jae 0x45912c
mov edx, 0x545640
mov ecx, str.soyiba
call fcn.00406190
test eax, eax
jne 0x45914e
cmp esi, 6
jae 0x459144
or eax, 0xffffffff
jmp 0x45914c
xor eax, eax
cmp esi, 6
setne al
test eax, eax
sete al
test al, al
jne 0x459186
mov ecx, 0x50b6b4
call fcn.00443690
test al, al
je 0x459241
mov ecx, 0x50b6b8
call fcn.00443690
test al, al
je 0x459241
call fcn.00459b40
test al, al
jne 0x459241
lea esi, [ebp - 0x258]
call fcn.00403cd0
mov edi, eax
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 7
call fcn.00406400
mov byte [ebp - 4], 6
cmp dword [ebp - 0x244], 8
jb 0x4591be
mov edx, dword [ebp - 0x258]
push edx
call fcn.004b6106
add esp, 4
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ebx, [ebp - 0x274]
call fcn.0042cb30
add esp, 8
mov ebx, 8
mov byte [ebp - 4], bl
cmp dword [eax + 0x14], ebx
jb 0x4591e9
mov eax, dword [eax]
push eax
call fcn.00402580
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x244], ebx
jb 0x45920d
mov edx, dword [ebp - 0x258]
push edx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x274]
cmp dword [ebp - 0x260], ebx
jae 0x459221
lea eax, [ebp - 0x274]
push eax
mov edx, 0x5a
push 0x514d40
push str.UnSetupUnSetupModule.cpp
lea esi, [edx - 0x56]
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
lea esi, [ebp - 0x258]
call fcn.00403cf0
mov edi, eax
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 9
call fcn.00406400
mov byte [ebp - 4], 6
cmp dword [ebp - 0x244], 8
jb 0x459279
mov eax, dword [ebp - 0x258]
push eax
call fcn.004b6106
add esp, 4
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x2ac]
push edx
lea ebx, [ebp - 0x274]
call fcn.0042cb30
add esp, 8
mov edi, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], edi
jb 0x4592a5
mov eax, dword [eax]
push eax
call fcn.00402580
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x298], edi
jb 0x4592c9
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x274]
cmp dword [ebp - 0x260], edi
jae 0x4592dd
lea eax, [ebp - 0x274]
push eax
mov edx, 0x5e
push 0x514d40
push str.UnSetupUnSetupModule.cpp
lea esi, [edx - 0x5a]
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
cmp dword [ebp - 0x260], edi
jb 0x459314
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.004b6106
add esp, 4
xor ebx, ebx
xor edx, edx
mov esi, 7
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x274], dx
cmp dword [ebp - 0x27c], edi
jb 0x459347
mov eax, dword [ebp - 0x290]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], ebx
mov word [ebp - 0x290], cx
cmp dword [ebp - 0x228], edi
jb 0x459373
mov edx, dword [ebp - 0x23c]
push edx
call fcn.004b6106
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret