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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c69bc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1ebc
call fcn.004eb910
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x1eb8], eax
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x1ed0]
mov dword fs:[0], eax
push str.JMV_Remote_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 0x404a64
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404a64
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404291
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 + 0x1ed8], 0
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042c6
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 + 0x1ed8], 1
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042f8
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 + 0x1dc0]
push ecx
push 0
mov byte [esp + 0x1ee4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x1dbc]
push edx
lea eax, [esp + 0x18]
push 0x5f4e74
push eax
call fcn.00405630
add esp, 0xc
lea ecx, [esp + 0x1dbc]
push 0x5c
push ecx
call fcn.004e4932
lea edx, [esp + 0x1dc4]
sub eax, edx
add esp, 8
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404bf0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1edc], 3
call fcn.00404e20
mov byte [esp + 0x1ed8], 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 0x4043a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043c0
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 + 0x1ed8], 4
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043f2
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 + 0x1ee4], 5
call fcn.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1edc], 6
call fcn.00404e20
mov byte [esp + 0x1ed8], 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 0x40445b
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.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1edc], 7
call fcn.00404e20
mov byte [esp + 0x1ed8], 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 0x4044ac
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.00405210
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x54], esp
push str..rec
mov byte [esp + 0x1efc], 8
call fcn.00404d50
mov byte [esp + 0x1ef8], 5
call fcn.0041c060
mov ecx, dword [esp + 0x44]
add esp, 0x20
call fcn.0041c420
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 0x404550
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 0x404992
cmp eax, 0x300
jl 0x404992
lea ecx, [esp + 0x18]
call fcn.004773a0
push 0x5f4eec
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x1ee4], 9
call fcn.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1edc], 0xa
call fcn.00404e20
lea ecx, [esp + 0x20]
call fcn.004773d0
mov ecx, dword [esp + 0x18]
push ecx
push 0x409
push 0x5f4ef4
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4045f1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [0x637934]
mov dword [edx + 0x1c], eax
jmp 0x4045fa
mov ecx, dword [0x637934]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.004773a0
mov byte [esp + 0x1ed8], 0xb
mov edx, dword [0x637934]
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.00405630
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00404bb0
call fcn.0041cdf0
test eax, eax
jne 0x404695
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.004c72d6
lea ecx, [esp + 0x20]
call fcn.004773d0
lea ecx, [esp + 0x18]
call fcn.004773d0
lea ecx, [esp + 0x24]
call fcn.004773d0
lea ecx, [esp + 0x1c]
call fcn.004773d0
lea ecx, [esp + 0x14]
call fcn.004773d0
lea ecx, [esp + 0x28]
call fcn.004773d0
lea ecx, [esp + 0x10]
call fcn.004773d0
jmp 0x404a64
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404651
push str.config_r.dat
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00404c70
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1edc], 0xc
call fcn.00404e20
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ed8], 0xb
call fcn.004773d0
lea ecx, [esp + 0x3c]
call fcn.004c5b8c
mov bl, 0xd
mov byte [esp + 0x1ed8], bl
mov edi, dword [esp + 0x1c]
push 0
push edi
lea ecx, [esp + 0x44]
call fcn.004c5c18
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004c584d
test esi, esi
jne 0x40475f
push 0x580
lea eax, [esp + 0x34]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1edc], 0xe
call fcn.00404e20
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ed8], bl
call fcn.004773d0
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call fcn.004c72d6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1ed8], 0xb
call fcn.004c5bb0
jmp 0x404651
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x404778
push eax
push eax
push str.Cannot_set_config.dat_file_to_rw_please_login_with_admin_user_
jmp 0x404744
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.004c68ab
push 0
call fcn.004c82d4
add esp, 4
push 0x15e
lea eax, [esp + 0x30]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1edc], 0xf
call fcn.00404e20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed8], bl
call fcn.004773d0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004c760b
push 0
call fcn.004ca538
test eax, eax
jne 0x404841
push 0x161
lea edx, [esp + 0x30]
push edx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1edc], 0x10
call fcn.00404e20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed8], bl
call fcn.004773d0
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x404744
mov esi, 0x637aa8
call fcn.00499e30
call fcn.004ca1a2
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intfd.dll_Ordinal_1
test eax, eax
jne 0x4048a2
push 0x15f
lea ecx, [esp + 0x30]
push ecx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1edc], 0x11
call fcn.00404e20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed8], bl
call fcn.004773d0
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
jmp 0x404744
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.004ca1a2
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intfd.dll_Ordinal_4
test eax, eax
jne 0x4048f3
push 0x160
lea eax, [esp + 0x30]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1edc], 0x12
call fcn.00404e20
lea ecx, [esp + 0x2c]
jmp 0x40472f
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call fcn.00421570
add esp, 4
mov dword [edi + 0xa8], esi
call fcn.00442750
call fcn.0047e0a0
call fcn.0047e0d0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x636fb4]
lea eax, [esp + 0xfc]
push eax
mov dword [edx + 0x20], 0
call fcn.004062f0
mov edx, dword [esp + 0x34]
mov byte [esp + 0x1ed8], 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.004c9690
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1ed8], bl
call fcn.00406ac0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1ed8], 0xb
call fcn.004c5bb0
jmp 0x404651
push 0
push 0
push str.The_resolution_of_your_monitor_should_not_be_lower_than_1024768.
call fcn.004c72d6
mov byte [esp + 0x1ed8], 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 0x4049c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ed8], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049e9
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x1ed8], 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 0x404a11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ed8], 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 0x404a39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ed8], 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 0x404a64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1ed0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1eb8]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret