Function at 0x4041c0
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x511785
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10fc
call fcn.004a0e70
mov eax, dword [0x5426a0]
xor eax, esp
mov dword [esp + 0x10f8], eax
push ebx
push esi
push edi
mov eax, dword [0x5426a0]
xor eax, esp
push eax
lea eax, [esp + 0x1110]
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 0x404756
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404756
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 0x40428c
push 0
lea eax, [esp + 0x1068]
push eax
mov dword [esp + 0x10d4], 0x20
mov dword [esp + 0x1094], 0x40000
mov word [esp + 0x1090], 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 0x4046a3
cmp eax, 0x300
jl 0x4046a3
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404756
lea ecx, [esp + 0x14]
call fcn.00404830
lea ecx, [esp + 0x20]
mov dword [esp + 0x1118], 2
call fcn.00404830
push 0x400
mov bl, 3
push 0x401
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1120], 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.00498490
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 + 0x111c], 4
call fcn.00404a60
lea ecx, [esp + 0x18]
mov byte [esp + 0x1118], bl
call fcn.00404880
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.00404a60
push 0x522b8c
lea ecx, [esp + 0x24]
call fcn.004048c0
mov eax, dword [esp + 0x20]
push eax
push 0x409
push 0x522b98
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4043a2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x55fedc]
mov dword [ecx + 0x1c], eax
jmp 0x4043ab
mov edx, dword [0x55fedc]
mov dword [edx + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.00404830
mov byte [esp + 0x1118], 5
mov eax, dword [0x55fedc]
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.00404f20
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00404860
call fcn.00410650
test eax, eax
jne 0x404421
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.0047bbb4
lea ecx, [esp + 0x18]
call fcn.00404880
lea ecx, [esp + 0x20]
call fcn.00404880
lea ecx, [esp + 0x14]
call fcn.00404880
jmp 0x404756
push str.config.dat
lea ecx, [esp + 0x18]
call fcn.004048c0
lea ecx, [esp + 0x34]
call fcn.0047a461
mov byte [esp + 0x1118], 6
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0047a515
test eax, eax
jne 0x4044c4
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x580
lea ecx, [esp + 0x20]
mov bl, 7
push ecx
mov byte [esp + 0x1120], bl
call fcn.00410ad0
mov byte [esp + 0x1118], 8
push eax
lea ecx, [esp + 0x14]
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
call fcn.0047bbb4
lea ecx, [esp + 0x10]
call fcn.00404880
lea ecx, [esp + 0x34]
mov byte [esp + 0x1118], 5
call fcn.0047a485
jmp 0x404401
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.0047b189
push 0
call fcn.0047cbc4
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x15e
lea ecx, [esp + 0x20]
mov bl, 9
push ecx
mov byte [esp + 0x1120], bl
call fcn.00410ad0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xa
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.0047bee5
push 0
call fcn.0047ee25
test eax, eax
jne 0x40459b
push 0x161
lea eax, [esp + 0x20]
push eax
call fcn.00410ad0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xb
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
jmp 0x4044a0
call fcn.0047ea70
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intf.dll_Ordinal_1
test eax, eax
jne 0x4045f2
push 0x15f
lea edx, [esp + 0x20]
push edx
call fcn.00410ad0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xc
call fcn.00404a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x4044a0
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.0047ea70
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intf.dll_Ordinal_4
test eax, eax
jne 0x404635
push 0x160
lea ecx, [esp + 0x20]
push ecx
call fcn.00410ad0
mov byte [esp + 0x1118], 0xd
jmp 0x40447d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 0xa8], esi
call fcn.00420db0
call fcn.00432da0
call fcn.00432e60
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4c]
push eax
call fcn.004054f0
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1118], 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.0047df5e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1118], bl
call fcn.00405990
jmp 0x4044a5
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4046bd
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 + 0x1120], 0
call fcn.00410ad0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x111c], 1
call fcn.00404a60
mov byte [esp + 0x1118], 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 0x404721
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.0047bbb4
lea eax, [esi - 0x10]
mov dword [esp + 0x1118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10f8]
xor ecx, esp
call fcn.0049795d
mov esp, ebp
pop ebp
ret