Function at 0x40c2b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e5545
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x51f620]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push esi
push edi
mov eax, dword [0x51f620]
xor eax, esp
push eax
lea eax, [esp + 0x590]
mov dword fs:[0], eax
lea eax, [esp + 0x44]
mov esi, ecx
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], 8
mov dword [esp + 0x4c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0046145e
push 8
call fcn.00450212
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40c333
mov dword [eax], vtable.CImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x40c335
xor eax, eax
push 4
mov dword [esi + 0xa4], eax
call fcn.00461b3c
cmp eax, ebx
je 0x40c34e
mov dword [eax], vtable.CCustomOccManager.0
jmp 0x40c350
xor eax, eax
push eax
call fcn.004584d8
add esp, 4
push 0x206
lea edx, [esp + 0x382]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x388], cx
call fcn.004737c0
add esp, 0xc
push 0x104
lea eax, [esp + 0x380]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x37c]
push 0x5c
push ecx
call fcn.0046e51d
add eax, 2
xor edx, edx
mov word [eax], dx
mov ecx, 0x4c
mov word [esp + 0x352], cx
mov ecx, 0x6e
mov word [esp + 0x358], cx
mov edx, 0x61
mov word [esp + 0x354], dx
mov eax, 0x50
mov word [esp + 0x350], ax
mov ecx, 0x65
mov word [esp + 0x35e], cx
mov edx, 0x63
mov word [esp + 0x35a], dx
mov eax, 0x75
mov word [esp + 0x356], ax
mov ecx, 0x75
mov edx, 0x72
mov word [esp + 0x360], dx
mov word [esp + 0x364], cx
mov eax, 0x68
mov word [esp + 0x35c], ax
mov ecx, 0x78
mov edx, 0x74
mov eax, 0x4d
mov word [esp + 0x366], dx
mov word [esp + 0x36a], cx
mov word [esp + 0x362], ax
lea ecx, [esp + 0x350]
mov edx, 0x2b
push ecx
mov eax, 0x65
mov word [esp + 0x370], dx
mov word [esp + 0x36c], ax
lea edx, [esp + 0x388]
xor eax, eax
push 0x104
push edx
mov word [esp + 0x37a], ax
call fcn.0046e925
add esp, 0x14
call fcn.00450641
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c4a8
push 0x80004005
call fcn.004071f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x59c], ebx
call fcn.00491360
add esp, 4
push 0x208
lea edx, [esp + 0x380]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00491130
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x36c]
push edx
call fcn.00491210
add esp, 8
push 1
push 0x51130c
lea ecx, [esp + 0x1c]
call fcn.00408980
xor esi, esi
lea ecx, [ecx]
movzx eax, byte [esp + esi + 0x368]
push eax
push 0x511310
lea edi, [esp + 0x1c]
call fcn.00408dd0
inc esi
add esp, 8
cmp esi, 0x14
jl 0x40c510
push 1
push 0x51131c
mov ecx, edi
call fcn.00408980
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x40c557
mov ecx, dword [esi - 0xc]
push ecx
mov ecx, edi
call fcn.00408e90
mov esi, dword [esp + 0x14]
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [esi - 0x10]
cmp dword [esi - 0xc], ebx
mov dword [0x5294f0], eax
lea eax, [esi - 0x10]
je 0x40c5b9
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x40c591
cmp dword [esi - 8], ebx
jge 0x40c587
push 0x80070057
call fcn.004071f0
xor edx, edx
mov dword [esi - 0xc], ebx
mov word [esi], dx
jmp 0x40c5b9
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c606
push 0x30
push 0x511320
push 0x511330
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x5294f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [0x5294f0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x598], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x40cafe
mov ecx, 0x4c
mov word [esp + 0x334], cx
mov edx, 0x48
mov eax, 0x56
mov ecx, 0x4d
mov word [esp + 0x336], dx
mov word [esp + 0x338], ax
mov word [esp + 0x33a], cx
mov edx, 0x5f
mov eax, 0x25
mov ecx, 0x30
mov word [esp + 0x33c], dx
mov word [esp + 0x33e], ax
mov word [esp + 0x340], cx
mov edx, 0x38
mov eax, 0x58
xor ecx, ecx
mov word [esp + 0x342], dx
mov word [esp + 0x344], ax
mov word [esp + 0x346], cx
call fcn.00450641
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c69f
push 0x80004005
call fcn.004071f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x598], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, 0x1ed8e4e
push eax
lea ecx, [esp + 0x338]
push ecx
lea edi, [esp + 0x20]
call fcn.00408dd0
mov eax, dword [esp + 0x20]
add esp, 8
cmp dword [eax - 4], 1
jle 0x40c6f0
mov edx, dword [eax - 0xc]
push edx
mov ecx, edi
call fcn.00408e90
mov eax, dword [esp + 0x18]
push eax
push 0x80
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea eax, [esp + 0xac]
push eax
call fcn.0040ec00
mov byte [esp + 0x598], 2
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xac]
mov dword [esi + 0x20], ecx
call fcn.004629e3
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x40c743
push eax
mov dword [eax], vtable.CImpIDispatch.0
call fcn.0045024c
add esp, 4
mov ecx, dword [0x52990c]
cmp ecx, ebx
je 0x40c785
mov esi, ecx
call fcn.00449e50
push eax
call fcn.0045024c
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
je 0x40c770
push eax
call fcn.0045024c
add esp, 4
mov dword [esi + 4], ebx
mov edx, dword [0x52990c]
push edx
call fcn.0045024c
add esp, 4
mov dword [0x52990c], ebx
mov ecx, dword [0x529910]
cmp ecx, ebx
je 0x40c7c6
mov esi, ecx
call fcn.00449e50
push eax
call fcn.0045024c
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
je 0x40c7b2
push eax
call fcn.0045024c
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [0x529910]
push eax
call fcn.0045024c
add esp, 4
mov dword [0x529910], ebx
mov eax, dword [0x52af44]
mov ecx, dword [0x52af40]
mov edi, eax
sub edi, ecx
sar edi, 2
xor esi, esi
cmp edi, ebx
jle 0x40c810
mov edi, edi
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40c7f4
call fcn.0046de02
mov ecx, dword [0x52af40]
mov ecx, dword [ecx + esi*4]
push ecx
call fcn.0045024c
mov eax, dword [0x52af44]
mov ecx, dword [0x52af40]
inc esi
add esp, 4
cmp esi, edi
jl 0x40c7e0
mov ebx, eax
cmp ecx, eax
jbe 0x40c826
call fcn.0046de02
mov eax, dword [0x52af44]
mov ecx, dword [0x52af40]
mov esi, dword [0x52af34]
mov edi, ecx
cmp ecx, eax
jbe 0x40c837
call fcn.0046de02
mov ecx, dword [0x52af34]
push ebx
push esi
push edi
push ecx
lea edx, [esp + 0x4c]
push edx
mov esi, 0x52af34
call fcn.0040cea0
mov eax, dword [0x52af5c]
mov ecx, dword [0x52af58]
mov ebx, eax
cmp ecx, eax
jbe 0x40c871
call fcn.0046de02
mov eax, dword [0x52af5c]
mov ecx, dword [0x52af58]
mov esi, dword [0x52af4c]
mov edi, ecx
cmp ecx, eax
jbe 0x40c882
call fcn.0046de02
mov eax, dword [0x52af4c]
push ebx
push esi
push edi
push eax
lea edi, [esp + 0x4c]
mov esi, 0x52af4c
call fcn.0040cf40
push 4
call fcn.00450212
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40c8b1
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40c8b3
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x598], 4
call fcn.0040cc90
mov byte [esp + 0x598], 2
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40c8ed
push eax
call fcn.0045024c
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0045024c
add esp, 4
push 4
call fcn.00450212
add esp, 4
cmp eax, edi
je 0x40c91c
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40c91e
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x598], 6
call fcn.0040cd90
mov byte [esp + 0x598], 2
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40c958
push eax
call fcn.0045024c
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0045024c
add esp, 4
lea eax, [esp + 0x1c]
push eax
call fcn.0040cfd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x52af7c]
mov dword [esp + 0x1c], ecx
mov dword [0x52af7c], eax
cmp ecx, eax
je 0x40c99a
mov esi, dword [eax]
mov edx, dword [ecx]
mov dword [ecx], esi
mov dword [eax], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [0x52af94]
mov edx, dword [0x52af98]
mov dword [0x52af94], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [0x52af98], eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x598], 0xa
call fcn.0040d050
mov byte [esp + 0x598], 2
mov eax, dword [esp + 0x1c]
push eax
call fcn.0045024c
mov eax, dword [0x529924]
add esp, 4
cmp eax, edi
je 0x40c9fe
push eax
call fcn.0045024c
add esp, 4
mov dword [0x529924], edi
mov eax, dword [0x529b30]
cmp eax, edi
je 0x40ca16
push eax
call fcn.0045024c
add esp, 4
mov dword [0x529b30], edi
mov eax, dword [0x529b48]
cmp eax, edi
je 0x40ca2e
push eax
call fcn.0045024c
add esp, 4
mov dword [0x529b48], edi
mov edx, dword [0x52afa4]
mov esi, dword [edx - 0x10]
cmp dword [edx - 0xc], edi
lea eax, [edx - 0x10]
je 0x40ca8d
cmp dword [eax + 0xc], edi
lea ecx, [eax + 0xc]
jge 0x40ca66
cmp dword [edx - 8], edi
jge 0x40ca56
push 0x80070057
call fcn.004071f0
mov dword [edx - 0xc], edi
mov edx, dword [0x52afa4]
xor ecx, ecx
mov word [edx], cx
jmp 0x40ca8d
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [0x52afa4], eax
mov eax, dword [0x5294f0]
cmp eax, edi
je 0x40cab0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x5294f0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5294f0], edi
lea ecx, [esp + 0xac]
mov byte [esp + 0x598], 1
call fcn.004101f0
mov byte [esp + 0x598], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40caec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x598], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x590]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret