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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x90
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp + 0x60], esi
call dword [0x46fb34]
mov dword [ebp + 0x68], eax
call fcn.0042190e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40ca40
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 0x7c]
add eax, 0x10
mov dword [ebp + 0x6c], eax
mov eax, dword [edi - 0xc]
cmp eax, esi
jl 0x40cac7
push 0x460d90
push edi
call fcn.0043b5b7
add esp, 8
cmp eax, esi
je 0x40cac7
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cac7
lea ecx, [ebp + 0x7c]
push ecx
lea ecx, [ebp + 0x6c]
call fcn.004029d0
push ebx
lea edx, [ebp + 0x5c]
push edx
lea ecx, [ebp + 0x6c]
call fcn.00407850
push eax
lea ecx, [ebp + 0x7c]
call fcn.004029d0
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cab7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx + 2]
lea ebx, [ebp + 0x6c]
call fcn.004076c0
mov edi, dword [ebp + 0x7c]
xor esi, esi
push 0xa
lea ecx, [ebp + 0x20]
call fcn.00428a45
lea ecx, [ebp + 0x20]
push ecx
push ecx
add edi, 0xfffffff0
mov dword [ebp + 0x58], esp
mov ebx, esp
push edi
mov dword [ebp + 0x58], edi
call fcn.00402470
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040b8a0
add esp, 8
cmp eax, 4
je 0x40cb66
lea edx, [ebp + 0x58]
push str._Run__Invalid_arguments__nArg_4_:
push edx
lea ecx, [ebp + 0x7c]
call fcn.00402290
mov ebx, dword [eax]
add esp, 8
cmp ebx, esi
jne 0x40cb1b
mov dword [ebp + 0x6c], esi
jmp 0x40cb4c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40cb31
mov dword [ebp + 0x6c], esi
jmp 0x40cb4c
lea edi, [eax + eax]
mov eax, edi
call fcn.00441030
mov ecx, dword [ebp + 0x68]
mov eax, esp
push ecx
push edi
push ebx
push eax
call fcn.00408280
mov dword [ebp + 0x6c], eax
lea edx, [ebp + 0x6c]
push edx
lea ecx, [ebp + 0x3c]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp + 0x3c]
push eax
call fcn.0043e342
push esi
lea ecx, [ebp + 0x20]
call fcn.00428a21
cmp eax, esi
jne 0x40cb78
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
cmp dword [0x472ca0], 0
lea esi, [eax + 0x10]
mov dword [ebp + 0x64], esi
je 0x40cc49
cmp dword [esi - 0xc], 0
jl 0x40cc49
push str.QiyiClient.exe
push esi
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x40cbbf
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40cbe4
cmp dword [esi - 0xc], 0
jl 0x40cc49
push str.qiyiclient.exe
push esi
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x40cc49
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40cc49
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x20]
call fcn.00428b7d
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfd6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40cfd6
push 1
lea ecx, [ebp + 0x20]
call fcn.00428a21
test eax, eax
jne 0x40cc5c
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x54], eax
call fcn.00428a21
test eax, eax
jne 0x40cc84
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
add eax, 0x10
push 3
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00428a21
test eax, eax
jne 0x40ccac
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
add eax, 0x10
push esi
mov dword [ebp + 0x50], eax
call edi
test eax, eax
jne 0x40cdb1
lea eax, [ebp + 0x64]
push eax
push 0x45fcf4
lea ecx, [ebp + 0x48]
push 0x472c7c
push ecx
call fcn.004021b0
add esp, 0xc
push eax
lea edx, [ebp + 0x4c]
push edx
call fcn.00414500
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
test eax, eax
mov eax, dword [ebp + 0x4c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40cdb1
lea ecx, [ebp + 0x58]
push str._Run__Source_executable_not_found:
push ecx
lea ecx, [ebp + 0x64]
call fcn.00402290
mov ebx, dword [eax]
xor esi, esi
add esp, 8
cmp ebx, esi
jne 0x40cd66
mov dword [ebp + 0x6c], esi
jmp 0x40cd97
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40cd7c
mov dword [ebp + 0x6c], esi
jmp 0x40cd97
lea edi, [eax + eax]
mov eax, edi
call fcn.00441030
mov edx, dword [ebp + 0x68]
mov eax, esp
push edx
push edi
push ebx
push eax
call fcn.00408280
mov dword [ebp + 0x6c], eax
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0043b4a4
push 0x4686c8
lea ecx, [ebp + 0x3c]
push ecx
call fcn.0043e342
mov edx, dword [ebp + 0x5c]
push edx
call fcn.0043b5b2
add esp, 4
test eax, eax
mov dword [ebp + 0x64], eax
jge 0x40cdcb
mov dword [ebp + 0x64], 0
lea ebx, [ebp + 0x54]
call fcn.00414820
mov edi, eax
call fcn.004148a0
push 0x38
xor edi, edi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0043c510
mov ecx, dword [ebp + 0x54]
add esp, 0xc
mov dword [ebp - 0x1c], 0x3c
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
cmp dword [ecx - 0xc], edi
jne 0x40ce18
push edi
lea ecx, [ebp + 0x60]
lea ebx, [edi + 1]
call fcn.004024e0
jmp 0x40ce1e
mov bl, byte [ebp + 0x60]
lea eax, [ebp + 0x54]
test bl, 1
mov edx, dword [eax]
mov dword [ebp - 8], edx
je 0x40ce47
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x50]
push str.show
push ecx
mov dword [ebp - 4], edi
call fcn.004038a0
add esp, 8
neg al
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp + 4], edi
sbb eax, eax
and eax, 5
mov dword [ebp], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp + 0x6c]
cmp dword [eax - 0xc], edi
je 0x40cf0c
call fcn.0042190e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40ce98
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp + 0x68]
add eax, 0x10
push 0x4626b4
push edx
mov dword [ebp + 0x68], eax
call fcn.004016e0
mov edi, dword [ebp + 0x68]
add esp, 8
add edi, 0xfffffff0
mov dword [ebp + 0x60], esp
mov ebx, esp
push edi
call fcn.00402470
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
mov dword [ebp + 0x60], esp
mov ebx, esp
push eax
call fcn.00402470
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040aff0
add esp, 8
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf0c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cf39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x20]
call fcn.00428b7d
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x58]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00439c98
add ebp, 0x74
mov esp, ebp
pop ebp
ret