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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50fb55
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10fc
call fcn.0049f2c0
mov eax, dword [0x5416a0]
xor eax, esp
mov dword [esp + 0x10f8], eax
push ebx
push esi
push edi
mov eax, dword [0x5416a0]
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.00496980
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 0x521b8c
lea ecx, [esp + 0x24]
call fcn.004048c0
mov eax, dword [esp + 0x20]
push eax
push 0x409
push 0x521b98
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 [0x55ab00]
mov dword [ecx + 0x1c], eax
jmp 0x4043ab
mov edx, dword [0x55ab00]
mov dword [edx + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.00404830
mov byte [esp + 0x1118], 5
mov eax, dword [0x55ab00]
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.004106a0
test eax, eax
jne 0x404421
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.0047a086
lea ecx, [esp + 0x18]
call fcn.00404880
lea ecx, [esp + 0x20]
call fcn.00404880
lea ecx, [esp + 0x14]
call fcn.00404880
jmp 0x404756
push 0x521bd4
lea ecx, [esp + 0x18]
call fcn.004048c0
lea ecx, [esp + 0x34]
call fcn.00478907
mov byte [esp + 0x1118], 6
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004789bb
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.00410b20
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.0047a086
lea ecx, [esp + 0x10]
call fcn.00404880
lea ecx, [esp + 0x34]
mov byte [esp + 0x1118], 5
call fcn.0047892b
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.0047965b
push 0
call fcn.0047b09a
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.00410b20
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.0047a3b7
push 0
call fcn.0047d2db
test eax, eax
jne 0x40459b
push 0x161
lea eax, [esp + 0x20]
push eax
call fcn.00410b20
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.0047cf45
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.00410b20
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.0047cf45
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.00410b20
mov byte [esp + 0x1118], 0xd
jmp 0x40447d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 0xa8], esi
call fcn.00420dd0
call fcn.004318d0
call fcn.00431990
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4c]
push eax
call fcn.00405540
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.0047c433
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1118], bl
call fcn.004059e0
jmp 0x4044a5
call fcn.00478c84
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.00410b20
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.0047a086
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.00495e54
mov esp, ebp
pop ebp
ret