Function at 0x40aec6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x483104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
mov dword [ebp - 0x248], edi
push ebx
push eax
call fcn.0043af20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.V3update.log
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004183e0
push str.http:__s.52toolbox.com_chat_pidpidtypetypeactionactionappappappverappvermidmidmid2mid2modvermodver
lea ecx, [ebp - 0x240]
call fcn.004027d9
mov eax, dword [ebp - 0x240]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402bef
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x24c]
pop ecx
push eax
call fcn.0040a9a2
pop ecx
pop ecx
call fcn.0040adc2
push edi
mov ecx, eax
call fcn.0040939b
push str.D28A2274_24C0_4921_8DD6_439E116A40DC
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b387
cmp eax, 5
je 0x40b387
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x40afc4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004098cb
pop ecx
jmp 0x40b393
call fcn.0040abb9
test al, al
jne 0x40b0b4
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40b094
push 0xf
pop edi
push 0x45
xor ebx, ebx
mov dword [ebp - 0x228], edi
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_update_2update.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
call fcn.0040742d
push 3
push 0x467808
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], bl
call fcn.0040742d
push 0x30
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x328]
call fcn.004044c3
mov esi, eax
push str.update__exit
push esi
call fcn.00403664
pop ecx
pop ecx
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00404f88
lea ecx, [ebp - 0x224]
call fcn.00407237
lea ecx, [ebp - 0x23c]
call fcn.00407237
jmp 0x40b096
xor ebx, ebx
call fcn.004055ed
push ebx
push str.operate
push ebx
push ebx
push str.has_update
mov ecx, eax
call fcn.00419050
jmp 0x40b38e
lea ecx, [ebp - 0x290]
call fcn.0040e199
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
push 0xf
pop edi
sub eax, 1
jne 0x40b182
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 0x45
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_update_2update.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], 0
call fcn.0040742d
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x467808
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040742d
push 0x37
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.004044c3
mov esi, eax
push 0x46848c
push esi
call fcn.00404d86
pop ecx
pop ecx
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00404f88
lea ecx, [ebp - 0x23c]
call fcn.00407237
lea ecx, [ebp - 0x224]
call fcn.00407237
lea ecx, [ebp - 0x290]
call fcn.0040f0a9
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40b258
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x45
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_update_2update.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], al
call fcn.0040742d
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x467808
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040742d
push 0x39
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.004044c3
mov esi, eax
push 0x4684a8
push esi
call fcn.00404d86
pop ecx
pop ecx
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00404f88
lea ecx, [ebp - 0x23c]
call fcn.00407237
lea ecx, [ebp - 0x224]
call fcn.00407237
jmp 0x40b258
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040ecf1
test eax, eax
je 0x40b24d
lea ecx, [ebp - 0x290]
call fcn.0040e8ad
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40b330
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x45
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_update_2update.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], al
call fcn.0040742d
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x467808
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040742d
push 0x40
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.004044c3
mov esi, eax
push 0x4684b4
push esi
call fcn.00404d86
pop ecx
pop ecx
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00404f88
lea ecx, [ebp - 0x23c]
call fcn.00407237
lea ecx, [ebp - 0x224]
call fcn.00407237
lea ecx, [ebp - 0x290]
call fcn.0040e66d
sub esp, 0x18
mov ecx, esp
push 0x467c40
call fcn.00404335
push ecx
mov ecx, esp
push dword [ebp - 0x248]
call fcn.004027d9
lea ecx, [ebp - 0x290]
call fcn.0040ecf5
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ae90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.0040e1da
jmp 0x40b38e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004185f0
mov ecx, dword [ebp - 0x24c]
lea ecx, [ecx - 0x10]
call fcn.00403258
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
call fcn.00403258
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b266
leave
ret 0x10