Function at 0x41f540
Capabilities:
Check if file exists
Create directory
Create process on windows
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49385e
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4c21d0]
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
mov ebx, 1
mov edi, ecx
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], bl
jne 0x41f5a3
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], ebx
mov dword [ebp - 4], 0
call fcn.00421cd0
push 0x49a350
call fcn.0046c718
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x248]
push eax
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422fc0
mov dword [ebp - 4], ebx
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x234], cx
mov ecx, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea esi, [ecx + 2]
jmp 0x41f5e0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f5e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x234]
call fcn.0040e410
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f621
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
call fcn.0040e6e0
push 0xe
push str.FsLibraryFsv
lea ebx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.0040d300
mov ecx, dword [ebp - 0x23c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call ebx
test eax, eax
jne 0x41f674
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41fd8f
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0046ff60
add esp, 0xc
push 0
push 5
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test byte [0x4cd034], 1
jne 0x41f6cf
or dword [0x4cd034], 1
mov byte [ebp - 4], 5
call fcn.004152e0
push 0x49a1b0
call fcn.0046c718
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [0x4cd06c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edx
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
push ecx
call ebx
test eax, eax
jne 0x41f716
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x240], esp
push edx
call fcn.00401bb0
lea eax, [ebp - 0x23c]
push eax
call fcn.0040ed00
add esp, 8
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41f740
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 6
call fcn.00421cd0
push 0x49a350
call fcn.0046c718
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x244]
push ecx
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422fc0
lea edx, [ebp - 0x238]
push 0x4ccbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 7
call fcn.00407700
add esp, 8
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
call fcn.0041ff60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a6894
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f7f7
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x238]
call fcn.0040e6e0
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.00404db0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f836
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push str.FsLibraryPoster
lea ebx, [ebp - 0x23c]
call fcn.0040d300
push 0
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.FunshionMediaLibrary
lea edx, [ebp - 0x218]
push edx
call esi
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.00401bb0
mov ecx, ebx
push ecx
call fcn.0040ed00
add esp, 8
lea edx, [ebp - 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x2a8]
cmp ax, 9
je 0x41f8de
cmp ax, 6
je 0x41f8de
mov eax, dword [ebp - 0x234]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jae 0x41f8c2
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.FsShlExt.dll
push eax
lea eax, [ebp - 0x218]
push str._s___s_s_
push eax
call esi
jmp 0x41f912
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f8f3
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.FsShlExt64.dll
push eax
lea ecx, [ebp - 0x218]
push str._s___s_s_
push ecx
call esi
mov ebx, 8
add esp, 0x10
push 0x38
lea edx, [ebp - 0x280]
push 0
push edx
call fcn.0046ff60
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
add esp, 0xc
lea ecx, [ebp - 0x284]
lea eax, [ebp - 0x218]
push ecx
mov dword [ebp - 0x284], 0x3c
mov dword [ebp - 0x280], 0x500
mov dword [ebp - 0x274], str.regsvr32.exe
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], 0
call edi
mov ax, word [ebp - 0x2a8]
cmp ax, 9
je 0x41f9a6
cmp ax, 6
je 0x41f9a6
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41f992
lea eax, [ebp - 0x234]
push str.FsMediaBar.dll
push eax
push str._s___s_s_
lea edx, [ebp - 0x218]
push edx
jmp 0x41f9cc
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41f9ba
lea eax, [ebp - 0x234]
push str.FsMediaBar64.dll
push eax
push str._s___s_s_
lea eax, [ebp - 0x218]
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x284]
push ecx
call edi
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov bl, 0xa
push str.FunshionFsv
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.00401bb0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x80000000
mov edx, 0x4a39e4
mov ecx, str..fsv
call fcn.00415dc0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.FSV
lea ecx, [ebp - 0x238]
call fcn.00401bb0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x80000000
mov edx, 0x4a39e4
mov ecx, str.FunshionFsv
call fcn.00415dc0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41fadf
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0xd
call fcn.00421cd0
push 0x49a350
call fcn.0046c718
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x240]
push ecx
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422fc0
lea edx, [ebp - 0x238]
push 0x4ccbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 0xe
call fcn.00407700
add esp, 8
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.00404db0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 0xa
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x80000000
mov edx, 0x4a39e4
mov ecx, str.FunshionFsvDefaultIcon
call fcn.00415dc0
add esp, 0x10
push str.open
lea ecx, [ebp - 0x238]
call fcn.00401bb0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x80000000
mov edx, 0x4a39e4
mov ecx, str.FunshionFsv_shell
call fcn.00415dc0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fbeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41fc14
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0x11
call fcn.00421cd0
push 0x49a350
call fcn.0046c718
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x238]
push ecx
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422fc0
lea edx, [ebp - 0x240]
push 0x4ccbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 0x12
call fcn.00407700
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x244]
push str.__s_____1_
push ecx
call fcn.0040d750
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fc7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 0xa
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x244]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
push edi
push 1
push 0x80000000
mov edx, 0x4a39e4
mov ecx, str.FunshionFsv_shellopencommand
call fcn.00415dc0
add esp, 0x10
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41fcf3
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0x14
call fcn.00421cd0
push 0x49a350
call fcn.0046c718
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x240]
push ecx
push sym.Install.exe__t__1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_4V__singleton_wrapp
call fcn.00422fc0
mov eax, dword [eax]
push 0x4a1960
push eax
lea edx, [ebp - 0x218]
push 0x4a5d08
push edx
call esi
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
call fcn.0040bd00
lea ecx, [ebp - 0x218]
call fcn.0040bd80
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x220], 8
jb 0x41fdb3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0046c44a
add esp, 4
mov eax, 1
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.0046c455
mov esp, ebp
pop ebp
ret