Function at 0x40bf60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cc24
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [0x463444]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x500], ecx
mov eax, dword [ebp - 0x500]
mov dword [eax + 0xa8], 0
push str.ft_abchina_detect_tools_single_instance_msgid
lea ecx, [ebp - 0xfc]
call fcn.00402330
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.0040dcb0
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ecx, dword [ebp - 0x500]
mov dword [ecx + 0xa8], eax
mov edx, dword [ebp - 0x500]
cmp dword [edx + 0xa8], 0
jne 0x40c01a
push 0
push 0x10
push str.Can_not_initialize.
call fcn.0042d1f7
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4d4]
jmp 0x40c44b
lea ecx, [ebp - 0xf4]
call fcn.0040a480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf4]
call fcn.0040a680
movzx eax, al
test eax, eax
je 0x40c053
mov ecx, dword [ebp - 0x500]
mov edx, dword [ecx + 0xa8]
push edx
mov ecx, dword [ebp - 0x500]
call fcn.0040bed0
push str.ft_qdccb_detect_tools_single_instance
lea ecx, [ebp - 0x10]
call fcn.00402330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040dcb0
push eax
push 0
mov ecx, 0x479220
call fcn.0040b070
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x500]
mov dword [ecx + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c10a
mov edx, dword [ebp - 0x500]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
mov ecx, dword [ebp - 0x500]
mov edx, dword [ecx + 0xa8]
push edx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x4d8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4d8]
jmp 0x40c44b
call fcn.0042d3cb
mov dword [ebp - 0x108], 8
mov dword [ebp - 0x104], 0xff
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x500]
call fcn.0042bc1f
push 4
call fcn.0042ae98
mov dword [ebp - 0x4e0], eax
cmp dword [ebp - 0x4e0], 0
je 0x40c164
mov ecx, dword [ebp - 0x4e0]
call fcn.0040b9a0
mov dword [ebp - 0x504], eax
jmp 0x40c16e
mov dword [ebp - 0x504], 0
mov ecx, dword [ebp - 0x504]
mov dword [ebp - 0x4dc], ecx
mov edx, dword [ebp - 0x4dc]
mov dword [ebp - 0xf8], edx
push 8
call fcn.0041adea
add esp, 4
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e8], 0
je 0x40c1b2
mov ecx, dword [ebp - 0x4e8]
call fcn.00414860
mov dword [ebp - 0x508], eax
jmp 0x40c1bc
mov dword [ebp - 0x508], 0
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x500]
mov edx, dword [ebp - 0x4e4]
mov dword [ecx + 0xc0], edx
mov eax, dword [ebp - 0xf8]
push eax
call fcn.0042de96
add esp, 4
lea ecx, [ebp - 0x4d0]
call fcn.0042c26e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d0]
push ecx
mov ecx, dword [ebp - 0x500]
call fcn.0042b86b
push 1
push 4
mov ecx, 0x479254
call fcn.0040fd70
test eax, eax
jge 0x40c26d
mov dword [ebp - 0x4ec], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042c2b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4ec]
jmp 0x40c44b
cmp dword [ebp - 0x4c8], 0
jne 0x40c27f
cmp dword [ebp - 0x4c4], 0
je 0x40c2d0
mov dword [ebp - 0x4f0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042c2b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4f0]
jmp 0x40c44b
cmp dword [ebp - 0x4bc], 6
jne 0x40c33f
push 0
call fcn.0040bc60
push 0
push 1
mov ecx, 0x479254
call fcn.0040c720
mov dword [ebp - 0x4f4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042c2b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4f4]
jmp 0x40c44b
cmp dword [ebp - 0x4bc], 5
jne 0x40c3ae
push 1
call fcn.0040bc60
push 0
push 1
mov ecx, 0x479254
call fcn.0040c6d0
mov dword [ebp - 0x4f8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042c2b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4f8]
jmp 0x40c44b
mov dword [ebp - 0x4a8], 0
push 0
lea ecx, [ebp - 0x4a4]
call fcn.00414de0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x500]
lea eax, [ebp - 0x4a4]
mov dword [edx + 0x20], eax
lea ecx, [ebp - 0x4a4]
call fcn.0042eae5
mov dword [ebp - 0x100], eax
push 0
call fcn.0042d31c
mov dword [ebp - 0x4fc], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4a4]
call fcn.0040c470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042c2b2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.0040a5f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00402f30
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret