Function at 0x40e0e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x45a1cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 8
push eax
mov dword [ebp - 0x210], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push dword [ebp + 8]
mov ecx, 0x45b900
push 0
call fcn.0040ad30
call fcn.0040ac40
mov ecx, eax
call fcn.004089a0
test eax, eax
je 0x40e546
lea eax, [ebp - 0x210]
push eax
call fcn.0040ac40
mov ecx, eax
call fcn.004088e0
push dword [eax]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x210]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40e1a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e546
push 0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 1
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], 0
push eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x40e1ff
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c009
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [0x45d224]
xorps xmm0, xmm0
add ebx, 0x10
mov dword [ebp - 0x250], 0x44a8f0
push ebx
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x45b934]
mov edi, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.0042c35c
add esp, 0xc
test eax, eax
je 0x40e299
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.0042c35c
add esp, 0xc
test eax, eax
je 0x40e299
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x40e28a
mov dword [ecx], edi
mov eax, dword [esi + 4]
add eax, edx
je 0x40e296
lea ecx, [ebp - 0x250]
mov dword [eax], ecx
inc dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00425410
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x44a98c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00412ce0
add esp, 4
lea ecx, [ebp - 0x2e4]
call fcn.0040ffe0
push dword [ebp - 0x218]
lea eax, [ebp - 0x2c4]
push eax
push 0x459058
push 0x45aba0
push 0x45b9c0
call fcn.00409390
movzx esi, ax
add esp, 0x14
mov eax, dword [ebp - 0x2d0]
test eax, eax
jne 0x40e35d
call fcn.00415cbe
mov dword [ebp - 0x2d0], eax
test eax, eax
jne 0x40e35d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e3e6
push 0
push 0
push eax
call fcn.00415dc0
test si, si
je 0x40e3e6
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x45aba4
mov dword [ebp - 0x2d8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x45abbc]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2dc]
push 0x45aba4
mov dword [0x45abbc], eax
call edi
mov ecx, dword [0x45902c]
mov eax, dword [0x459034]
mov edx, dword [0x459028]
sub eax, ecx
push 0
push dword [0x45b9c4]
push 0
push 0
push eax
mov eax, dword [0x459030]
sub eax, edx
push eax
push ecx
push edx
push 0x86020000
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x40e423
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
jne 0x40e423
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40e3f7
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40e3f3
test eax, eax
je 0x40e4b9
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call dword [eax]
test eax, eax
jne 0x40e472
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x230]
cmp eax, 0x118
ja 0x40e48d
je 0x40e4a9
cmp eax, 0xf
je 0x40e4a9
cmp eax, 0xa0
jmp 0x40e492
cmp eax, 0x200
je 0x40e4a9
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40e3f3
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40e3f3
mov ecx, 0x45b900
call fcn.0040c260
lea ecx, [ebp - 0x264]
call fcn.00402320
lea ecx, [ebp - 0x26c]
call fcn.00413980
mov edx, dword [ebp - 0x274]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e4f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2e4]
call fcn.00409920
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x40e51f
push eax
call fcn.00428de2
add esp, 4
mov dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
test eax, eax
je 0x40e546
push eax
call fcn.00428de2
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c009
mov esp, ebp
pop ebp
ret 0x10