Function at 0x40faf5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5138c6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [section..data]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 0x68], edi
call fcn.0040fd1b
push str.ksolite.dll
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], edi
call fcn.00404f88
mov edi, 8
add esp, 0x10
cmp dword [eax + 0x14], edi
jb 0x40fb55
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp - 0x34], edi
jb 0x40fb72
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
test bl, bl
je 0x40fbc5
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00403fa0
cmp dword [ebp - 0x18], edi
jb 0x40fba5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
mov eax, esi
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.0040330b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x64]
push 0x80000001
push ecx
call fcn.0042cbc2
push str.office6
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 1
call fcn.00405b23
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403fa0
cmp dword [ebp - 0x34], edi
jb 0x40fc07
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x50], edi
jb 0x40fc2d
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40fc38
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fc6f
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00403fa0
cmp dword [ebp - 0x18], edi
jb 0x40fba5
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x40fb9d
lea eax, [ebp - 0x64]
push 0x80000002
push eax
call fcn.0042cbc2
push str.office6
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 3
call fcn.00405b23
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00403fa0
cmp dword [ebp - 0x34], edi
jb 0x40fcb1
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x50], edi
jb 0x40fcd5
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40fce0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
test eax, eax
je 0x40fb94
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00403fa0
cmp dword [ebp - 0x18], edi
jb 0x40fba5
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x40fb9d