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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x90
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp + 0x60], esi
call dword [0x46eaf4]
mov dword [ebp + 0x68], eax
call fcn.00423381
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40c8f0
push 0x80004005
call fcn.00402160
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 0x40c977
push 0x45fc80
push edi
call fcn.0043a679
add esp, 8
cmp eax, esi
je 0x40c977
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c977
lea ecx, [ebp + 0x7c]
push ecx
lea ecx, [ebp + 0x6c]
call fcn.00402800
push ebx
lea edx, [ebp + 0x5c]
push edx
lea ecx, [ebp + 0x6c]
call fcn.00407750
push eax
lea ecx, [ebp + 0x7c]
call fcn.00402800
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 0x40c967
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.004075c0
mov edi, dword [ebp + 0x7c]
xor esi, esi
push 0xa
lea ecx, [ebp + 0x20]
call fcn.00429689
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.004020e0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040b770
add esp, 8
cmp eax, 4
je 0x40ca16
lea edx, [ebp + 0x58]
push str._Run__Invalid_arguments__nArg_4_:
push edx
lea ecx, [ebp + 0x7c]
call fcn.00401eb0
mov ebx, dword [eax]
add esp, 8
cmp ebx, esi
jne 0x40c9cb
mov dword [ebp + 0x6c], esi
jmp 0x40c9fc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40c9e1
mov dword [ebp + 0x6c], esi
jmp 0x40c9fc
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov ecx, dword [ebp + 0x68]
mov eax, esp
push ecx
push edi
push ebx
push eax
call fcn.00408150
mov dword [ebp + 0x6c], eax
lea edx, [ebp + 0x6c]
push edx
lea ecx, [ebp + 0x3c]
call fcn.0043920e
push 0x467390
lea eax, [ebp + 0x3c]
push eax
call fcn.0043b69a
push esi
lea ecx, [ebp + 0x20]
call fcn.00429665
cmp eax, esi
jne 0x40ca28
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
cmp dword [0x471c40], 0
lea esi, [eax + 0x10]
mov dword [ebp + 0x64], esi
je 0x40caf9
cmp dword [esi - 0xc], 0
jl 0x40caf9
push str.QiyiClient.exe
push esi
call fcn.0043a679
add esp, 8
test eax, eax
je 0x40ca6f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40ca94
cmp dword [esi - 0xc], 0
jl 0x40caf9
push str.qiyiclient.exe
push esi
call fcn.0043a679
add esp, 8
test eax, eax
je 0x40caf9
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40caf9
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x20]
call fcn.004297c1
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 0x40cad7
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 0x40ce88
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40ce88
push 1
lea ecx, [ebp + 0x20]
call fcn.00429665
test eax, eax
jne 0x40cb0c
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x54], eax
call fcn.00429665
test eax, eax
jne 0x40cb34
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 3
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x5c], eax
call fcn.00429665
test eax, eax
jne 0x40cb5c
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
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 0x40cc61
lea eax, [ebp + 0x64]
push eax
push 0x45ebe4
lea ecx, [ebp + 0x48]
push 0x471c1c
push ecx
call fcn.00401dd0
add esp, 0xc
push eax
lea edx, [ebp + 0x4c]
push edx
call fcn.00413f20
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 0x40cbd2
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 0x40cbf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40cc61
lea ecx, [ebp + 0x58]
push str._Run__Source_executable_not_found:
push ecx
lea ecx, [ebp + 0x64]
call fcn.00401eb0
mov ebx, dword [eax]
xor esi, esi
add esp, 8
cmp ebx, esi
jne 0x40cc16
mov dword [ebp + 0x6c], esi
jmp 0x40cc47
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40cc2c
mov dword [ebp + 0x6c], esi
jmp 0x40cc47
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov edx, dword [ebp + 0x68]
mov eax, esp
push edx
push edi
push ebx
push eax
call fcn.00408150
mov dword [ebp + 0x6c], eax
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0043920e
push 0x467390
lea ecx, [ebp + 0x3c]
push ecx
call fcn.0043b69a
mov edx, dword [ebp + 0x5c]
push edx
call fcn.0043a674
add esp, 4
test eax, eax
mov dword [ebp + 0x64], eax
jge 0x40cc7b
mov dword [ebp + 0x64], 0
lea ebx, [ebp + 0x54]
call fcn.00414240
mov edi, eax
call fcn.004142c0
push 0x38
xor edi, edi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0043b620
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 0x40ccca
push edi
lea ecx, [ebp + 0x60]
mov ebx, 1
call fcn.00402310
jmp 0x40ccd0
mov bl, byte [ebp + 0x60]
lea eax, [ebp + 0x54]
test bl, 1
mov edx, dword [eax]
mov dword [ebp - 8], edx
je 0x40ccf9
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 0x40ccf9
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.004036d0
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 0x40cdbe
call fcn.00423381
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cd4a
push 0x80004005
call fcn.00402160
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 0x461484
push edx
mov dword [ebp + 0x68], eax
call fcn.00404fb0
mov edi, dword [ebp + 0x68]
add esp, 8
add edi, 0xfffffff0
mov dword [ebp + 0x60], esp
mov ebx, esp
push edi
call fcn.004020e0
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.004020e0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040aec0
add esp, 8
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cdbe
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 0x40cdeb
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 0x40ce0a
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 0x40ce29
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 0x40ce45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x20]
call fcn.004297c1
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 0x40ce6c
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 0x40ce88
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.00438dc7
add ebp, 0x74
mov esp, ebp
pop ebp
ret