Function at 0x408840
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4474aa
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x670]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00412914
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40889c
push 0x80004005
call fcn.004025c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.FTKBAO_Assistant
push 0
mov dword [esp + 0x680], 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.FTKBAO_Assistant
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x40894e
push str.ft_XACommercial_detect_tools_single_instance_msgid
lea ecx, [esp + 0x18]
mov dword [esi + 0xa8], 0
call fcn.00401fc0
mov byte [esp + 0x678], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xa8], eax
test eax, eax
jne 0x408980
push eax
push 0x10
push str.Can_not_initialize.
call fcn.0041339d
mov byte [esp + 0x678], 0
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 0x40894e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x678], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408979
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408d25
lea ecx, [esp + 0x1cc]
push ecx
call fcn.004074b0
mov byte [esp + 0x678], 2
mov eax, dword [esp + 0x270]
cmp eax, 0xb
je 0x4089a6
cmp eax, 0xc
jl 0x4089b2
mov edx, dword [esi + 0xa8]
push edx
call fcn.004087f0
push str.ft_XACommercial_detect_tools_single_instance
lea ecx, [esp + 0x20]
call fcn.00401fc0
xor eax, eax
mov byte [esp + 0x678], 3
cmp eax, dword [0x46c974]
mov ecx, dword [esp + 0x1c]
push ecx
sbb eax, eax
and eax, 0x46c974
push 0
push eax
call edi
mov dword [esi + 0xa4], eax
call ebx
cmp eax, 0xb7
jne 0x408a68
mov edx, dword [esi + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa8]
push 0
push 0
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x678], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1cc]
call fcn.004075c0
mov byte [esp + 0x678], 0
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 0x408942
call fcn.004274e0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004269ed
push 4
call fcn.00425c63
test eax, eax
je 0x408aa4
mov dword [eax], vtable.CXUICustomOccManager.0
mov edi, eax
jmp 0x408aa6
xor edi, edi
push 8
call fcn.00412216
add esp, 4
test eax, eax
je 0x408ac3
mov dword [eax], vtable.CXUIImpIDispatch.0
mov dword [eax + 4], 0
jmp 0x408ac5
xor eax, eax
push edi
mov dword [esi + 0xc0], eax
call fcn.00427f23
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0042703c
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov byte [esp + 0x67c], 4
call fcn.00426639
call fcn.0040aee0
test eax, eax
jge 0x408b10
lea ecx, [esp + 0x28]
mov byte [esp + 0x678], 3
call fcn.00427080
jmp 0x408a13
cmp dword [esp + 0x30], 0
jne 0x408ce8
cmp dword [esp + 0x34], 0
jne 0x408ce8
mov eax, dword [esp + 0x3c]
cmp eax, 6
jne 0x408b89
push 0
call fcn.00408650
mov eax, dword [0x46cbf0]
test eax, eax
je 0x408b45
call eax
test eax, eax
jl 0x408b4a
call fcn.0040a2f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x678], 3
call fcn.00427080
lea ecx, [esp + 0x1c]
call fcn.004026a0
lea ecx, [esp + 0x1cc]
call fcn.004075c0
lea ecx, [esp + 0x14]
call fcn.004026a0
lea ecx, [esp + 0x18]
call fcn.004026a0
xor eax, eax
jmp 0x408d25
mov ebx, 5
cmp eax, ebx
jne 0x408bb9
push 1
call fcn.00408650
call fcn.0040abb0
test eax, eax
jl 0x408b4a
mov eax, dword [0x46cbec]
test eax, eax
je 0x408b4a
mov ecx, dword [0x46c2d4]
push ecx
call eax
add esp, 4
jmp 0x408b4a
push 0x103
lea edx, [esp + 0x561]
push 0
push edx
mov byte [esp + 0x568], 0
call fcn.00434290
add esp, 0xc
push 0x104
lea eax, [esp + 0x560]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x55c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408bf7
mov cx, word [0x44f2ac]
sub eax, edx
lea eax, [esp + eax + 0x559]
push 0
mov word [eax], cx
mov dl, byte [0x44f2ae]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
mov byte [eax + 2], dl
call fcn.0040add0
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x67c], bl
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 0x20]
lea ecx, [esi + 0xac]
push 0x1022
lea edx, [esp + 0x564]
push edx
call eax
test eax, eax
jne 0x408c5d
mov dword [esi + 0xbc], eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00407d50
lea ecx, [esp + 0x64]
mov byte [esp + 0x678], 6
call fcn.00415a8f
cmp eax, 1
jne 0x408cca
mov edx, dword [esp + 0xdc]
lea eax, [esp + 0x2ac]
push eax
mov dword [esi + 0xc4], edx
call fcn.0040e400
lea ecx, [esp + 0x2ac]
mov byte [esp + 0x678], 7
mov dword [esi + 0x20], ecx
call fcn.00415a8f
lea edx, [esp + 0x2ac]
push edx
mov byte [esp + 0x67c], 6
call fcn.00408d50
push 0
call fcn.00427431
lea ecx, [esp + 0x64]
mov byte [esp + 0x678], bl
call fcn.00407e60
lea ecx, [esp + 0x50]
call fcn.0040ad60
jmp 0x408b4a
lea ecx, [esp + 0x28]
mov byte [esp + 0x678], 3
call fcn.00427080
lea ecx, [esp + 0x1c]
call fcn.004026a0
lea ecx, [esp + 0x1cc]
call fcn.004075c0
lea ecx, [esp + 0x14]
call fcn.004026a0
lea ecx, [esp + 0x18]
call fcn.004026a0
mov eax, 1
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.00430bec
mov esp, ebp
pop ebp
ret