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

Disassembly:
push ebp
sub esp, 0x88
lea ebp, [esp - 4]
mov eax, dword [0x426050]
xor eax, ebp
mov dword [ebp + 0x88], eax
push 0xc4
mov eax, 0x41e78a
call fcn.0040dded
mov eax, dword [ebp + 0x94]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov esi, ecx
push str.360GameCore.dll
xor ebx, ebx
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ebx
call fcn.004028c7
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [0x428b8c]
mov ecx, 0x428b8c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
mov byte [ebp - 4], 1
lea esi, [ebp - 0x98]
mov dword [ebp - 0x10], ebx
call fcn.00401cfa
push dword [ebp + 0x98]
mov eax, esi
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.00402dbe
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.00401dd4
mov edi, str.gtype
push edi
lea esi, [ebp - 0x44]
call fcn.00401cfa
mov eax, esi
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.00402ee1
push ebx
cmp eax, 4
push 1
setne byte [ebp - 0x11]
mov byte [ebp - 4], 4
call fcn.00401dd4
cmp byte [ebp - 0x11], bl
je 0x4016cb
push 0xc
call fcn.0040c2d6
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4014bb
push eax
call fcn.0040101d
mov dword [ebp - 0x1c], eax
jmp 0x4014be
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp byte [eax], bl
jne 0x4016c3
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push str.upend
push 2
push str.ptype
push str.__s:_d___s:__s_
call fcn.0040209f
add esp, 0x14
push dword [ebp - 0x20]
lea esi, [ebp - 0x44]
call fcn.00401cfa
push dword [ebp + 0x98]
mov eax, esi
push eax
lea eax, [ebp + 0x44]
push eax
mov byte [ebp - 4], 7
call fcn.00402dbe
push ebx
push 1
mov byte [ebp - 4], 9
call fcn.00401dd4
push edi
lea esi, [ebp - 0x60]
call fcn.00401cfa
xor edi, edi
mov eax, esi
mov byte [ebp - 4], 0xa
inc edi
push eax
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x10], edi
call fcn.00402ee1
cmp eax, 4
je 0x4015c4
push str.upsilent
lea esi, [ebp - 0x7c]
call fcn.00401cfa
mov eax, esi
push eax
mov dword [ebp - 4], 0xb
lea eax, [ebp + 0x44]
mov dword [ebp - 0x10], 3
call fcn.00402e21
test al, al
je 0x401597
push str.upsilent
lea esi, [ebp - 0xd0]
call fcn.00401cfa
mov eax, esi
mov dword [ebp - 4], 0xc
push eax
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x10], 7
call fcn.00402ee1
test eax, eax
jne 0x4015c4
push 0x423024
lea esi, [ebp - 0xb4]
call fcn.00401cfa
mov eax, esi
push eax
mov dword [ebp - 4], 0xd
or dword [ebp - 0x10], 8
lea eax, [ebp + 0x44]
call fcn.00402e21
mov byte [ebp - 0x11], bl
test al, al
je 0x4015c8
mov byte [ebp - 0x11], 1
test byte [ebp - 0x10], 8
je 0x4015df
and dword [ebp - 0x10], 0xfffffff7
push ebx
push edi
lea esi, [ebp - 0xb4]
call fcn.00401dd4
test byte [ebp - 0x10], 4
je 0x4015f6
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0xd0]
call fcn.00401dd4
test byte [ebp - 0x10], 2
je 0x40160a
and dword [ebp - 0x10], 0xfffffffd
push ebx
push edi
lea esi, [ebp - 0x7c]
call fcn.00401dd4
mov dword [ebp - 4], 9
test byte [ebp - 0x10], 1
je 0x401621
push ebx
push edi
lea esi, [ebp - 0x60]
call fcn.00401dd4
cmp byte [ebp - 0x11], bl
je 0x40163c
push edi
push str.upsilent
push str.___s:_d
lea ecx, [ebp - 0x18]
call fcn.004020ea
add esp, 0xc
mov edi, str.runmode
push edi
lea esi, [ebp - 0x60]
call fcn.00401cfa
mov eax, esi
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xe
call fcn.00402e5d
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x40166c
mov eax, dword [eax + 4]
jmp 0x40166f
add eax, 4
push eax
push edi
push str.___s:_s
lea ecx, [ebp - 0x18]
call fcn.004020ea
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x7c]
call fcn.00401dd4
push ebx
push 1
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.00401dd4
push str.360GameLiveUpdate.dll
push dword [ebp + 0x98]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.004019e8
add esp, 0x10
lea edi, [ebp + 0x44]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
call fcn.00402e0c
push dword [ebp - 0x1c]
call fcn.0040176e
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4016f7
push str.360GameCore.dll
push dword [ebp + 0x98]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.004019e8
add esp, 0x10
mov dword [ebp - 0x10], eax
jmp 0x401727
push 0x40014
push 0x42116c
push 0x421180
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401727
push 0x40
push ebx
push ebx
push str.http:__360game.360.cn
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edi, [ebp]
mov byte [ebp - 4], 1
call fcn.00402e0c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402660
lea eax, [esi - 0x10]
call fcn.00402660
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x88]
xor ecx, ebp
call fcn.0040c22f
add ebp, 0x8c
leave
ret 8