Function at 0x4041d0
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0075
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10fc
call fcn.0049cca0
mov eax, dword [0x4ef6a0]
xor eax, esp
mov dword [esp + 0x10f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1110]
mov dword fs:[0], eax
push str.JMV_Integrated_Surveillance_System_PlayBack
push 0
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404766
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404766
push eax
push eax
push eax
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 ebx, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebx, 0x20
je 0x40429c
push 0
lea eax, [esp + 0x1068]
push eax
mov dword [esp + 0x10d4], 0x20
mov dword [esp + 0x1094], 0x40000
mov word [esp + 0x1090], 0x9c
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov ebx, eax
push 1
mov dword [esp + 0x2c], ebx
call esi
cmp ebx, 0x400
mov dword [esp + 0x24], eax
jl 0x4046b3
cmp eax, 0x300
jl 0x4046b3
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x404766
lea ecx, [esp + 0x14]
call fcn.00404830
lea ecx, [esp + 0x20]
mov dword [esp + 0x1118], 2
call fcn.00404830
push 0x400
mov bl, 3
push 0x401
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1120], bl
call fcn.004049a0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
call fcn.00404980
mov esi, eax
push 0x5c
push esi
call fcn.004945e0
sub eax, esi
add esp, 8
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404900
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x111c], 4
call fcn.00404a50
lea ecx, [esp + 0x18]
mov byte [esp + 0x1118], bl
call fcn.00404880
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.00404a50
push 0x4cf7bc
lea ecx, [esp + 0x24]
call fcn.004048c0
mov eax, dword [esp + 0x20]
push eax
push 0x409
push 0x4cf7c8
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4043b2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x508008]
mov dword [ecx + 0x1c], eax
jmp 0x4043bb
mov edx, dword [0x508008]
mov dword [edx + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.00404830
mov byte [esp + 0x1118], 5
mov eax, dword [0x508008]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push str._slan_d.lan
push eax
call fcn.00404f40
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00404860
call fcn.00410610
test eax, eax
jne 0x404431
push eax
push eax
push str.Cannot_open_resource_file_
call fcn.00477cca
lea ecx, [esp + 0x18]
call fcn.00404880
lea ecx, [esp + 0x20]
call fcn.00404880
lea ecx, [esp + 0x14]
call fcn.00404880
jmp 0x404766
push 0x4cf804
lea ecx, [esp + 0x18]
call fcn.004048c0
lea ecx, [esp + 0x34]
call fcn.0047656a
mov byte [esp + 0x1118], 6
mov eax, dword [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0047661e
test eax, eax
jne 0x4044d4
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x580
lea ecx, [esp + 0x20]
mov bl, 7
push ecx
mov byte [esp + 0x1120], bl
call fcn.00410a90
mov byte [esp + 0x1118], 8
push eax
lea ecx, [esp + 0x14]
call fcn.00404a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
call fcn.00477cca
lea ecx, [esp + 0x10]
call fcn.00404880
lea ecx, [esp + 0x34]
mov byte [esp + 0x1118], 5
call fcn.0047658e
jmp 0x404411
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0047729f
push 0
call fcn.00478cc9
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00404830
push 0x15e
lea ecx, [esp + 0x20]
mov bl, 9
push ecx
mov byte [esp + 0x1120], bl
call fcn.00410a90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xa
call fcn.00404a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.00478000
push 0
call fcn.0047af29
test eax, eax
jne 0x4045ab
push 0x161
lea eax, [esp + 0x20]
push eax
call fcn.00410a90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xb
call fcn.00404a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
jmp 0x4044b0
call fcn.0047ab74
mov eax, dword [eax + 8]
push 0
push 0
push 0
push eax
call sub.intf.dll_Ordinal_1
test eax, eax
jne 0x404602
push 0x15f
lea edx, [esp + 0x20]
push edx
call fcn.00410a90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x111c], 0xc
call fcn.00404a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1118], bl
call fcn.00404880
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
jmp 0x4044b0
mov esi, 1
mov dword [edi + 0xa4], esi
call fcn.0047ab74
mov eax, dword [eax + 8]
push str.INTF
push str.jmv_default
push eax
call sub.intf.dll_Ordinal_4
test eax, eax
jne 0x404645
push 0x160
lea ecx, [esp + 0x20]
push ecx
call fcn.00410a90
mov byte [esp + 0x1118], 0xd
jmp 0x40448d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 0xa8], esi
call fcn.00420d50
call fcn.0042f530
call fcn.0042f5f0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x4c]
push eax
call fcn.00405520
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1118], 0xe
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [edi + 0x20], ecx
mov dword [esp + 0x4b8], edx
mov dword [esp + 0x4bc], eax
call fcn.0047a062
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1118], bl
call fcn.004059c0
jmp 0x4044b5
call fcn.004768e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4046cd
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 0x163
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x1120], 0
call fcn.00410a90
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x111c], 1
call fcn.00404a50
mov byte [esp + 0x1118], 0
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 0x404731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
call fcn.00477cca
lea eax, [esi - 0x10]
mov dword [esp + 0x1118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10f8]
xor ecx, esp
call fcn.00493ab4
mov esp, ebp
pop ebp
ret