Function at 0x45edb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6a76
mov eax, dword fs:[0]
push eax
sub esp, 0x6f8
mov eax, dword [0x4ee05c]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x658]
push eax
mov dword [ebp - 0x704], ebx
mov dword [ebp - 0x6fc], ebx
call fcn.0045cf10
push str.ksolite.dll
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x6b8]
push eax
call fcn.00401ae0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x45ee23
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
mov edx, dword [ebp - 0x6a4]
mov esi, eax
cmp edx, 8
jb 0x45ee6e
mov ecx, dword [ebp - 0x6b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ee64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f791
push edx
push ecx
call fcn.00475cfa
add esp, 8
test esi, esi
je 0x45eeba
mov eax, dword [ebp - 0x658]
mov ecx, dword [ebp - 0x654]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x650]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x64c]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x648]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x644]
mov dword [ebx + 0x14], ecx
jmp 0x45f773
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00478480
mov eax, dword [0x4f6e64]
add esp, 0xc
test al, 1
jne 0x45eefb
or eax, 1
mov dword [0x4f6e64], eax
lea ecx, [ebp - 0x6f1]
mov byte [ebp - 4], 1
call fcn.0045c620
mov byte [0x4f6e60], al
mov byte [ebp - 4], 0
jmp 0x45ef00
mov al, byte [0x4f6e60]
push 0x104
test al, al
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
je 0x45ef44
push str.SoftwareKingsoftPDFCommon
call fcn.00460b50
push eax
call fcn.0045ca70
add esp, 0x14
test eax, eax
je 0x45ef82
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftPDFCommon
jmp 0x45ef71
push str.SoftwareKingsoftOffice6.0Common
call fcn.00460b50
push eax
call fcn.0045ca70
add esp, 0x14
test eax, eax
je 0x45ef82
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.0045ca70
add esp, 0x14
test eax, eax
jne 0x45efc6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x45ef90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ef90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.00402940
push 8
push str.office6
lea ecx, [ebp - 0x658]
call fcn.004027c0
jmp 0x45efc8
js 0x45efe3
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push eax
call edi
test eax, eax
jne 0x45f006
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
mov dword [ebp - 0x648], 0
cmovae eax, dword [ebp - 0x658]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x648], 0
jne 0x45f730
call fcn.0045c950
push 0x104
test al, al
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
je 0x45f05c
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
call fcn.00460b50
push eax
call fcn.0045ca70
add esp, 0x14
test eax, eax
je 0x45f09a
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
jmp 0x45f089
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.00460b50
push eax
call fcn.0045ca70
add esp, 0x14
test eax, eax
je 0x45f09a
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.0045ca70
add esp, 0x14
test eax, eax
jne 0x45f0e4
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x45f0e4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f0b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.00402940
push 8
push str.office6
lea ecx, [ebp - 0x658]
call fcn.004027c0
cmp dword [ebp - 0x648], 0
jne 0x45f730
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00478480
xor eax, eax
mov dword [ebp - 0x630], 0
add esp, 0xc
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x68c], 7
mov word [ebp - 0x6a0], ax
push 0x104
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45f6f4
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f164
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.00402940
cmp dword [ebp - 0x62c], 8
lea edx, [ebp - 0x640]
mov edi, dword [ebp - 0x630]
cmovae edx, dword [ebp - 0x640]
or esi, 0xffffffff
test edi, edi
je 0x45f1d3
lea eax, [edi - 1]
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x45f1cd
jmp 0x45f1c0
cmp ecx, edx
je 0x45f1d3
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x45f1c0
sub ecx, edx
sar ecx, 1
jmp 0x45f1d6
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x660], 0
cmp edi, ecx
mov word [ebp - 0x670], ax
lea eax, [ebp - 0x640]
mov dword [ebp - 0x65c], 7
cmovb ecx, edi
cmp dword [ebp - 0x62c], 8
push ecx
cmovae eax, dword [ebp - 0x640]
lea ecx, [ebp - 0x670]
push eax
call fcn.00402940
mov eax, dword [ebp - 0x670]
lea edx, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
mov edi, dword [ebp - 0x630]
cmovae edx, dword [ebp - 0x640]
mov dword [ebp - 0x6a0], eax
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x698], eax
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x694], eax
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x690], eax
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 0x68c], eax
test edi, edi
je 0x45f2a7
lea eax, [edi - 1]
mov ecx, esi
cmp eax, 0xffffffff
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x45f2a1
cmp eax, edx
je 0x45f2a7
sub eax, 2
cmp word [eax], 0x5c
jne 0x45f294
sub eax, edx
sar eax, 1
jmp 0x45f2aa
or eax, 0xffffffff
lea ecx, [eax + 1]
mov dword [ebp - 0x674], 7
xor eax, eax
mov word [ebp - 0x688], ax
cmp edi, ecx
jb 0x45f796
sub edi, ecx
lea eax, [ebp - 0x640]
cmp edi, 0xffffffff
cmovb esi, edi
cmp dword [ebp - 0x62c], 8
mov dword [ebp - 0x6f8], esi
cmovae eax, dword [ebp - 0x640]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x6f0], eax
cmp esi, 7
ja 0x45f335
mov dword [ebp - 0x678], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00477f00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x688], ax
mov eax, dword [ebp - 0x688]
mov edi, dword [ebp - 0x674]
mov esi, dword [ebp - 0x678]
mov dword [ebp - 0x6ec], eax
jmp 0x45f398
cmp esi, 0x7ffffffe
ja 0x45f79b
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x45f355
mov edi, 0x7ffffffe
jmp 0x45f35f
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x688]
call fcn.00402760
add esi, esi
mov dword [ebp - 0x6ec], eax
push esi
push dword [ebp - 0x6f0]
push eax
call fcn.00477980
mov eax, dword [ebp - 0x6ec]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov esi, dword [ebp - 0x6f8]
mov edx, dword [ebp - 0x62c]
cmp edx, 8
jb 0x45f3d8
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f3ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f7a5
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov eax, dword [ebp - 0x6ec]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x684]
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp - 0x680]
mov dword [ebp - 0x638], eax
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x640]
push str.ksolaunch.exe
push eax
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x62c], edi
call fcn.00402dd0
add esp, 8
test al, al
je 0x45f6b4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x688]
call fcn.00402fe0
cmp dword [ebp - 0x674], 8
lea ecx, [ebp - 0x6ec]
lea eax, [ebp - 0x688]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x688]
push ecx
push eax
mov dword [ebp - 0x6ec], 0
call fcn.0045dc50
mov esi, eax
push esi
call fcn.00475d08
cmp dword [ebp - 0x674], 8
lea ecx, [ebp - 0x688]
mov edi, eax
cmovae ecx, dword [ebp - 0x688]
push edi
push esi
push dword [ebp - 0x6ec]
mov dword [ebp - 0x700], edi
push ecx
call fcn.0045dce0
add esp, 0x1c
test eax, eax
jne 0x45f4d5
push edi
call fcn.00475d11
add esp, 4
mov dword [ebp - 0x660], 0
xor eax, eax
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
jmp 0x45f5b8
lea eax, [ebp - 0x6f8]
mov dword [ebp - 0x6f8], 0
push eax
lea eax, [ebp - 0x6f0]
mov dword [ebp - 0x6f0], 0
push eax
push 0x4bbcac
push edi
call fcn.00425ce0
mov eax, dword [ebp - 0x6f0]
push dword [ebp - 0x700]
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
mov dword [ebp - 0x6fc], ecx
call fcn.00475d11
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00478480
mov eax, dword [ebp - 0x6fc]
push esi
push edi
push ebx
movzx eax, ax
push eax
push str._d._d._d._d
lea eax, [ebp - 0x628]
push 0x103
push eax
call fcn.00426550
add esp, 0x3c
mov dword [ebp - 0x660], 0
xor eax, eax
mov dword [ebp - 0x65c], 7
lea ecx, [ebp - 0x628]
mov word [ebp - 0x670], ax
lea edx, [ecx + 2]
jmp 0x45f590
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f590
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x670]
call fcn.00402940
mov ebx, dword [ebp - 0x704]
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 6
call fcn.00402120
push 0x4bbcac
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x6e8]
push eax
call fcn.00401ae0
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x6d0]
push eax
call fcn.00411150
push str.office6
push eax
lea eax, [ebp - 0x6b8]
mov byte [ebp - 4], 8
push eax
call fcn.00401a60
add esp, 0x24
lea ecx, [ebp - 0x6d0]
call fcn.00402120
lea ecx, [ebp - 0x6e8]
mov byte [ebp - 4], 0xb
call fcn.00402120
cmp dword [ebp - 0x6a4], 8
lea eax, [ebp - 0x6b8]
cmovae eax, dword [ebp - 0x6b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f65b
lea eax, [ebp - 0x6b8]
push eax
lea ecx, [ebp - 0x658]
call fcn.004054e0
lea ecx, [ebp - 0x6b8]
call fcn.00402120
mov edx, dword [ebp - 0x65c]
cmp edx, 8
jb 0x45f6a6
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f69c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f7a0
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp - 0x6a0]
jmp 0x45f6c0
mov ecx, dword [ebp - 0x670]
mov eax, dword [ebp - 0x65c]
cmp eax, 8
jb 0x45f6f4
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f6ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f7a5
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov edx, dword [ebp - 0x62c]
cmp edx, 8
jb 0x45f730
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f726
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f7a5
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov eax, dword [ebp - 0x658]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x654]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x650]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x64c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x648]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x644]
mov dword [ebx + 0x14], eax
mov eax, ebx
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.00475f67
mov esp, ebp
pop ebp
ret
call fcn.00481379
call fcn.004049b0
call fcn.00402550
call fcn.00481379
call fcn.00481379
int3