Function at 0x404210
Capabilities:
Check mutex on windows
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d675c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3684
call fcn.004fa7e0
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x3680], eax
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x3698]
mov dword fs:[0], eax
push str.JMV_Integrated_Surveillance_System
push 0
push 0
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404aac
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404aac
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042a1
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 + 0x10], eax
mov dword [esp + 0x36a0], 0
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042d6
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 + 0x28], eax
mov byte [esp + 0x36a0], 1
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404308
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 + 0x14], eax
push 0x104
lea ecx, [esp + 0x3588]
push ecx
push 0
mov byte [esp + 0x36ac], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x3584]
push edx
lea eax, [esp + 0x18]
push 0x604f14
push eax
call fcn.004056d0
add esp, 0xc
lea ecx, [esp + 0x3584]
push 0x5c
push ecx
call fcn.004f35e7
lea edx, [esp + 0x358c]
sub eax, edx
add esp, 8
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x36a4], 3
call fcn.00404ec0
mov byte [esp + 0x36a0], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043d0
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 + 0x1c], eax
mov byte [esp + 0x36a0], 4
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404402
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 + 0x24], eax
push str.DvrPlayer.exe
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x36ac], 5
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x36a4], 6
call fcn.00404ec0
mov byte [esp + 0x36a0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40446b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.mediaplayer.ico
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x36a4], 7
call fcn.00404ec0
mov byte [esp + 0x36a0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push ebx
call fcn.004052b0
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x54], esp
push str..rec
mov byte [esp + 0x36c4], 8
call fcn.00404da0
mov byte [esp + 0x36c0], 5
call fcn.00421c20
mov ecx, dword [esp + 0x44]
add esp, 0x20
call fcn.00421fe0
push 0
push 0
push 0
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 edi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 0x20
je 0x404560
push 0
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0xcc], 0x20
mov dword [esp + 0x8c], 0x40000
mov word [esp + 0x88], 0x9c
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov edi, eax
push 1
mov dword [esp + 0x38], edi
call esi
cmp edi, 0x400
mov dword [esp + 0x38], eax
jl 0x4049da
cmp eax, 0x300
jl 0x4049da
lea ecx, [esp + 0x18]
call fcn.00404bf0
push 0x604f8c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x36ac], 9
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x36a4], 0xa
call fcn.00404ec0
lea ecx, [esp + 0x20]
call fcn.00404ea0
mov ecx, dword [esp + 0x18]
push ecx
push 0x409
push 0x604f94
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x404601
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [0x64895c]
mov dword [edx + 0x1c], eax
jmp 0x40460a
mov ecx, dword [0x64895c]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.00404bf0
mov byte [esp + 0x36a0], 0xb
mov edx, dword [0x64895c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x28]
push str._slan_d.lan
push edx
call fcn.004056d0
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00404e80
call fcn.004229d0
test eax, eax
jne 0x4046a5
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.004d60f9
lea ecx, [esp + 0x20]
call fcn.00404ea0
lea ecx, [esp + 0x18]
call fcn.00404ea0
lea ecx, [esp + 0x24]
call fcn.00404ea0
lea ecx, [esp + 0x1c]
call fcn.00404ea0
lea ecx, [esp + 0x14]
call fcn.00404ea0
lea ecx, [esp + 0x28]
call fcn.00404ea0
lea ecx, [esp + 0x10]
call fcn.00404ea0
jmp 0x404aac
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404661
push str.config.dat
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x36a4], 0xc
call fcn.00404ec0
lea ecx, [esp + 0x30]
mov byte [esp + 0x36a0], 0xb
call fcn.00404ea0
lea ecx, [esp + 0x3c]
call fcn.004d49a2
mov bl, 0xd
mov byte [esp + 0x36a0], bl
mov edi, dword [esp + 0x1c]
push 0
push edi
lea ecx, [esp + 0x44]
call fcn.004d4a2e
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004d4663
test esi, esi
jne 0x40476f
push 0x580
lea eax, [esp + 0x34]
push eax
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36a4], 0xe
call fcn.00404ec0
lea ecx, [esp + 0x30]
mov byte [esp + 0x36a0], bl
call fcn.00404ea0
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call fcn.004d60f9
lea ecx, [esp + 0x3c]
mov byte [esp + 0x36a0], 0xb
call fcn.004d49c6
jmp 0x404661
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x404788
push eax
push eax
push str.Cannot_set_config.dat_file_to_rw_please_login_with_admin_user_
jmp 0x404754
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], 8
mov dword [esp + 0x5c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004d56ce
push 0
call fcn.004d7109
add esp, 4
push 0x15e
lea eax, [esp + 0x30]
push eax
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36a4], 0xf
call fcn.00404ec0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x36a0], bl
call fcn.00404ea0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004d642a
push 0
call fcn.004d936f
test eax, eax
jne 0x404851
push 0x161
lea edx, [esp + 0x30]
push edx
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36a4], 0x10
call fcn.00404ec0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x36a0], bl
call fcn.00404ea0
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x404754
mov esi, 0x648ad8
call fcn.004a8710
call fcn.004d8fd9
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intfd.dll_Ordinal_1
test eax, eax
jne 0x4048b2
push 0x15f
lea ecx, [esp + 0x30]
push ecx
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36a4], 0x11
call fcn.00404ec0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x36a0], bl
call fcn.00404ea0
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
jmp 0x404754
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.004d8fd9
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intfd.dll_Ordinal_4
test eax, eax
jne 0x404903
push 0x160
lea eax, [esp + 0x30]
push eax
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36a4], 0x12
call fcn.00404ec0
lea ecx, [esp + 0x2c]
jmp 0x40473f
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call fcn.00427170
add esp, 4
mov dword [edi + 0xa8], esi
call fcn.004485b0
call dword [sym.imp.exp.dll_int___cdecl_JMVSDK_Initial_void_]
call fcn.0044e3f0
call fcn.0044ee00
call fcn.0044ec40
call fcn.004485b0
push eax
call fcn.00449420
call fcn.00459e20
test eax, eax
je 0x40494e
call fcn.00484f20
call fcn.00489810
call fcn.00485710
call fcn.0048c1b0
call fcn.0048c1e0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x647fdc]
lea eax, [esp + 0xfc]
push eax
mov dword [edx + 0x20], 0
call fcn.00406240
mov edx, dword [esp + 0x34]
mov byte [esp + 0x36a0], 0x13
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xfc]
mov dword [edi + 0x20], ecx
mov dword [esp + 0xe1c], edx
mov dword [esp + 0xe20], eax
call fcn.004d84c7
lea ecx, [esp + 0xfc]
mov byte [esp + 0x36a0], bl
call fcn.00407140
lea ecx, [esp + 0x3c]
mov byte [esp + 0x36a0], 0xb
call fcn.004d49c6
jmp 0x404661
push 0
push 0
push str.The_resolution_of_your_monitor_should_not_be_lower_than_1024768.
call fcn.004d60f9
mov byte [esp + 0x36a0], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x36a0], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a31
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x36a0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x36a0], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x36a0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3680]
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret