Function at 0x40893f
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x330], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push 0xffffffffffffffff
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], vtable.ArgumentDef::CArgList.0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0041737b
lea esi, [esp + 0x20]
mov dword [esp + 0x18], vtable.ArgumentDef::CArgEntity.0
mov dword [esp + 0x1c], edi
call fcn.00401d88
lea esi, [esp + 0x24]
call fcn.00401d88
push 1
push str.module
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00417441
test eax, eax
je 0x408add
cmp dword [esp + 0x1c], 3
jne 0x408add
call fcn.00409bba
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
call fcn.00401d9d
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], edi
je 0x408aa5
add eax, 0xfffffff0
call fcn.004020aa
add eax, 0x10
mov dword [esp + 0x14], eax
push str..dll
lea eax, [esp + 0x18]
push eax
call fcn.00408c05
push 0x104
lea eax, [esp + 0x134]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a9d
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x408a9d
push str.MainEntry
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x408a93
push dword [ebp + 0x14]
push ebx
push dword [esp + 0x30]
push dword [esp + 0x18]
call eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi - 0x10]
call fcn.004011ad
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004011ad
lea esi, [esp + 0x18]
call fcn.00416fe2
lea eax, [esp + 0x2c]
push eax
call fcn.0041708b
xor eax, eax
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421ac2
mov esp, ebp
pop ebp
ret 0x10
push str._runLatest
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00401d9d
push eax
call fcn.00408c2c
mov ebx, eax
mov eax, dword [esp + 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
call fcn.004011ad
inc bl
je 0x408b10
call fcn.00409f26
jmp 0x408ab1
push str._runCleanOld
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
call fcn.00401d9d
push eax
call fcn.00408c2c
mov ebx, eax
mov eax, dword [esp + 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
call fcn.004011ad
inc bl
je 0x408b49
call fcn.004112f4
jmp 0x408ab1
push str.TENCENT_ANDROID_SERVER_NAME
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xb7
jne 0x408b75
cmp ebx, edi
je 0x408b79
push ebx
call esi
xor ebx, ebx
cmp ebx, edi
jne 0x408b93
lea esi, [esp + 0x18]
call fcn.00416fe2
lea eax, [esp + 0x2c]
push eax
call fcn.0041708b
mov eax, edi
jmp 0x408ac6
call fcn.00409eb2
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xd4], edi
call fcn.0040ac63
lea eax, [esp + 0x104]
push eax
call fcn.0040ac63
lea eax, [esp + 0x40]
push eax
call fcn.00409d1b
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040a1ce
mov edi, eax
lea eax, [esp + 0x40]
push eax
call fcn.00409ddb
lea eax, [esp + 0x78]
push eax
call fcn.0040ade6
push ebx
call esi
jmp 0x408b79