Function at 0x472640
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d8a2
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], ebx
lea edi, [ebx + 1]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472a1b
call fcn.004713a0
test eax, eax
je 0x47284f
call fcn.0046b1d0
test eax, eax
je 0x47284f
mov ecx, dword [ebp - 0x6c]
push ecx
push esi
call fcn.0046c300
add esp, 8
cmp eax, ebx
jne 0x472a14
push esi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47285d
xor edx, edx
mov eax, esi
mov word [ebp - 0x64], dx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4726e4
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00437a20
push 0x14
xor eax, eax
mov edi, 1
push str.KINGSOFT_JAPAN__INC.
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00437a20
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 4], edi
call fcn.00471a80
add esp, 4
test eax, eax
jne 0x47274e
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00471e70
add esp, 8
test eax, eax
je 0x472754
mov byte [ebp - 0x65], 1
jmp 0x472757
mov byte [ebp - 0x65], bl
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x47276d
mov ecx, dword [ebp - 0x2c]
push ecx
call int.0042bfd0
add esp, 4
cmp byte [ebp - 0x65], bl
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x65]
cmp dword [ebp - 0x50], edi
jb 0x47278c
mov edx, dword [ebp - 0x64]
push edx
call int.0042bfd0
add esp, 4
cmp byte [ebp - 0x65], bl
jne 0x47285d
push 0x38
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.005336c0
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
mov edx, edi
neg edx
sbb edx, edx
lea eax, [ebp - 0xb0]
and edx, 0xa
push eax
mov dword [ebp - 0xb0], 0x3c
mov dword [ebp - 0xac], 0x440
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x472824
cmp eax, ebx
je 0x472817
mov ecx, dword [ebp - 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x78]
mov edi, 1
jmp 0x472a09
mov edx, dword [ebp - 0x6c]
push edx
push esi
push edi
push eax
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 edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x78]
add esp, 0x1c
jmp 0x472a09
push esi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x472864
xor edi, edi
jmp 0x472a14
mov edi, 7
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x472880
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00437a20
mov eax, 2
push 0x14
xor edx, edx
push str.KINGSOFT_JAPAN__INC.
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00437a20
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call fcn.00471a80
add esp, 4
test eax, eax
jne 0x4728ea
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00471e70
add esp, 8
test eax, eax
je 0x4728f0
mov byte [ebp - 0x65], 1
jmp 0x4728f3
mov byte [ebp - 0x65], bl
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x472909
mov eax, dword [ebp - 0x2c]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
cmp byte [ebp - 0x65], bl
mov dword [ebp - 0x18], 7
sete byte [ebp - 0x65]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x472938
mov edx, dword [ebp - 0x48]
push edx
call int.0042bfd0
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp byte [ebp - 0x65], bl
jne 0x47285d
push 0x38
lea ecx, [ebp - 0xe8]
push ebx
push ecx
call fcn.005336c0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x6c]
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [ebp - 0xec]
and eax, 0xa
push ecx
mov dword [ebp - 0xec], 0x3c
mov dword [ebp - 0xe8], 0x440
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4729dd
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4729d6
mov edx, dword [ebp - 0xb4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
jmp 0x472a03
mov eax, dword [ebp - 0x6c]
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 edi, dword [ebp - 0x70]
add esp, 0x1c
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
je 0x472a14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, ebx
setne al
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