Function at 0x40b340
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xac8
mov eax, dword [0x45e4b8]
xor eax, esp
mov dword [esp + 0xac4], eax
push esi
push edi
push 0x419330
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea edx, [esp + 0x13]
lea ecx, [esp + 0x14]
call fcn.0040a8a0
cmp byte [esp + 0x13], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40b3a7
call fcn.00409cf0
mov esi, eax
test esi, esi
je 0x40b3a7
mov cl, byte [esp + 0x14]
mov edx, esi
call fcn.00409dd0
test al, al
je 0x40b3a4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
push 0x4534b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b76a
call fcn.0040a1c0
test al, al
jne 0x40b3f1
push esi
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xac4]
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x14], 0
je 0x40b510
call fcn.0040a160
test al, al
jne 0x40b510
call fcn.00418870
test al, al
jne 0x40b510
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x290]
push 0x32
push eax
push 0x67
push 0
call esi
push 0x3e8
lea eax, [esp + 0x2fc]
push eax
push 0x66
push 0
call esi
push 0
lea eax, [esp + 0x294]
push eax
lea eax, [esp + 0x300]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x144
lea eax, [esp + 0x14c]
push 0
push eax
call fcn.0042ea00
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x4534e4
call fcn.00401ba0
push str.WZChinaAutoUpdater
lea ecx, [esp + 0x54]
call fcn.00401ba0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x150]
call fcn.0040ad20
lea ecx, [esp + 0x50]
call fcn.00401cf0
lea ecx, [esp + 0x1c]
call fcn.00401cf0
push dword [esp + 0x14]
lea eax, [esp + 0x14c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x58]
movdqa xmmword [esp + 0x58], xmm0
movq qword [esp + 0x68], xmm0
call fcn.004018e0
call fcn.00401940
push dword [esp + 0x18]
call edi
lea ecx, [esp + 0x50]
call fcn.0040ba10
lea ecx, [esp + 0x148]
call fcn.0040b790
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xac4]
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0xb0]
call fcn.0040ba50
xor eax, eax
mov dword [esp + 0x8c], 7
lea edx, [esp + 0x78]
mov dword [esp + 0x88], 0
lea ecx, [esp + 0xb0]
mov word [esp + 0x78], ax
call fcn.00401960
test al, al
je 0x40b728
lea edx, [esp + 0x110]
lea ecx, [esp + 0xe0]
call fcn.0040a530
test al, al
je 0x40b728
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x114]
call fcn.0040a640
add esp, 4
test al, al
je 0x40b728
call fcn.0040a260
test al, al
jne 0x40b728
push 0x38
lea eax, [esp + 0x294]
push 0
push eax
call fcn.0042ea00
add esp, 8
lea ecx, [esp + 0x294]
call fcn.00417900
push 0x144
lea eax, [esp + 0x14c]
push 0
push eax
call fcn.0042ea00
add esp, 0xc
lea ecx, [esp + 0x38]
push 0x4534e4
call fcn.00401ba0
push str.WZChinaAutoUpdater
lea ecx, [esp + 0x20]
call fcn.00401ba0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x150]
call fcn.0040ad20
lea ecx, [esp + 0x1c]
call fcn.00401cf0
lea ecx, [esp + 0x38]
call fcn.00401cf0
push dword [esp + 0x14]
lea eax, [esp + 0x14c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x58]
movdqa xmmword [esp + 0x58], xmm0
movq qword [esp + 0x68], xmm0
call fcn.004018e0
push 0xd0
call fcn.00429884
mov esi, eax
add esp, 4
test esi, esi
je 0x40b69c
push 0xd0
push 0
push esi
call fcn.0042ea00
sub esp, 0xc
lea eax, [esp + 0x90]
mov ecx, esp
push eax
call fcn.00401b70
push dword [esp + 0x2c]
lea eax, [esp + 0xcc]
mov ecx, esi
push eax
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.00403ba0
mov esi, eax
jmp 0x40b69e
xor esi, esi
xorps xmm0, xmm0
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x94]
movdqa xmmword [esp + 0x94], xmm0
movdqa xmmword [esp + 0xa4], xmm0
call fcn.00419ff0
push ecx
lea ecx, [esp + 0x14c]
call fcn.0040b230
mov edx, esi
lea ecx, [esp + 0x90]
call fcn.004194d0
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [esp + 0x1dc], 1
jne 0x40b6f7
call fcn.0040a790
lea ecx, [esp + 0x90]
call fcn.0041a0c0
lea ecx, [esp + 0x50]
call fcn.0040ba10
lea ecx, [esp + 0x148]
call fcn.0040b790
lea ecx, [esp + 0x290]
call fcn.00417a30
mov esi, dword [esp + 0x18]
push esi
call edi
cmp dword [esp + 0x8c], 8
jb 0x40b741
push dword [esp + 0x78]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
lea ecx, [esp + 0xb0]
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
call fcn.0040bac0
mov ecx, dword [esp + 0xacc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x10