Function at 0x471f30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5fb61c]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
cmp dword [ebp + 0x1c], ebx
je 0x471f86
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x471f86
xor eax, eax
jmp 0x472130
cmp dword [ebp + 0x20], ebx
jne 0x472042
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x471fa4
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00437a20
push 0x14
xor edx, edx
mov edi, 1
push str.KINGSOFT_JAPAN__INC.
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00437a20
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.00471a80
add esp, 4
test eax, eax
jne 0x47200e
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00471e70
add esp, 8
test eax, eax
je 0x472014
mov byte [ebp - 0x49], 1
jmp 0x472017
mov byte [ebp - 0x49], bl
cmp dword [ebp - 0x34], 8
jb 0x472029
mov eax, dword [ebp - 0x48]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
cmp byte [ebp - 0x49], bl
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 0x49], 1
je 0x472045
mov byte [ebp - 0x49], bl
test byte [ebp - 0x54], 1
mov dword [ebp - 4], 0xffffffff
je 0x472074
cmp dword [ebp - 0x18], 8
jb 0x472064
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp byte [ebp - 0x49], bl
jne 0x471f7f
push 0x38
lea ecx, [ebp - 0x90]
push ebx
push ecx
call fcn.005336c0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [ebp - 0x94]
and eax, 0xa
push ecx
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x90], 0x440
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4720fa
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4720f3
mov edx, dword [ebp - 0x5c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 1
jmp 0x472120
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x10]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_ShellExecuteEx_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x5ff5f8
call fcn.00477930
mov esi, dword [ebp - 0x58]
add esp, 0x1c
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x47212e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.005332ca
mov esp, ebp
pop ebp
ret