Function at 0x408730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x431f1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x90], esi
push eax
mov dword [ebp - 0x94], ebx
call fcn.0040a010
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x4087b6
push str.ksolite.dll
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401280
add esp, 0xc
mov ebx, 1
cmp dword [eax + 0x14], 8
jb 0x4087a4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x89], 0
test eax, eax
je 0x4087bd
mov byte [ebp - 0x89], 1
test bl, 1
je 0x4087ca
lea ecx, [ebp - 0x70]
call fcn.00401a00
cmp byte [ebp - 0x89], 0
je 0x408809
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x14], ecx
jmp 0x4088b6
push 1
push str.InstallRoot
lea eax, [ebp - 0x58]
push str.SoftwareKingsoftPDFCommon
push eax
call fcn.00408cf0
add esp, 0x10
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 1
jne 0x4088d3
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401a00
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4088b6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4088ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b1f
push edx
push ecx
call fcn.0040cf06
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d173
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4088ff
dec ecx
lea eax, [ebp - 0x28]
cmp edx, 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401480
push 1
push 0x422d48
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402510
push 7
push str.office6
mov ecx, eax
call fcn.00402510
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00411f35
add esp, 8
test eax, eax
je 0x408a92
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401480
push 1
push 0x422d48
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00402510
push 7
push str.wtoolex
mov ecx, eax
call fcn.00402510
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x5c], 8
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00411f35
add esp, 8
test eax, eax
jne 0x4089c1
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402690
jmp 0x408a8a
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402690
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
test eax, eax
je 0x408a8a
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x408a12
cmp eax, edx
je 0x408a8a
sub eax, 2
cmp word [eax], 0x5c
jne 0x408a01
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x408a8a
push eax
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.00405ff0
push eax
lea ecx, [ebp - 0x40]
call fcn.00401bb0
lea ecx, [ebp - 0x88]
call fcn.00401a00
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00411f35
add esp, 8
test eax, eax
jne 0x408a8a
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408530
push str.office6
push 0x422d48
lea ecx, [ebp - 0x28]
call fcn.00409c30
mov ecx, eax
call fcn.00409c30
lea ecx, [ebp - 0x70]
call fcn.00401a00
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401a00
lea ecx, [ebp - 0x58]
call fcn.00401a00
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4088b6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4088ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4088ac
call fcn.00410b2a
int3