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 0x5c613c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1eb4
call fcn.004eb090
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x1eb0], eax
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x1ec8]
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 0x404a6c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404a6c
call fcn.004c5661
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 + 0x1ed0], 0
call fcn.004c5661
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 + 0x1ed0], 1
call fcn.004c5661
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 + 0x1db8]
push ecx
push 0
mov byte [esp + 0x1edc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x1db4]
push edx
lea eax, [esp + 0x18]
push 0x5f4e54
push eax
call fcn.00405640
add esp, 0xc
lea ecx, [esp + 0x1db4]
push 0x5c
push ecx
call fcn.004e40b2
lea edx, [esp + 0x1dbc]
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 + 0x1ed4], 3
call fcn.00404e30
mov byte [esp + 0x1ed0], 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.004c5661
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 + 0x1ed0], 4
call fcn.004c5661
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 + 0x1edc], 5
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1ed4], 6
call fcn.00404e30
mov byte [esp + 0x1ed0], 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 + 0x1ed4], 7
call fcn.00404e30
mov byte [esp + 0x1ed0], 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 + 0x34], esp
mov esi, esp
push ebx
call fcn.00405220
add eax, 0x10
mov dword [esi], eax
sub esp, 0x18
mov byte [esp + 0x1ef0], 8
mov ecx, esp
mov dword [esp + 0x38], esp
push str..rec
call fcn.00404d60
mov byte [esp + 0x1ef0], 5
call fcn.0041b830
mov ecx, dword [esp + 0x44]
add esp, 0x20
call fcn.0041bbf0
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
push 1
mov edi, eax
call esi
cmp edi, 0x400
jl 0x40499a
cmp eax, 0x300
jl 0x40499a
lea ecx, [esp + 0x18]
call fcn.00476b40
push 0x5f4ecc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x1edc], 9
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ed4], 0xa
call fcn.00404e30
lea ecx, [esp + 0x20]
call fcn.00476b70
mov ecx, dword [esp + 0x18]
push ecx
push 0x409
push 0x5f4ed4
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4045f9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [0x637934]
mov dword [edx + 0x1c], eax
jmp 0x404602
mov ecx, dword [0x637934]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x20]
call fcn.00476b40
mov byte [esp + 0x1ed0], 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.00405640
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00404bc0
call fcn.0041c5c0
test eax, eax
jne 0x40469d
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.004c6a56
lea ecx, [esp + 0x20]
call fcn.00476b70
lea ecx, [esp + 0x18]
call fcn.00476b70
lea ecx, [esp + 0x24]
call fcn.00476b70
lea ecx, [esp + 0x1c]
call fcn.00476b70
lea ecx, [esp + 0x14]
call fcn.00476b70
lea ecx, [esp + 0x28]
call fcn.00476b70
lea ecx, [esp + 0x10]
call fcn.00476b70
jmp 0x404a6c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404659
push str.config_r.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 + 0x1ed4], 0xc
call fcn.00404e30
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ed0], 0xb
call fcn.00476b70
lea ecx, [esp + 0x34]
call fcn.004c530c
mov bl, 0xd
mov byte [esp + 0x1ed0], bl
mov edi, dword [esp + 0x1c]
push 0
push edi
lea ecx, [esp + 0x3c]
call fcn.004c5398
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.004c4fcd
test esi, esi
jne 0x404767
push 0x580
lea eax, [esp + 0x34]
push eax
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1ed4], 0xe
call fcn.00404e30
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ed0], bl
call fcn.00476b70
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call fcn.004c6a56
lea ecx, [esp + 0x34]
mov byte [esp + 0x1ed0], 0xb
call fcn.004c5330
jmp 0x404659
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x404780
push eax
push eax
push str.Cannot_set_config.dat_file_to_rw_please_login_with_admin_user_
jmp 0x40474c
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], 8
mov dword [esp + 0x54], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004c602b
push 0
call fcn.004c7a54
add esp, 4
push 0x15e
lea eax, [esp + 0x30]
push eax
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1ed4], 0xf
call fcn.00404e30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed0], bl
call fcn.00476b70
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004c6d8b
push 0
call fcn.004c9cb8
test eax, eax
jne 0x404849
push 0x161
lea edx, [esp + 0x30]
push edx
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1ed4], 0x10
call fcn.00404e30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed0], bl
call fcn.00476b70
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x40474c
mov esi, 0x637aa8
call fcn.004995b0
call fcn.004c9922
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intfd.dll_Ordinal_1
test eax, eax
jne 0x4048aa
push 0x15f
lea ecx, [esp + 0x30]
push ecx
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1ed4], 0x11
call fcn.00404e30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ed0], bl
call fcn.00476b70
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
jmp 0x40474c
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.004c9922
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intfd.dll_Ordinal_4
test eax, eax
jne 0x4048fb
push 0x160
lea eax, [esp + 0x30]
push eax
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1ed4], 0x12
call fcn.00404e30
lea ecx, [esp + 0x2c]
jmp 0x404737
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call fcn.00420d40
add esp, 4
mov dword [edi + 0xa8], esi
call fcn.00441ee0
call fcn.0047d820
call fcn.0047d850
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x636fb4]
lea eax, [esp + 0xf4]
push eax
mov dword [edx + 0x20], 0
call fcn.00406320
mov byte [esp + 0x1ed0], 0x13
lea ecx, [esp + 0xf4]
mov dword [edi + 0x20], ecx
mov dword [esp + 0xe14], 0x400
mov dword [esp + 0xe18], 0x300
call fcn.004c8e10
lea ecx, [esp + 0xf4]
mov byte [esp + 0x1ed0], bl
call fcn.00406af0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1ed0], 0xb
call fcn.004c5330
jmp 0x404659
push 0
push 0
push str.The_resolution_of_your_monitor_should_not_be_lower_than_1024768.
call fcn.004c6a56
mov byte [esp + 0x1ed0], 4
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 0x4049d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ed0], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049f1
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x1ed0], 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 0x404a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ed0], 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 0x404a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ed0], 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 0x404a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1ec8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1eb0]
xor ecx, esp
call fcn.004e3543
mov esp, ebp
pop ebp
ret