Function at 0x413390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dda8f
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x340], 0
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x41396c
cmp byte [ebx + 0x54], 0
jne 0x41396c
add ebx, 0x18
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2ac], ebx
je 0x413401
mov eax, dword [ebx]
test eax, eax
je 0x413401
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cmp byte [eax + 0x54], 0
jne 0x41394a
push 0x20a
mov byte [eax + 0x54], 1
lea eax, [ebp - 0x2a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41394a
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00402100
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2dc]
lea ecx, [ebp - 0x30c]
call fcn.00418a70
mov byte [ebp - 4], 2
mov ecx, dword [edi + 4]
push eax
add ecx, 0x24
call fcn.00402e90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30c]
call fcn.004020f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2dc]
call fcn.004020f0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x33c]
add eax, 0x24
push eax
call fcn.00409f30
mov byte [ebp - 4], 5
mov ecx, str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00402460
push eax
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
lea ecx, [ebp - 0x33c]
call fcn.0040db80
lea ecx, [ebp - 0x33c]
call fcn.00402e50
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00402100
mov byte [ebp - 4], 6
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x413504
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1c], 0
lea ecx, [ebp - 0x2a8]
mov word [ebx + 0x20], 0
mov dword [ebp - 0x2a8], 0
call fcn.0042a5a0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2a8]
cmp dword [esi], 0
je 0x413533
lea edx, [esi + 8]
jmp 0x413535
xor edx, edx
lea ecx, [ebp - 0x2f4]
call fcn.00402e40
test al, al
jne 0x41354b
call fcn.00402e50
jmp 0x41354d
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x41356f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41356f
mov byte [ebx + 0x21], 1
mov byte [ebp - 4], 6
mov eax, dword [esi]
test eax, eax
je 0x41358f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4135a4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004d9a23
add esp, 8
mov dword [ebp - 0x2a8], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f4]
call fcn.004020f0
lea ecx, [ebp - 0x2c4]
call fcn.00402ed0
mov byte [ebp - 4], 8
mov ecx, str.c:2345AvScan_
call fcn.00402460
push eax
push str.c:2345AvScan_
lea ecx, [ebp - 0x2c4]
call fcn.00402250
lea ecx, [ebp - 0x324]
call fcn.00402ed0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2dc]
push str.2345Log.xml
call fcn.00402100
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2dc]
push eax
lea edx, [ebp - 0x2c4]
lea ecx, [ebp - 0x30c]
call fcn.0041ad70
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x324]
push eax
call fcn.00402e90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x30c]
call fcn.004020f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2dc]
call fcn.004020f0
lea ecx, [ebp - 0x324]
call fcn.00418570
test al, al
je 0x413917
sub esp, 0x18
lea eax, [ebp - 0x324]
mov ecx, esp
mov dword [ebp - 0x2a8], esp
push eax
call fcn.00409f30
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00413c20
test al, al
je 0x413917
mov eax, dword [edi + 4]
cmp byte [eax + 0x5c], 0
je 0x413917
cmp dword [eax + 0x58], 0
je 0x413917
push 0x4e54a4
lea ecx, [ebp - 0x358]
call fcn.00402100
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x358]
push eax
lea edx, [ebp - 0x2c4]
lea ecx, [ebp - 0x370]
call fcn.0041ad70
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c4]
push eax
call fcn.00402e90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x370]
call fcn.004020f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x358]
call fcn.004020f0
lea ecx, [ebp - 0x2c4]
call fcn.00418870
mov eax, dword [edi + 4]
lea edx, [ebp - 0x2c4]
add eax, 0x24
lea ecx, [ebp - 0x370]
push eax
call fcn.0041ad70
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c4]
push eax
call fcn.00402e90
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x370]
call fcn.004020f0
lea ecx, [ebp - 0x2c4]
call fcn.00418870
lea ecx, [ebp - 0x2dc]
call fcn.00402ed0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x30c]
call fcn.00402ed0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2f4]
call fcn.00402ed0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00414590
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x94]
push 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x94]
mov eax, esi
cdq
push edx
push eax
call fcn.00417b50
add esp, 8
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x358]
push eax
call fcn.00402100
mov dword [ebp - 0x340], 2
mov esi, 2
mov dword [ebp - 0x340], esi
and esi, 0xfffffffd
mov dword [ebp - 0x340], esi
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x358]
or esi, 1
lea ecx, [ebp - 0x2f4]
push eax
mov dword [ebp - 0x340], esi
call fcn.00402e90
and esi, 0xfffffffe
mov dword [ebp - 0x340], esi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x358]
call fcn.004020f0
mov ecx, 0x4e54ac
call fcn.00402460
push eax
push 0x4e54ac
lea ecx, [ebp - 0x2c4]
call fcn.0040db80
lea ecx, [ebp - 0x2f4]
call fcn.004021e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x413872
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.0040db80
mov ecx, 0x4e54b0
call fcn.00402460
push eax
push 0x4e54b0
lea ecx, [ebp - 0x2c4]
call fcn.0040db80
lea ecx, [ebp - 0x2dc]
call fcn.004021e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4138b1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.0040db80
mov ecx, 0x4e54b4
call fcn.00402460
push eax
push 0x4e54b4
lea ecx, [ebp - 0x2c4]
call fcn.0040db80
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00411db0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2f4]
call fcn.004020f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x30c]
call fcn.004020f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2dc]
call fcn.004020f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x324]
call fcn.004020f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c4]
call fcn.004020f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x33c]
call fcn.004020f0
mov ebx, dword [ebp - 0x2ac]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41396c
mov eax, dword [ebx]
test eax, eax
je 0x413962
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2ac], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 4