Function at 0x477050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d12f9
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x50e3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x250], esi
call fcn.004739d0
push str.ksolite.dll
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040cd90
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4770bc
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x234]
mov edi, eax
cmp edx, 8
jb 0x477105
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4770fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477387
push edx
push ecx
call fcn.0048d64e
add esp, 8
test edi, edi
je 0x477151
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x228]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x224]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x220]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [esi + 0x14], ecx
jmp 0x47736a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048fe50
mov eax, dword [0x517714]
add esp, 0xc
test al, 1
jne 0x477192
or eax, 1
mov dword [0x517714], eax
lea ecx, [ebp - 0x249]
mov byte [ebp - 4], 1
call fcn.00472fb0
mov byte [0x517710], al
mov byte [ebp - 4], 0
jmp 0x477197
mov al, byte [0x517710]
push 0x104
test al, al
lea eax, [ebp - 0x218]
push eax
push 0x4dc188
je 0x4771db
push str.SoftwareKingsoftPDFCommon
call fcn.0047e290
push eax
call fcn.00473300
add esp, 0x14
test eax, eax
je 0x477219
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4dc188
push str.SoftwareKingsoftPDFCommon
jmp 0x477208
push 0x4dc238
call fcn.0047e290
push eax
call fcn.00473300
add esp, 0x14
test eax, eax
je 0x477219
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4dc188
push 0x4dc238
push 0x80000002
call fcn.00473300
add esp, 0x14
test eax, eax
jne 0x477256
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477222
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00408290
push 8
push 0x4dc174
lea ecx, [ebp - 0x230]
call fcn.00402cd0
cmp dword [ebp - 0x220], 0
jne 0x477327
call fcn.00473290
push 0x104
test al, al
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
je 0x4772ac
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
call fcn.0047e290
push eax
call fcn.00473300
add esp, 0x14
test eax, eax
je 0x4772ea
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
jmp 0x4772d9
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.0047e290
push eax
call fcn.00473300
add esp, 0x14
test eax, eax
je 0x4772ea
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.00473300
add esp, 0x14
test eax, eax
jne 0x477327
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4772f3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00408290
push 8
push 0x4dc174
lea ecx, [ebp - 0x230]
call fcn.00402cd0
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x22c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d65c
mov esp, ebp
pop ebp
ret
call fcn.00498fa9
int3