Function at 0x40aec6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x482104]
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.004399d0
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.luxiaoche.com_unst_appunstpidpidmidmidmid2mid2appverappvermodvermodvertypetypeactionaction
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.31d77629_ef46_2bf0_f0ef_5b01312e2ac0
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 0x47
xor ebx, ebx
mov dword [ebp - 0x228], edi
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
call fcn.0040742d
push 3
push 0x466808
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 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.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 0x466808
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 0x467524
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 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.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 0x466808
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 0x467540
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 0x47
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdate.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 0x466808
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 0x46754c
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 0x466c70
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