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 0x5d646c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x36fc
call fcn.004fa640
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x36f8], eax
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x3710]
mov dword fs:[0], eax
push str.JMV_Integrated_Surveillance_System
push 0
push 0
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404aca
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404aca
call fcn.004d4991
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 + 0x14], eax
mov dword [esp + 0x3718], 0
call fcn.004d4991
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 + 0x30], eax
mov byte [esp + 0x3718], 1
call fcn.004d4991
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 + 0x18], eax
push 0x104
lea ecx, [esp + 0x3600]
push ecx
push 0
mov byte [esp + 0x3724], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x35fc]
push edx
lea eax, [esp + 0x1c]
push 0x604eec
push eax
call fcn.004057d0
add esp, 0xc
lea ecx, [esp + 0x35fc]
push 0x5c
push ecx
call fcn.004f3288
lea edx, [esp + 0x3604]
sub eax, edx
add esp, 8
add eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00404d30
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x371c], 3
call fcn.00404f90
mov byte [esp + 0x3718], 2
mov eax, dword [esp + 0x1c]
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.004d4991
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 + 0x24], eax
mov byte [esp + 0x3718], 4
call fcn.004d4991
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 + 0x2c], eax
push str.DvrPlayer.exe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x3724], 5
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x371c], 6
call fcn.00404f90
mov byte [esp + 0x3718], 5
mov eax, dword [esp + 0x1c]
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 + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x371c], 7
call fcn.00404f90
mov byte [esp + 0x3718], 5
mov eax, dword [esp + 0x1c]
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 + 0x24]
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push ebx
call fcn.004053b0
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov byte [esp + 0x3738], 8
mov ecx, esp
mov dword [esp + 0x3c], esp
push str..rec
call fcn.00404e90
mov byte [esp + 0x3738], 5
call fcn.00421990
mov ecx, dword [esp + 0x4c]
add esp, 0x20
call fcn.00421d50
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 + 0x58]
push ecx
mov dword [esp + 0xc4], 0x20
mov dword [esp + 0x84], 0x40000
mov word [esp + 0x80], 0x9c
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov edi, dword [esp + 0x20]
push 1
mov dword [edi + 0xac], eax
call esi
mov ecx, dword [edi + 0xac]
cmp ecx, 0x400
mov dword [edi + 0xb0], eax
jl 0x4049f8
cmp eax, 0x300
jl 0x4049f8
cmp ecx, 0x400
jne 0x4045aa
cmp eax, 0x300
je 0x4045b9
push 0x300
push 0x400
call fcn.00404c30
lea ecx, [esp + 0x1c]
call fcn.00404ce0
push 0x604f64
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x3724], 9
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x371c], 0xa
call fcn.00404f90
lea ecx, [esp + 0x20]
call fcn.00484da0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x409
push 0x604f6c
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x40462b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [0x649944]
mov dword [edx + 0x1c], eax
jmp 0x404634
mov ecx, dword [0x649944]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.00404ce0
mov byte [esp + 0x3718], 0xb
mov edx, dword [0x649944]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push str._slan_d.lan
push edx
call fcn.004057d0
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00404f70
call fcn.00422720
test eax, eax
jne 0x4046cf
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.004d5d86
lea ecx, [esp + 0x20]
call fcn.00484da0
lea ecx, [esp + 0x1c]
call fcn.00484da0
lea ecx, [esp + 0x2c]
call fcn.00484da0
lea ecx, [esp + 0x24]
call fcn.00484da0
lea ecx, [esp + 0x18]
call fcn.00484da0
lea ecx, [esp + 0x30]
call fcn.00484da0
lea ecx, [esp + 0x14]
call fcn.00484da0
jmp 0x404aca
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x40468b
push str.config.dat
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00404db0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x371c], 0xc
call fcn.00404f90
lea ecx, [esp + 0x28]
mov byte [esp + 0x3718], 0xb
call fcn.00484da0
lea ecx, [esp + 0x3c]
call fcn.004d463c
mov bl, 0xd
mov byte [esp + 0x3718], bl
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.004d46c8
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004d42fd
test esi, esi
jne 0x404799
push 0x580
lea ecx, [esp + 0x2c]
push ecx
call fcn.00422af0
mov byte [esp + 0x3718], 0xe
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
lea ecx, [esp + 0x28]
mov byte [esp + 0x3718], bl
call fcn.00484da0
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
call fcn.004d5d86
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3718], 0xb
call fcn.004d4660
jmp 0x40468b
mov eax, dword [esp + 0x24]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4047b6
push eax
push eax
push str.Cannot_set_config.dat_file_to_rw_please_login_with_admin_user_
jmp 0x40477e
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004d535b
push 0
call fcn.004d6d9a
add esp, 4
push 0x15e
lea edx, [esp + 0x2c]
push edx
call fcn.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x371c], 0xf
call fcn.00404f90
lea ecx, [esp + 0x28]
mov byte [esp + 0x3718], bl
call fcn.00484da0
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.004d60b7
push 0
call fcn.004d8ffd
test eax, eax
jne 0x404858
push 0x161
lea ecx, [esp + 0x2c]
push ecx
call fcn.00422af0
mov byte [esp + 0x3718], 0x10
jmp 0x40475b
mov esi, 0x649ac0
call fcn.004a7c80
call fcn.004d8c67
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intfd.dll_Ordinal_1
test eax, eax
jne 0x4048b9
push 0x15f
lea eax, [esp + 0x2c]
push eax
call fcn.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x371c], 0x11
call fcn.00404f90
lea ecx, [esp + 0x28]
mov byte [esp + 0x3718], bl
call fcn.00484da0
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
jmp 0x40477e
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.004d8c67
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intfd.dll_Ordinal_4
test eax, eax
jne 0x40491f
push 0x160
lea edx, [esp + 0x2c]
push edx
call fcn.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x371c], 0x12
call fcn.00404f90
lea ecx, [esp + 0x28]
mov byte [esp + 0x3718], bl
call fcn.00484da0
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
jmp 0x40477e
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call fcn.00426e50
add esp, 4
mov dword [edi + 0xa8], esi
call fcn.00448330
call dword [sym.imp.exp.dll_int___cdecl_JMVSDK_Initial_void_]
call fcn.0044e190
call fcn.0044eba0
call fcn.0044e9e0
call fcn.00448330
push eax
call fcn.004491a0
call fcn.00459cc0
test eax, eax
je 0x40496a
call fcn.00484bf0
call fcn.00489500
call fcn.00485400
call fcn.0048bec0
call fcn.0048bef0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x648fc4]
lea edx, [esp + 0xf4]
push edx
mov dword [ecx + 0x20], 0
call fcn.004063b0
lea eax, [esp + 0xf4]
mov byte [esp + 0x3718], 0x13
mov ecx, eax
mov dword [edi + 0x20], eax
mov dword [esp + 0xe14], 0x400
mov dword [esp + 0xe18], 0x300
call fcn.004d8155
lea ecx, [esp + 0xf4]
mov byte [esp + 0x3718], bl
call fcn.004072b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3718], 0xb
call fcn.004d4660
jmp 0x40468b
push 0
push 0
push str.The_resolution_of_your_monitor_should_not_be_lower_than_1024768.
call fcn.004d5d86
mov byte [esp + 0x3718], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3718], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a4f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x3718], 1
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 0x404a77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3718], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3718], 0xffffffff
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 0x404aca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3710]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x36f8]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret