Function at 0x4221a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e97b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc4], ebx
push ebx
mov dword [ebp - 0xc0], ecx
xor edx, edx
mov esi, 7
push 0x551f80
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00401b70
push 0xb
xor eax, eax
push str.InstallRoot
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00401b70
mov byte [ebp - 4], 2
call fcn.004216e0
mov edx, str.SOFTWAREKingsoftPDFCommon
test al, al
jne 0x422243
mov edx, str.SOFTWAREKingsoftOffice6.0Common
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422254
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x64]
call fcn.00401b70
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x64]
push ecx
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00421ef0
add esp, 0x14
mov edi, 8
mov dword [ebp - 0xc4], 1
cmp dword [ebp - 0x50], edi
jb 0x4222b3
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x18], edi
jb 0x4222d0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x4222f0
mov edx, dword [ebp - 0x48]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
cmp dword [eax + 0x10], ebx
je 0x42231d
cmp dword [eax + 0x14], edi
jb 0x42230e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4224e6
xor ecx, ecx
push ebx
mov word [ebp - 0xe0], cx
push 0x551f80
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], ebx
call fcn.00401b70
push esi
xor edx, edx
push str.Version
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], 4
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
call fcn.00401b70
push 0x23
xor eax, eax
push str.SOFTWAREKingsoftOffice6.0Common
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
call fcn.00401b70
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0xc0]
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
push ecx
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 6
call fcn.00421ef0
add esp, 0x14
cmp dword [ebp - 0x6c], edi
jb 0x4223cc
mov eax, dword [ebp - 0x80]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x88], edi
jb 0x4223ef
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xcc], edi
jb 0x42241f
mov ecx, dword [ebp - 0xe0]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], ebx
mov word [ebp - 0xe0], dx
cmp dword [ebp - 0xa8], ebx
je 0x4224cf
lea eax, [ebp - 0x64]
push eax
call fcn.00421450
push 0x54bf94
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00404e30
lea edx, [ebp - 0xb8]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xc
call fcn.00410870
add esp, 0x1c
mov ecx, dword [ebp - 0xbc]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402560
cmp dword [ebp - 0x34], edi
jb 0x422495
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x4224b2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], edi
jb 0x4224cf
mov edx, dword [ebp - 0x64]
push edx
call fcn.00480102
add esp, 4
cmp dword [ebp - 0xa4], edi
jb 0x4224e6
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0xbc]
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