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 0x518f7c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3214
call fcn.004ea520
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x3210], eax
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x3228]
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 0x404a99
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404a99
call fcn.004c2ca4
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 + 0x3230], 0
call fcn.004c2ca4
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 + 0x3230], 1
call fcn.004c2ca4
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 + 0x3118]
push ecx
push 0
mov byte [esp + 0x323c], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x3114]
push edx
lea eax, [esp + 0x18]
push 0x52989c
push eax
call fcn.00405670
add esp, 0xc
lea ecx, [esp + 0x3114]
push 0x5c
push ecx
call fcn.004e16f2
lea edx, [esp + 0x311c]
sub eax, edx
add esp, 8
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3234], 3
call fcn.00404e60
mov byte [esp + 0x3230], 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.004c2ca4
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 + 0x3230], 4
call fcn.004c2ca4
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 + 0x323c], 5
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3234], 6
call fcn.00404e60
mov byte [esp + 0x3230], 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.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3234], 7
call fcn.00404e60
mov byte [esp + 0x3230], 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.00405250
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x54], esp
push str..rec
mov byte [esp + 0x3254], 8
call fcn.00404d60
mov byte [esp + 0x3250], 5
call fcn.0041b5e0
mov ecx, dword [esp + 0x44]
add esp, 0x20
call fcn.0041b9a0
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 0x4049c7
cmp eax, 0x300
jl 0x4049c7
lea ecx, [esp + 0x18]
call fcn.00477dd0
push 0x529914
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x323c], 9
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3234], 0xa
call fcn.00404e60
lea ecx, [esp + 0x20]
call fcn.00404bc0
mov ecx, dword [esp + 0x18]
push ecx
push 0x409
push 0x529920
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 [0x57417c]
mov dword [edx + 0x1c], eax
jmp 0x40460a
mov ecx, dword [0x57417c]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.00477dd0
mov byte [esp + 0x3230], 0xb
mov edx, dword [0x57417c]
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.00405670
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00404e40
call fcn.0041c390
test eax, eax
jne 0x4046a5
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.004c4087
lea ecx, [esp + 0x20]
call fcn.00404bc0
lea ecx, [esp + 0x18]
call fcn.00404bc0
lea ecx, [esp + 0x24]
call fcn.00404bc0
lea ecx, [esp + 0x1c]
call fcn.00404bc0
lea ecx, [esp + 0x14]
call fcn.00404bc0
lea ecx, [esp + 0x28]
call fcn.00404bc0
lea ecx, [esp + 0x10]
call fcn.00404bc0
jmp 0x404a99
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.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3234], 0xc
call fcn.00404e60
lea ecx, [esp + 0x30]
mov byte [esp + 0x3230], 0xb
call fcn.00404bc0
lea ecx, [esp + 0x3c]
call fcn.004c294f
mov bl, 0xd
mov byte [esp + 0x3230], bl
mov edi, dword [esp + 0x1c]
push 0
push edi
lea ecx, [esp + 0x44]
call fcn.004c29db
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004c2610
test esi, esi
jne 0x40476f
push 0x580
lea eax, [esp + 0x34]
push eax
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3234], 0xe
call fcn.00404e60
lea ecx, [esp + 0x30]
mov byte [esp + 0x3230], bl
call fcn.00404bc0
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call fcn.004c4087
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3230], 0xb
call fcn.004c2973
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 esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.004c365c
push 0
call fcn.004c509b
add esp, 4
push 0x15e
lea eax, [esp + 0x30]
push eax
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3234], 0xf
call fcn.00404e60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3230], bl
call fcn.00404bc0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004c43b8
push 0
call fcn.004c731d
test eax, eax
jne 0x404851
push 0x161
lea edx, [esp + 0x30]
push edx
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3234], 0x10
call fcn.00404e60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3230], bl
call fcn.00404bc0
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x404754
call fcn.004c6f68
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intfd.dll_Ordinal_1
test eax, eax
jne 0x4048a8
push 0x15f
lea ecx, [esp + 0x30]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3234], 0x11
call fcn.00404e60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3230], bl
call fcn.00404bc0
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
jmp 0x404754
mov edi, 1
mov dword [esi + 0xa4], edi
call fcn.004c6f68
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intfd.dll_Ordinal_4
test eax, eax
jne 0x4048f9
push 0x160
lea eax, [esp + 0x30]
push eax
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3234], 0x12
call fcn.00404e60
lea ecx, [esp + 0x2c]
jmp 0x40473f
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call fcn.004210d0
add esp, 4
mov dword [esi + 0xa8], edi
call fcn.00445d10
call dword [sym.imp.exp.dll_int___cdecl_JMVSDK_Initial_void_]
call fcn.0044bb70
call fcn.0044c470
call fcn.0044c2b0
call fcn.00445d10
push eax
call fcn.00446b80
call fcn.00477c20
call fcn.0047afd0
call fcn.00478440
call fcn.0047da50
call fcn.0047db10
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x5737f4]
lea eax, [esp + 0xfc]
push eax
mov dword [edx + 0x20], 0
call fcn.00406370
mov edx, dword [esp + 0x34]
mov byte [esp + 0x3230], 0x13
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xfc]
mov dword [esi + 0x20], ecx
mov dword [esp + 0xe70], edx
mov dword [esp + 0xe74], eax
call fcn.004c6456
lea ecx, [esp + 0xfc]
mov byte [esp + 0x3230], bl
call fcn.004070f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3230], 0xb
call fcn.004c2973
jmp 0x404661
push 0
push 0
push str.The_resolution_of_your_monitor_should_not_be_lower_than_1024768.
call fcn.004c4087
mov byte [esp + 0x3230], 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 0x4049fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3230], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a1e
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x3230], 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 0x404a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3230], 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 0x404a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3230], 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 0x404a99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3210]
xor ecx, esp
call fcn.004e0b83
mov esp, ebp
pop ebp
ret