Function at 0x422aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x58d038]
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.00421450
push str.ksolite.dll
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], edi
call fcn.00419950
mov edi, 8
add esp, 0x10
cmp dword [eax + 0x14], edi
jb 0x422b00
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp - 0x34], edi
jb 0x422b1d
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480102
add esp, 4
test bl, bl
je 0x422b70
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.00402560
cmp dword [ebp - 0x18], edi
jb 0x422b50
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
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.00480264
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x64]
push 0x80000001
push ecx
call fcn.004221a0
push str.office6
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 1
call fcn.00404e30
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402560
cmp dword [ebp - 0x34], edi
jb 0x422bb2
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480102
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 0x422bd8
mov edx, dword [ebp - 0x64]
push edx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x422be3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422c1a
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.00402560
cmp dword [ebp - 0x18], edi
jb 0x422b50
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x422b48
lea eax, [ebp - 0x64]
push 0x80000002
push eax
call fcn.004221a0
push str.office6
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 3
call fcn.00404e30
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00402560
cmp dword [ebp - 0x34], edi
jb 0x422c5c
mov edx, dword [ebp - 0x48]
push edx
call fcn.00480102
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 0x422c80
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x422c8b
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 0x422b3f
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402560
cmp dword [ebp - 0x18], edi
jb 0x422b50
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x422b48