Function at 0x40a8fb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.0040a8fb
xor esi, esi
mov ecx, 0x52
push esi
dec ecx
jne 0x40a915
mov edx, 0x40e89c
call fcn.0040d2e5
lea ebx, [ebp - 0x19c]
mov ecx, 0x104
call fcn.0040d1a8
lea ebx, [ebp - 0x19c]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c4]
call fcn.0040cda5
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x40a967
inc eax
call fcn.0040cd9e
ftst
fnstsw ax
sahf
fstp st(0)
je 0x40a9b1
push 0xb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x40a9b1
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 0xffffffff
jmp 0x40acf9
mov eax, dword [ebp + 8]
mov dword [0x40e838], eax
mov eax, 8
mov dword [ebp - 0x1c0], eax
fild dword [0x40f99c]
fild dword [0x40f998]
call fcn.0040cd65
fild dword [0x40f9a0]
call fcn.0040cd65
call fcn.0040cdcc
mov dword [ebp - 0x1bc], eax
lea ebx, [ebp - 0x1c0]
push ebx
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
fldcw word [ebp - 0x10]
push 0
mov edx, 0x40e8b4
call fcn.0040d2e5
lea ebx, [esp]
call fcn.0040ce95
call dword [sym.imp.USER32.DLL_RegisterWindowMessageA]
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.0040cd3a
pop eax
add esp, 4
fldcw word [ebp - 0x10]
mov dword [0x40e83c], eax
call fcn.0040ad16
test eax, eax
mov eax, 0xffffffff
jne 0x40aa3e
inc eax
test eax, eax
je 0x40aa64
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 0
jmp 0x40acf9
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040a894
test eax, eax
mov eax, 0xffffffff
jne 0x40aa79
inc eax
test eax, eax
je 0x40aa9f
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 0
jmp 0x40acf9
push 0
push 0
push 0
push dword [0x40e838]
push 0
push 0
push 0x180
push 0x213
push 0x78
push 0x46
fild dword [0x40f694]
fild dword [0x40f6e4]
call fcn.0040cd65
call fcn.0040cdcc
push eax
mov edx, 0x40e8dc
call fcn.0040d2e5
lea ebx, [esp + 0x28]
call fcn.0040ce95
mov edx, 0x40e8cc
call fcn.0040d2e5
lea ebx, [esp + 0x28]
call fcn.0040ce95
push 0x100
call dword [sym.imp.USER32.DLL_CreateWindowExA]
push eax
mov ebx, esp
mov eax, dword [ebx + 8]
call fcn.0040cd3a
mov eax, dword [ebx + 4]
call fcn.0040cd3a
pop eax
add esp, 8
fldcw word [ebp - 0x10]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
call fcn.0040cda5
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
je 0x40ab3f
inc eax
call fcn.0040cd9e
ftst
fnstsw ax
sahf
fstp st(0)
je 0x40ab6f
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 0
jmp 0x40acf9
push 0x15a
push 0x203
push dword [ebp - 0x1c8]
call fcn.00409f46
push dword [ebp + 0x10]
push dword [ebp - 0x1c8]
call fcn.0040a207
test eax, eax
mov eax, 0xffffffff
jne 0x40ab9c
inc eax
test eax, eax
je 0x40abd7
push 0
push 0
push 0x10
push dword [ebp - 0x1c8]
call dword [sym.imp.USER32.DLL_SendMessageA]
fldcw word [ebp - 0x10]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x98], 0
jmp 0x40acf9
push dword [ebp + 0x14]
push dword [ebp - 0x1c8]
call dword [sym.imp.USER32.DLL_ShowWindow]
fldcw word [ebp - 0x10]
push dword [ebp - 0x1c8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
fldcw word [ebp - 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 0
push 0
push 0
lea ebx, [ebp - 0x1b8]
push ebx
call dword [sym.imp.USER32.DLL_GetMessageA]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jle 0x40acd6
lea ebx, [ebp - 0x1b8]
push ebx
push dword [ebp - 0x1c8]
call fcn.0040a23e
test eax, eax
mov eax, 0xffffffff
je 0x40ac40
inc eax
test eax, eax
je 0x40acd1
call dword [sym.imp.USER32.DLL_GetFocus]
fldcw word [ebp - 0x10]
push eax
call fcn.0040a16b
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
call fcn.0040cda5
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
je 0x40ac77
inc eax
call fcn.0040cd9e
ftst
fnstsw ax
sahf
fstp st(0)
jne 0x40acb1
lea ebx, [ebp - 0x1b8]
push ebx
push dword [ebp - 0x1cc]
call dword [sym.imp.USER32.DLL_IsDialogMessageA]
fldcw word [ebp - 0x10]
test eax, eax
mov eax, 0xffffffff
je 0x40aca9
inc eax
test eax, eax
je 0x40acd1
lea ebx, [ebp - 0x1b8]
push ebx
call dword [sym.imp.USER32.DLL_TranslateMessage]
fldcw word [ebp - 0x10]
lea ebx, [ebp - 0x1b8]
push ebx
call dword [sym.imp.USER32.DLL_DispatchMessageA]
fldcw word [ebp - 0x10]
jmp 0x40ac00
push dword [ebp + 8]
call fcn.0040a8cb
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10