Function at 0x409190
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447c94
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
mov eax, dword [0x45c5d0]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push str.ft_abchina_detect_tools_single_instance_msgid
lea ecx, [esp + 0x14]
mov dword [esi + 0xa8], ebx
call fcn.00401fd0
mov dword [esp + 0x508], ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xa8], eax
cmp eax, ebx
jne 0x409243
push ebx
push 0x10
push str.Can_not_initialize.
call fcn.004141a0
mov dword [esp + 0x508], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40923c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095de
lea ecx, [esp + 0x5c]
push ecx
call fcn.00408520
mov byte [esp + 0x508], 1
mov eax, dword [esp + 0x100]
cmp eax, 0xb
je 0x409266
cmp eax, 0xc
jl 0x409272
mov edx, dword [esi + 0xa8]
push edx
call fcn.00409140
push str.ft_abchina_detect_tools_single_instance
lea ecx, [esp + 0x18]
call fcn.00401fd0
xor eax, eax
mov byte [esp + 0x508], 2
cmp eax, dword [0x46c124]
mov ecx, dword [esp + 0x14]
push ecx
sbb eax, eax
and eax, 0x46c124
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409343
mov edx, dword [esi + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa8]
push ebx
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x508], 1
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 0x409304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00408630
mov dword [esp + 0x508], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40923c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095de
call fcn.00426190
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00424d50
push 4
call fcn.00423fab
cmp eax, ebx
je 0x40937f
mov dword [eax], vtable.CXUICustomOccManager.0
mov edi, eax
jmp 0x409381
xor edi, edi
push 8
call fcn.00413014
add esp, 4
cmp eax, ebx
je 0x40939a
mov dword [eax], vtable.CXUIImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x40939c
xor eax, eax
push edi
mov dword [esi + 0xc0], eax
call fcn.00426bd3
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0042539f
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x50c], 3
call fcn.00424984
call fcn.0040b7a0
test eax, eax
jge 0x4093e7
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.004253e3
jmp 0x4092dc
cmp dword [esp + 0x28], ebx
jne 0x40956c
cmp dword [esp + 0x2c], ebx
jne 0x40956c
mov eax, dword [esp + 0x34]
cmp eax, 6
jne 0x409451
push ebx
call fcn.00408fa0
mov eax, dword [0x46c004]
cmp eax, ebx
je 0x409419
call eax
cmp eax, ebx
jl 0x40941e
call fcn.0040abb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.004253e3
lea ecx, [esp + 0x14]
call fcn.004025a0
lea ecx, [esp + 0x5c]
call fcn.00408630
lea ecx, [esp + 0x10]
call fcn.004025a0
xor eax, eax
jmp 0x4095de
cmp eax, 5
jne 0x40947d
push 1
call fcn.00408fa0
call fcn.0040b470
cmp eax, ebx
jl 0x40941e
mov eax, dword [0x46c000]
cmp eax, ebx
je 0x40941e
mov ecx, dword [0x46bf8c]
push ecx
call eax
add esp, 4
jmp 0x40941e
push 0x103
lea edx, [esp + 0x3f1]
push ebx
push edx
mov byte [esp + 0x3f8], bl
call fcn.00434d10
add esp, 0xc
push 0x104
lea eax, [esp + 0x3f0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x3ec]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4094b8
mov cx, word [0x44fcac]
sub eax, edx
lea eax, [esp + eax + 0x3e9]
push ebx
mov word [eax], cx
mov dl, byte [0x44fcae]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
mov byte [eax + 2], dl
call fcn.0040b690
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x50c], 4
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 0x20]
lea ecx, [esi + 0xac]
push 0x1022
lea edx, [esp + 0x3f4]
push edx
call eax
test eax, eax
jne 0x40951d
mov dword [esi + 0xbc], ebx
lea ecx, [esp + 0x13c]
push ecx
call fcn.0040eca0
lea edx, [esp + 0x13c]
mov byte [esp + 0x508], 5
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.00427bd7
push ebx
call fcn.004260e1
lea eax, [esp + 0x13c]
push eax
mov byte [esp + 0x50c], 4
call fcn.00409610
lea ecx, [esp + 0x48]
call fcn.0040b620
jmp 0x40941e
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.004253e3
mov byte [esp + 0x508], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00408630
mov dword [esp + 0x508], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.0043164a
mov esp, ebp
pop ebp
ret