Function at 0x461190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cd0d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4c63ac]
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 - 0x2dc], al
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x2e0], ebx
call fcn.0045d300
add esp, 4
mov ecx, dword [ebp - 0x220]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x461abe
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 8
cmovae eax, dword [ebp - 0x230]
push str.kso.dll
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x2e0]
lea ecx, [ebp - 0x248]
call fcn.00409a30
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x248]
push eax
call edi
mov edx, dword [ebp - 0x234]
mov esi, eax
cmp edx, 8
jb 0x461290
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461286
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461ac3
push edx
push ecx
call fcn.0046d9fd
add esp, 8
test esi, esi
je 0x4612e2
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 0x461aa0
mov esi, dword [ebp - 0x2dc]
lea eax, [ebp - 0x248]
push esi
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push eax
call fcn.0045bcd0
mov edx, dword [ebp - 0x21c]
add esp, 0x10
cmp edx, 8
jb 0x461342
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461338
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461ac8
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004022a0
cmp dword [ebp - 0x220], 0
je 0x4613da
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
jne 0x4614b4
push esi
push str.LocationRoot
lea eax, [ebp - 0x2a8]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push eax
call fcn.0045bcd0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4614a9
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x461444
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46143a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461acd
push edx
push ecx
call fcn.0046d9fd
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
lea ecx, [ebp - 0x2a8]
call fcn.004022a0
cmp dword [ebp - 0x220], 0
je 0x4614ec
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4614ec
push 8
push str.office6
lea ecx, [ebp - 0x230]
call fcn.00402c30
jmp 0x46150f
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 0x461a57
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046f980
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 - 0x290], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], 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 0x4618db
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4615a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00402db0
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
mov esi, dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x260]
or edi, 0xffffffff
test esi, esi
je 0x46160a
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x461604
cmp ecx, edx
je 0x46160a
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4615f7
sub ecx, edx
sar ecx, 1
jmp 0x46160d
or ecx, 0xffffffff
cmp esi, ecx
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x268], 0
cmovb ecx, esi
mov dword [ebp - 0x264], 7
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x278]
push eax
call fcn.00402db0
mov eax, dword [ebp - 0x278]
lea edx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
mov esi, dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x260]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x27c], eax
test esi, esi
je 0x4616e3
lea eax, [esi - 1]
mov ecx, edi
cmp eax, 0xffffffff
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x4616dd
lea esp, [esp]
cmp eax, edx
je 0x4616e3
sub eax, 2
cmp word [eax], 0x5c
jne 0x4616d0
sub eax, edx
sar eax, 1
jmp 0x4616e6
or eax, 0xffffffff
lea ecx, [eax + 1]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x234], 7
cmp esi, ecx
jb 0x461ad2
sub esi, ecx
lea eax, [ebp - 0x260]
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2e0], eax
cmp edi, 7
ja 0x46176d
lea esi, [edi + edi]
mov dword [ebp - 0x238], edi
push esi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0046f400
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x248], ax
mov eax, dword [ebp - 0x248]
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
mov dword [ebp - 0x2e4], eax
jmp 0x4617d4
cmp edi, 0x7ffffffe
ja 0x461ad7
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x46178c
mov eax, 0x7ffffffe
jmp 0x461796
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x248]
inc eax
push eax
call fcn.00402bd0
lea esi, [edi + edi]
mov dword [ebp - 0x2e4], eax
push esi
push dword [ebp - 0x2e0]
push eax
call fcn.0046f400
mov eax, dword [ebp - 0x2e4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov esi, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x461814
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46180a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461adc
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov eax, dword [ebp - 0x244]
cmp esi, 8
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x24c], esi
lea esi, [ebp - 0x260]
mov dword [ebp - 0x25c], eax
cmovae esi, ecx
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], edi
cmp edi, 0xd
jne 0x46189b
mov eax, str.ksolaunch.exe
test edi, edi
je 0x46191e
movzx ecx, word [esi]
mov edx, 0x6b
cmp ecx, edx
jb 0x46189b
sub esi, eax
cmp cx, dx
ja 0x46189b
cmp edi, 1
je 0x46191e
movzx ecx, word [esi + eax + 2]
add eax, 2
dec edi
movzx edx, word [eax]
cmp cx, dx
jae 0x46187f
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x278]
cmp ecx, 8
jb 0x4618db
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4618d1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461adc
push ecx
push edx
call fcn.0046d9fd
add esp, 8
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x461a57
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461a4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461adc
jmp 0x461a4d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00403330
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0045b140
add esp, 8
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
call fcn.004022a0
mov edx, dword [ebp - 0x268]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x461ae1
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x290]
push 1
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x278]
push 0x49f9a0
push edx
push eax
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x2e0]
call fcn.00409a30
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.00411cc0
push str.office6
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 7
push eax
call fcn.00403130
add esp, 0x18
lea ecx, [ebp - 0x2d8]
call fcn.004022a0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xa
call fcn.004022a0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461a26
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004058d0
lea ecx, [ebp - 0x248]
call fcn.004022a0
lea ecx, [ebp - 0x2a8]
call fcn.004022a0
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x290]
jmp 0x4618a7
push edx
push ecx
call fcn.0046d9fd
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.0046dc6a
mov esp, ebp
pop ebp
ret
call fcn.004029f0
call fcn.00478f8e
call fcn.00478f8e
call fcn.00478f8e
call fcn.00404da0
call fcn.004029f0
call fcn.00478f8e
call fcn.004029f0
int3