Function at 0x4041d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd535
mov eax, dword fs:[0]
push eax
sub esp, 0xff0
mov eax, dword [0x4ec6a0]
xor eax, esp
mov dword [esp + 0xfe8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ec6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1000]
mov dword fs:[0], eax
push str.JMV_Integrated_Surveillance_System_PlayBack
push 0
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404761
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404761
push eax
push eax
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push 0xc
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebx, 0x20
je 0x404297
push 0
lea eax, [esp + 0xf58]
push eax
mov dword [esp + 0xfc4], 0x20
mov dword [esp + 0xf84], 0x40000
mov word [esp + 0xf80], 0x9c
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov ebx, eax
push 1
mov dword [esp + 0x2c], ebx
call esi
cmp ebx, 0x400
mov dword [esp + 0x24], eax
jl 0x4046ae
cmp eax, 0x300
jl 0x4046ae
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404761
lea ecx, [esp + 0x14]
call fcn.00404830
lea ecx, [esp + 0x20]
mov dword [esp + 0x1008], 2
call fcn.00404830
push 0x400
mov bl, 3
push 0x401
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1010], bl
call fcn.004049a0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
call fcn.00404980
mov esi, eax
push 0x5c
push esi
call fcn.00491db0
sub eax, esi
add esp, 8
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404900
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x100c], 4
call fcn.00404a60
lea ecx, [esp + 0x18]
mov byte [esp + 0x1008], bl
call fcn.00404880
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.00404a60
push 0x4cc7ac
lea ecx, [esp + 0x24]
call fcn.004048c0
mov eax, dword [esp + 0x20]
push eax
push 0x409
push 0x4cc7b4
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4043ad
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x504fe8]
mov dword [ecx + 0x1c], eax
jmp 0x4043b6
mov edx, dword [0x504fe8]
mov dword [edx + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.00404830
mov byte [esp + 0x1008], 5
mov eax, dword [0x504fe8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push str._slan_d.lan
push eax
call fcn.00404f50
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00404860
call fcn.0040e900
test eax, eax
jne 0x40442c
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.00475486
lea ecx, [esp + 0x18]
call fcn.00404880
lea ecx, [esp + 0x20]
call fcn.00404880
lea ecx, [esp + 0x14]
call fcn.00404880
jmp 0x404761
push 0x4cc7f0
lea ecx, [esp + 0x18]
call fcn.004048c0
lea ecx, [esp + 0x34]
call fcn.00473d14
mov byte [esp + 0x1008], 6
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00473dc8
test eax, eax
jne 0x4044cf
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x580
lea ecx, [esp + 0x20]
mov bl, 7
push ecx
mov byte [esp + 0x1010], bl
call fcn.0040ed80
mov byte [esp + 0x1008], 8
push eax
lea ecx, [esp + 0x14]
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1008], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
call fcn.00475486
lea ecx, [esp + 0x10]
call fcn.00404880
lea ecx, [esp + 0x34]
mov byte [esp + 0x1008], 5
call fcn.00473d38
jmp 0x40440c
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00474a5b
push 0
call fcn.00476497
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x15e
lea ecx, [esp + 0x20]
mov bl, 9
push ecx
mov byte [esp + 0x1010], bl
call fcn.0040ed80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100c], 0xa
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1008], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.004757b8
push 0
call fcn.004786d8
test eax, eax
jne 0x4045a6
push 0x161
lea eax, [esp + 0x20]
push eax
call fcn.0040ed80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100c], 0xb
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1008], bl
call fcn.00404880
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
jmp 0x4044ab
call fcn.00478342
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intf.dll_Ordinal_1
test eax, eax
jne 0x4045fd
push 0x15f
lea edx, [esp + 0x20]
push edx
call fcn.0040ed80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100c], 0xc
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1008], bl
call fcn.00404880
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x4044ab
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.00478342
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intf.dll_Ordinal_4
test eax, eax
jne 0x404640
push 0x160
lea ecx, [esp + 0x20]
push ecx
call fcn.0040ed80
mov byte [esp + 0x1008], 0xd
jmp 0x404488
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 0xa8], esi
call fcn.0041f0f0
call fcn.0042cce0
call fcn.0042cda0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4c]
push eax
call fcn.00405370
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1008], 0xe
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [edi + 0x20], ecx
mov dword [esp + 0x4b8], edx
mov dword [esp + 0x4bc], eax
call fcn.00477830
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1008], bl
call fcn.00405810
jmp 0x4044b0
call fcn.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4046c8
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x163
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x1010], 0
call fcn.0040ed80
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100c], 1
call fcn.00404a60
mov byte [esp + 0x1008], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40472c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
call fcn.00475486
lea eax, [esi - 0x10]
mov dword [esp + 0x1008], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1000]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfe8]
xor ecx, esp
call fcn.00491285
mov esp, ebp
pop ebp
ret