Function at 0x41faa1
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc4
mov eax, 0x528bc0
call fcn.004e27d2
mov esi, ecx
mov dword [ebp - 0xc8], esi
mov eax, dword [esi + 0x560]
cmp dword [eax], 2
jne 0x41fbc1
cmp dword [eax + 4], 1
jne 0x41fbc1
mov edi, dword [eax + 8]
xorps xmm0, xmm0
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 0xd0]
push eax
push ebx
push edi
push ecx
movlpd qword [ebp - 0xd0], xmm0
call fcn.00420051
cmp eax, 0xffffffff
jne 0x41fb06
push 0xb
mov ecx, esi
call fcn.0041f7ab
xor al, al
jmp 0x41fea7
cmp eax, 0xfffffffe
jne 0x41fbc1
mov ecx, esi
call fcn.00420481
lea eax, [ebp - 0xd0]
push eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00420051
cmp eax, 0xffffffff
je 0x41faf6
cmp eax, 0xfffffffe
jne 0x41fbc1
xor ebx, ebx
mov edi, str.Other
push ebx
push str.DL008
push str.FlowError
push edi
call fcn.0043200e
mov ecx, eax
call fcn.0043206a
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xc0]
push dword [ebp - 0xd0]
call fcn.004191c7
push eax
mov edx, str.install_
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
call fcn.0042771d
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x41fb8b
mov eax, dword [eax]
push ebx
push eax
push str.NoEnoughSpace
push edi
call fcn.0043200e
mov ecx, eax
call fcn.0043206a
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040c02b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
push ebx
push 1
call fcn.0040c02b
jmp 0x41faf6
xor ebx, ebx
mov dword [ebp - 0x34], 7
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041addc
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fc3f
push ebx
push str.DL009
push str.FlowError
push str.Other
call fcn.0043200e
mov ecx, eax
call fcn.0043206a
push 4
mov ecx, esi
call fcn.0041f7ab
mov byte [ebp - 0xc1], bl
jmp 0x41fe96
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.004021fe
call fcn.0041f956
test eax, eax
je 0x41fd56
push ebx
push 0x557b61
push str.ProcessNeedRestartSign
push str.Other
call fcn.0043200e
mov ecx, eax
call fcn.0043206a
push 7
xor eax, eax
lea edi, [ebp - 0x2e]
pop ecx
mov word [ebp - 0x30], ax
xor esi, esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x78]
inc esi
stosw word es:[edi], ax
mov edi, 0x554928
push edi
call fcn.004099b0
push edi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004099b0
mov byte [ebp - 4], 4
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
push esi
push 0x55bcb8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x30]
push eax
call fcn.00401963
add esp, 0x10
lea ecx, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402310
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0xc0]
call fcn.00427849
pop ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.004021ad
push ebx
push 1
lea ecx, [ebp - 0xc0]
call fcn.00402226
sub esp, 0x18
lea eax, [ebp - 0x90]
mov ecx, esp
inc esi
push eax
call fcn.004021fe
call fcn.0041f956
test eax, eax
jne 0x41fcab
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402389
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.00402226
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00402226
mov esi, dword [ebp - 0xc8]
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x98], ebx
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.0041b194
lea edi, [esi + 0x380]
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x41fda6
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00402389
push dword [ebp - 0x50]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push ebx
cmovae eax, dword [ebp - 0x60]
mov ecx, edi
push eax
call fcn.0040227d
cmp eax, 0xffffffff
jne 0x41fe46
push 0x554928
lea ecx, [ebp - 0x78]
call fcn.004099b0
push str.InstallPathLastLe
mov byte [ebp - 4], 7
call fcn.00401963
pop ecx
push eax
push ebx
push str.InstallPathLastLe
lea ecx, [ebp - 0x78]
call fcn.0040227d
mov edx, 0x554928
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x78]
call fcn.0040f6f3
test al, al
jne 0x41fe11
cmp dword [ebp - 0xc8], 0xffffffff
je 0x41fe37
push 0x559cf0
call fcn.00401963
pop ecx
push eax
push 0x559cf0
mov ecx, edi
call fcn.004268f4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.00426998
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00402226
mov ecx, dword [esi + 0x368]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1bc]
mov ecx, dword [esi + 0x478]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1bc]
mov ecx, dword [esi + 0x35c]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd8]
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 0xc1], 1
call fcn.00402226
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.00402226
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402226
mov al, byte [ebp - 0xc1]
call fcn.004e277c
ret