Function at 0x40afa0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484ae4
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
push 0x4c6bd8
lea eax, [esp + 0x14]
mov esi, ecx
push str.ft_sf_detect_tools_single_instance_msgid_
xor ebx, ebx
push eax
mov dword [esi + 0xa8], ebx
call fcn.0040b5a0
add esp, 0xc
mov dword [esp + 0x508], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xa8], eax
cmp eax, ebx
jne 0x40b05c
push ebx
push 0x10
push str.Can_not_initialize.
call fcn.00419daf
mov dword [esp + 0x508], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b406
lea ecx, [esp + 0x5c]
push ecx
call fcn.00409cb0
mov byte [esp + 0x508], 1
mov eax, dword [esp + 0x100]
cmp eax, 0xb
je 0x40b07f
cmp eax, 0xc
jl 0x40b08b
mov edx, dword [esi + 0xa8]
push edx
call fcn.0040af50
push 0x4c6bd8
lea eax, [esp + 0x18]
push str.ft_sf_detect_tools_single_instance_
push eax
call fcn.0040b5a0
add esp, 0xc
mov byte [esp + 0x508], 2
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp ecx, dword [0x4c6cdc]
push edx
sbb eax, eax
and eax, 0x4c6cdc
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 0x40b14f
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0xa8]
push ebx
push ebx
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x508], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00409dc0
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
jmp 0x40b049
call fcn.0042c87a
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.0042b43a
push 4
call fcn.0042a695
cmp eax, ebx
je 0x40b18b
mov dword [eax], vtable.CXUICustomOccManager.0
mov edi, eax
jmp 0x40b18d
xor edi, edi
push 8
call fcn.00418106
add esp, 4
cmp eax, ebx
je 0x40b1a6
mov dword [eax], vtable.CXUIImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x40b1a8
xor eax, eax
push edi
mov dword [esi + 0xc0], eax
call fcn.0042d345
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0042ba89
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x50c], 3
call fcn.0042b06e
call fcn.0040d5e0
test eax, eax
jge 0x40b20f
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042bacd
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
jmp 0x40b116
cmp dword [esp + 0x28], ebx
jne 0x40b394
cmp dword [esp + 0x2c], ebx
jne 0x40b394
mov eax, dword [esp + 0x34]
cmp eax, 6
jne 0x40b279
push ebx
call fcn.0040adb0
mov eax, dword [0x4c05f4]
cmp eax, ebx
je 0x40b241
call eax
cmp eax, ebx
jl 0x40b246
call fcn.0040c9f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042bacd
lea ecx, [esp + 0x14]
call fcn.00402580
lea ecx, [esp + 0x5c]
call fcn.00409dc0
lea ecx, [esp + 0x10]
call fcn.00402580
xor eax, eax
jmp 0x40b406
cmp eax, 5
jne 0x40b2a5
push 1
call fcn.0040adb0
call fcn.0040d2b0
cmp eax, ebx
jl 0x40b246
mov eax, dword [0x4c05f0]
cmp eax, ebx
je 0x40b246
mov ecx, dword [0x4bfa28]
push ecx
call eax
add esp, 4
jmp 0x40b246
push 0x103
lea edx, [esp + 0x3f1]
push ebx
push edx
mov byte [esp + 0x3f8], bl
call fcn.0043abc0
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 0x40b2e0
mov cx, word [0x496574]
sub eax, edx
lea eax, [esp + eax + 0x3e9]
push ebx
mov word [eax], cx
mov dl, byte [0x496576]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
mov byte [eax + 2], dl
call fcn.0040d4d0
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 0x40b345
mov dword [esi + 0xbc], ebx
lea ecx, [esp + 0x13c]
push ecx
call fcn.00410ca0
lea edx, [esp + 0x13c]
mov byte [esp + 0x508], 5
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0041c4a3
push ebx
call fcn.0042c7cb
lea eax, [esp + 0x13c]
push eax
mov byte [esp + 0x50c], 4
call fcn.00410e40
lea ecx, [esp + 0x48]
call fcn.0040d460
jmp 0x40b246
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042bacd
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 0x40b3cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00409dc0
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 0x40b401
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.00436738
mov esp, ebp
pop ebp
ret