Function at 0x40af80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484a94
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.0040b580
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 0x40b03c
push ebx
push 0x10
push str.Can_not_initialize.
call fcn.00419d83
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 0x40b035
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b3e6
lea ecx, [esp + 0x5c]
push ecx
call fcn.00409c90
mov byte [esp + 0x508], 1
mov eax, dword [esp + 0x100]
cmp eax, 0xb
je 0x40b05f
cmp eax, 0xc
jl 0x40b06b
mov edx, dword [esi + 0xa8]
push edx
call fcn.0040af30
push 0x4c6bd8
lea eax, [esp + 0x18]
push str.ft_sf_detect_tools_single_instance_
push eax
call fcn.0040b580
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 0x40b12f
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 0x40b102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00409da0
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 0x40b029
call fcn.0042c83c
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.0042b3fc
push 4
call fcn.0042a657
cmp eax, ebx
je 0x40b16b
mov dword [eax], vtable.CXUICustomOccManager.0
mov edi, eax
jmp 0x40b16d
xor edi, edi
push 8
call fcn.004180ea
add esp, 4
cmp eax, ebx
je 0x40b186
mov dword [eax], vtable.CXUIImpIDispatch.0
mov dword [eax + 4], ebx
jmp 0x40b188
xor eax, eax
push edi
mov dword [esi + 0xc0], eax
call fcn.0042d27f
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0042ba4b
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x50c], 3
call fcn.0042b030
call fcn.0040d5b0
test eax, eax
jge 0x40b1ef
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042ba8f
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 0x40b0f6
cmp dword [esp + 0x28], ebx
jne 0x40b374
cmp dword [esp + 0x2c], ebx
jne 0x40b374
mov eax, dword [esp + 0x34]
cmp eax, 6
jne 0x40b259
push ebx
call fcn.0040ad90
mov eax, dword [0x4c05f4]
cmp eax, ebx
je 0x40b221
call eax
cmp eax, ebx
jl 0x40b226
call fcn.0040c9c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042ba8f
lea ecx, [esp + 0x14]
call fcn.00402660
lea ecx, [esp + 0x5c]
call fcn.00409da0
lea ecx, [esp + 0x10]
call fcn.00402660
xor eax, eax
jmp 0x40b3e6
cmp eax, 5
jne 0x40b285
push 1
call fcn.0040ad90
call fcn.0040d280
cmp eax, ebx
jl 0x40b226
mov eax, dword [0x4c05f0]
cmp eax, ebx
je 0x40b226
mov ecx, dword [0x4bfa28]
push ecx
call eax
add esp, 4
jmp 0x40b226
push 0x103
lea edx, [esp + 0x3f1]
push ebx
push edx
mov byte [esp + 0x3f8], bl
call fcn.0043aba0
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 0x40b2c0
mov cx, word [0x4965c4]
sub eax, edx
lea eax, [esp + eax + 0x3e9]
push ebx
mov word [eax], cx
mov dl, byte [0x4965c6]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
mov byte [eax + 2], dl
call fcn.0040d4a0
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 0x40b325
mov dword [esi + 0xbc], ebx
lea ecx, [esp + 0x13c]
push ecx
call fcn.00410c90
lea edx, [esp + 0x13c]
mov byte [esp + 0x508], 5
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0041c472
push ebx
call fcn.0042c78d
lea eax, [esp + 0x13c]
push eax
mov byte [esp + 0x50c], 4
call fcn.00410e30
lea ecx, [esp + 0x48]
call fcn.0040d430
jmp 0x40b226
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 2
call fcn.0042ba8f
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 0x40b3ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
call fcn.00409da0
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 0x40b3e1
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.0043671a
mov esp, ebp
pop ebp
ret