Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
push str.This_is_a_unique_bda_tv_monitor
xor ebp, ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov dword [esp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401032
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x10
mov eax, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
cmp eax, ebp
mov dword [0x40d110], esi
jne 0x4010a3
push 0x65
push esi
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], 0x401280
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
call edi
push 0x7f00
push ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], str.BdaMonitor
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebp
push esi
push ebp
push ebp
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0xcf0000
push str.BDA_TV_Monitor
push str.BdaMonitor
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x10
push ebp
push ebp
push 1
push str.emoem.ico
push ebp
mov dword [0x40d114], eax
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebp
mov dword [0x40d10c], eax
jne 0x4010fb
push 0x65
push esi
call edi
mov dword [0x40d10c], eax
mov ecx, dword [0x40d114]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, str.BDA_TV_Monitor
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x40d114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x40d0b0], 0x58
mov eax, ecx
mov esi, edi
mov edi, 0x40d0c8
mov dword [0x40d0b4], edx
shr ecx, 2
mov dword [0x40d0b8], 0x65
mov dword [0x40d0bc], 7
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x40d0b0
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40d10c]
mov dword [0x40d0c0], 0x401
mov dword [0x40d0c4], ecx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [0x40d118]
cmp ecx, ebp
jne 0x4011ac
push 0x2405c
call fcn.0040500b
add esp, 4
cmp eax, ebp
je 0x40119e
mov ecx, eax
call fcn.00401490
jmp 0x4011a0
xor eax, eax
mov ecx, eax
cmp eax, ebp
mov dword [0x40d118], ecx
je 0x4011fd
cmp dword [ecx + 0x40], ebp
je 0x4011fd
xor esi, esi
cmp word [ecx + 0xc056], bp
jle 0x4011db
mov edx, dword [0x40d114]
push edx
push esi
call fcn.00401cc0
mov ecx, dword [0x40d118]
inc esi
movsx eax, word [ecx + 0xc056]
cmp esi, eax
jl 0x4011bc
call fcn.00401850
mov ecx, dword [0x40d114]
push ecx
mov ecx, dword [0x40d118]
call fcn.004020a0
mov ecx, dword [0x40d118]
call fcn.00401850
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
lea edx, [esp + 0x1c]
push ebp
push edx
call esi
test eax, eax
je 0x40123d
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
push ebp
push ebp
lea edx, [esp + 0x1c]
push ebp
push edx
call esi
test eax, eax
jne 0x40121d
mov ebx, dword [esp + 0x10]
mov esi, dword [0x40d118]
cmp esi, ebp
je 0x40125d
mov ecx, esi
call fcn.00401530
push esi
call fcn.00405000
add esp, 4
mov dword [0x40d118], ebp
pop edi
cmp ebx, ebp
pop esi
je 0x40126a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x48
ret 0x10