Function at 0x40add0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e7c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
test edx, edx
je 0x40ae59
cmp word [edx], ax
jne 0x40ae35
xor ecx, ecx
jmp 0x40ae4f
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae40
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004065f0
push ecx
call fcn.00410c00
mov ecx, eax
call fcn.00410d10
lea eax, [ebp - 0x30]
push eax
call fcn.0040b130
mov edi, eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0040a7e0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40ae89
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0xbc], 8
jb 0x40aeb2
push dword [ebp - 0xd0]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
test ebx, ebx
je 0x40b089
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b089
push 0x50
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40af11
mov ecx, eax
call fcn.0040ddf0
jmp 0x40af13
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xb8], ecx
test eax, eax
je 0x40af53
test ecx, ecx
je 0x40af53
cmp dword [eax + 0x2c], 0x40
jae 0x40af53
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [eax + 0x28]
call fcn.0040e770
mov dword [eax], esi
mov dword [eax + 4], 0x40b320
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0xb8], ecx
test eax, eax
je 0x40af85
test ecx, ecx
je 0x40af85
cmp dword [eax + 0x2c], 0x40
jae 0x40af85
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [eax + 0x28]
call fcn.0040e770
mov dword [eax], esi
mov dword [eax + 4], 0x40b2a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0xb8], ecx
test eax, eax
je 0x40afb4
test ecx, ecx
je 0x40afb4
cmp dword [eax + 0x2c], 0x40
jae 0x40afb4
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [eax + 0x28]
call fcn.0040e770
mov dword [eax], esi
mov dword [eax + 4], 0x40b2e0
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040e0d0
call fcn.0040cdc0
push 0x80
lea eax, [ebp - 0xb4]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xb4]
push edi
call fcn.0040bc40
mov byte [ebp - 4], 4
lea eax, [ebp - 0xb4]
push 0
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xb4]
call dword [sym.imp.2345MiniUI.dll_public:_int___thiscall_RC::RCMiniUIDialog::DoModal_struct_HWND_____long_int_]
mov byte [ebp - 4], 3
mov dword [ebp - 0xb4], vtable.RC::RCMainDlg.0
mov dword [ebp - 0x94], vtable.RC::RCMainDlg.1.0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x40b036
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call dword [sym.imp.2345MiniUI.dll_public_virtual:_void___thiscall_RC::RCMiniUIDialog::destructor_void_]
call dword [sym.imp.2345MiniUI.dll_public:_static_class_RC::RCMiniUIAppModule____cdecl_RC::RCMiniUIAppModule::Instance_void_]
mov ecx, eax
call dword [sym.imp.2345MiniUI.dll_public:_void___thiscall_RC::RCMiniUIAppModule::Term_void_]
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [ebp - 0x18]
call fcn.0040e2a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40b0af
mov ecx, esi
call fcn.0040dff0
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call esi
add esp, 4
jmp 0x40b0b5
sub edi, 0
je 0x40b096
dec edi
jne 0x40b0a4
mov eax, dword [esi + 0x44]
jmp 0x40b099
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40b0a4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x40b0af
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x40b0ca
push dword [ebp - 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
xor al, al
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2e2
mov esp, ebp
pop ebp
ret 4