Function at 0x4e58e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ff9d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x567e00]
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 al, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x2e0], al
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x2dc], ebx
call fcn.004e3050
add esp, 4
mov ecx, dword [ebp - 0x220]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x4e6359
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 8
cmovae eax, dword [ebp - 0x230]
push 0x53a40c
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x290]
call fcn.00423560
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x290]
push eax
call edi
mov edx, dword [ebp - 0x27c]
mov esi, eax
cmp edx, 8
jb 0x4e59e2
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e59d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e59d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test esi, esi
je 0x4e5a34
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x228]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x224]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x220]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [ebx + 0x14], ecx
jmp 0x4e633b
mov esi, dword [ebp - 0x2e0]
lea eax, [ebp - 0x278]
push esi
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push eax
call fcn.004e2190
mov edx, dword [ebp - 0x21c]
add esp, 0x10
cmp edx, 8
jb 0x4e5a96
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5a8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e5a8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
test eax, eax
je 0x4e5af9
cmp edx, 8
lea eax, [ebp - 0x230]
cmovae eax, ecx
push eax
call edi
test eax, eax
jne 0x4e5c0a
push esi
push str.LocationRoot
lea eax, [ebp - 0x2c0]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push eax
call fcn.004e2190
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4e5bc8
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4e5b63
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5b59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e5bfa
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21c], 7
mov eax, dword [esi]
mov dword [ebp - 0x230], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2ac]
cmp edx, 8
jb 0x4e5c0a
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5c00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e5c00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x220], 0
je 0x4e5c42
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4e5c42
push 8
push str.office6
lea ecx, [ebp - 0x230]
call fcn.004038f0
jmp 0x4e5c65
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
jne 0x4e62f2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x260], 0
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4e62b0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5cf5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00403a70
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
mov edi, dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x260]
or esi, 0xffffffff
test edi, edi
je 0x4e5d63
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 0x4e5d5d
lea esp, [esp]
cmp ecx, edx
je 0x4e5d63
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4e5d50
sub ecx, edx
sar ecx, 1
jmp 0x4e5d66
or ecx, 0xffffffff
cmp edi, ecx
mov dword [ebp - 0x248], 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x238], 0
cmovb ecx, edi
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x248]
push eax
call fcn.00403a70
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x278]
call fcn.00405690
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4e5dfc
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5df2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e62e2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
mov edi, dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x260]
test edi, edi
je 0x4e5e43
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 0x4e5e3d
nop
cmp eax, edx
je 0x4e5e43
sub eax, 2
cmp word [eax], 0x5c
jne 0x4e5e30
sub eax, edx
sar eax, 1
jmp 0x4e5e46
or eax, 0xffffffff
lea ecx, [eax + 1]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x234], 7
cmp edi, ecx
jb 0x4e635e
sub edi, ecx
lea eax, [ebp - 0x260]
cmp edi, 0xffffffff
cmovb esi, edi
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x2e0], esi
cmovae eax, dword [ebp - 0x260]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2dc], eax
cmp esi, 7
ja 0x4e5eba
mov dword [ebp - 0x238], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x248]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x248], ax
jmp 0x4e5f24
cmp esi, 0x7ffffffe
ja 0x4e6363
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4e5ed8
mov esi, 0x7ffffffe
jmp 0x4e5ee2
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403890
mov edi, eax
mov dword [ebp - 0x234], esi
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x238], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x2dc]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x248], edi
xor eax, eax
mov word [esi + edi], ax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00405690
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4e5f76
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5f6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e62e2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x24c], 8
lea edi, [ebp - 0x260]
cmovae edi, dword [ebp - 0x260]
cmp dword [ebp - 0x250], 0xd
jne 0x4e6274
movzx ecx, word [edi]
mov esi, 0x6b
mov edx, 0xd
mov eax, str.ksolaunch.exe
cmp ecx, esi
jb 0x4e6274
sub edi, eax
cmp cx, si
ja 0x4e6274
cmp edx, 1
je 0x4e5fd7
movzx ecx, word [eax + edi + 2]
add eax, 2
dec edx
movzx esi, word [eax]
cmp cx, si
jae 0x4e5fb6
jmp 0x4e6274
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004050b0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.004e1c30
add esp, 8
mov edx, dword [ebp - 0x294]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x4e6049
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e603f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e603f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ecx, dword [ebp - 0x268]
xor eax, eax
mov word [ebp - 0x2a8], ax
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
cmp eax, 1
jb 0x4e6368
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push 1
cmovae eax, dword [ebp - 0x278]
push 0x516d0c
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x290]
call fcn.00423560
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.004222d0
push str.office6
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 7
push eax
call fcn.0040e0e0
add esp, 0x18
mov edx, dword [ebp - 0x2c4]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4e6128
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e611e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e617b
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
mov edx, dword [ebp - 0x27c]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x4e618b
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6181
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e6181
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
cmp dword [ebp - 0x234], 8
mov word [ebp - 0x290], ax
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
mov dword [ebp - 0x27c], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e61d9
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00423d10
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4e6215
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e620b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6264
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2ac]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x4e6274
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e626a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e626a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x4e62b0
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e62a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e62e2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x4e62f2
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e62e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e62e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x230]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x220]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x21c]
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.004c6f8b
mov esp, ebp
pop ebp
ret
call fcn.00403870
call fcn.00412cc0
call fcn.00403870
call fcn.00403870
int3