Function at 0x41f640
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 0x495d9e
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4c51d0]
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 0x41f6a3
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], ebx
mov dword [ebp - 4], 0
call fcn.00421b60
push 0x49c880
call fcn.0046e898
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.00422e50
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 0x41f6e0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f6e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x234]
call fcn.0040e520
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 0x41f721
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
call fcn.0040e7f0
push 0xe
push 0x4a8874
lea ebx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.0040d430
mov ecx, dword [ebp - 0x23c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call ebx
test eax, eax
jne 0x41f774
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 0x41fe8f
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004720e0
add esp, 0xc
push 0
push 5
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test byte [0x4d0034], 1
jne 0x41f7cf
or dword [0x4d0034], 1
mov byte [ebp - 4], 5
call fcn.004156f0
push 0x49c6e0
call fcn.0046e898
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [0x4d006c]
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 0x41f816
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x240], esp
push edx
call fcn.00401c40
lea eax, [ebp - 0x23c]
push eax
call fcn.0040f220
add esp, 8
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41f840
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 6
call fcn.00421b60
push 0x49c880
call fcn.0046e898
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.00422e50
lea edx, [ebp - 0x238]
push 0x4cfbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 7
call fcn.004078b0
add esp, 8
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
call fcn.00420060
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 0x41f8a3
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 0x41f8ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a8894
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 0x41f8f7
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x238]
call fcn.0040e7f0
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.00404f50
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 0x41f936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push 0x4a88a4
lea ebx, [ebp - 0x23c]
call fcn.0040d430
push 0
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4a88c8
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.00401c40
mov ecx, ebx
push ecx
call fcn.0040f220
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 0x41f9de
cmp ax, 6
je 0x41f9de
mov eax, dword [ebp - 0x234]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jae 0x41f9c2
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4a8928
push eax
lea eax, [ebp - 0x218]
push 0x4a8914
push eax
call esi
jmp 0x41fa12
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f9f3
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4a88f4
push eax
lea ecx, [ebp - 0x218]
push 0x4a8914
push ecx
call esi
mov ebx, 8
add esp, 0x10
push 0x38
lea edx, [ebp - 0x280]
push 0
push edx
call fcn.004720e0
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], 0x4a8944
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], 0
call edi
mov ax, word [ebp - 0x2a8]
cmp ax, 9
je 0x41faa6
cmp ax, 6
je 0x41faa6
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41fa92
lea eax, [ebp - 0x234]
push 0x4a8984
push eax
push 0x4a8914
lea edx, [ebp - 0x218]
push edx
jmp 0x41facc
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x41faba
lea eax, [ebp - 0x234]
push 0x4a8960
push eax
push 0x4a8914
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 0x4a89a4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.00401c40
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, 0x4a59e4
mov ecx, 0x4a89bc
call fcn.004161d0
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 0x41fb57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a89c8
lea ecx, [ebp - 0x238]
call fcn.00401c40
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, 0x4a59e4
mov ecx, 0x4a89a4
call fcn.004161d0
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 0x41fbb6
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 0x41fbdf
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0xd
call fcn.00421b60
push 0x49c880
call fcn.0046e898
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.00422e50
lea edx, [ebp - 0x238]
push 0x4cfbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 0xe
call fcn.004078b0
add esp, 8
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.00404f50
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 0x41fc3f
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 0x41fc66
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, 0x4a59e4
mov ecx, 0x4a89d8
call fcn.004161d0
add esp, 0x10
push 0x4a56b0
lea ecx, [ebp - 0x238]
call fcn.00401c40
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, 0x4a59e4
mov ecx, 0x4a8a08
call fcn.004161d0
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 0x41fceb
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 0x41fd14
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0x11
call fcn.00421b60
push 0x49c880
call fcn.0046e898
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.00422e50
lea edx, [ebp - 0x240]
push 0x4cfbfc
push edx
mov ebx, eax
mov byte [ebp - 4], 0x12
call fcn.004078b0
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x244]
push 0x4a6e4c
push ecx
call fcn.0040d860
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 0x41fd7d
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 0x41fda4
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, 0x4a59e4
mov ecx, 0x4a8a2c
call fcn.004161d0
add esp, 0x10
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
jne 0x41fdf3
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallPath___serialization_boost__CAAAVCFpInstallPath__XZ_51], 1
mov byte [ebp - 4], 0x14
call fcn.00421b60
push 0x49c880
call fcn.0046e898
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.00422e50
mov eax, dword [eax]
push 0x4a3960
push eax
lea edx, [ebp - 0x218]
push 0x4a7d08
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 0x41fe3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
call fcn.0040be30
lea ecx, [ebp - 0x218]
call fcn.0040beb0
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 0x41fe75
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 0x41fe9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x220], 8
jb 0x41feb3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0046e5ca
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.0046e5d5
mov esp, ebp
pop ebp
ret