Function at 0x406ac0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c0af
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x495014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x338], 0
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4070ea
cmp byte [ebx + 0x54], 0
jne 0x4070ea
add ebx, 0x18
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a4], ebx
je 0x406b31
mov eax, dword [ebx]
test eax, eax
je 0x406b31
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 0x4070c8
push 0x20a
mov byte [eax + 0x54], 1
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.0044de20
add esp, 0xc
lea eax, [ebp - 0x29c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4070c8
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00403a70
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2d4]
lea ecx, [ebp - 0x304]
call fcn.004175e0
mov byte [ebp - 4], 2
mov ecx, dword [edi + 4]
push eax
add ecx, 0x24
call fcn.00403a30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x304]
call fcn.004039d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.004039d0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x334]
add eax, 0x24
push eax
call fcn.00403ae0
mov byte [ebp - 4], 5
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00403ff0
add esp, 4
lea ecx, [ebp - 0x334]
push eax
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00408040
lea ecx, [ebp - 0x334]
call fcn.00403990
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00403a70
mov byte [ebp - 4], 6
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x406c37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1c], 0
lea ecx, [ebp - 0x2a0]
mov word [ebx + 0x20], 0
mov dword [ebp - 0x2a0], 0
call fcn.00424310
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2a0]
cmp dword [esi], 0
je 0x406c6c
lea eax, [esi + 8]
mov dword [ebp - 0x33c], eax
jmp 0x406c76
mov dword [ebp - 0x33c], 0
lea ecx, [ebp - 0x2ec]
call fcn.00403bd0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x406c95
lea ecx, [ebp - 0x2ec]
call fcn.00403990
jmp 0x406c97
xor eax, eax
push eax
push 0
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x406cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406cbe
mov byte [ebx + 0x21], 1
mov byte [ebp - 4], 6
mov eax, dword [esi]
test eax, eax
je 0x406cde
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 0x406cf3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00436e80
add esp, 8
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2ec]
call fcn.004039d0
lea ecx, [ebp - 0x2bc]
call fcn.00403ac0
mov byte [ebp - 4], 8
push str.c:2345AvScan_
call fcn.00403ff0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push str.c:2345AvScan_
call fcn.00403d00
lea ecx, [ebp - 0x31c]
call fcn.00403ac0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
push str.2345Log.xml
call fcn.00403a70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2d4]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x304]
call fcn.00419f30
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x31c]
push eax
call fcn.00403a30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x304]
call fcn.004039d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.004039d0
lea ecx, [ebp - 0x31c]
call fcn.00416960
test al, al
je 0x407095
sub esp, 0x18
lea eax, [ebp - 0x31c]
mov ecx, esp
mov dword [ebp - 0x33c], esp
push eax
call fcn.00403ae0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00407370
test al, al
je 0x407095
mov eax, dword [edi + 4]
cmp byte [eax + 0x5c], 0
je 0x407095
cmp dword [eax + 0x58], 0
je 0x407095
push 0x48231c
lea ecx, [ebp - 0x354]
call fcn.00403a70
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x354]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x36c]
call fcn.00419f30
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403a30
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x36c]
call fcn.004039d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x354]
call fcn.004039d0
lea ecx, [ebp - 0x2bc]
call fcn.004171e0
mov eax, dword [edi + 4]
lea edx, [ebp - 0x2bc]
add eax, 0x24
lea ecx, [ebp - 0x36c]
push eax
call fcn.00419f30
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403a30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x36c]
call fcn.004039d0
lea ecx, [ebp - 0x2bc]
call fcn.004171e0
lea ecx, [ebp - 0x2d4]
call fcn.00403ac0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.00403ac0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.00403ac0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00407da0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x90]
push 0x80
push 0
push eax
call fcn.0044de20
mov eax, esi
lea ecx, [ebp - 0x90]
cdq
add esp, 0xc
test edx, edx
jg 0x406f43
jl 0x406f2a
test eax, eax
jae 0x406f43
neg eax
mov ecx, 0x2d
mov word [ebp - 0x90], cx
lea ecx, [ebp - 0x8e]
adc edx, 0
neg edx
push edx
push eax
call fcn.00415ca0
add esp, 8
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x354]
push eax
call fcn.00403a70
mov esi, 2
mov dword [ebp - 0x338], 2
mov dword [ebp - 0x338], esi
and esi, 0xfffffffd
mov dword [ebp - 0x338], esi
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x354]
or esi, 1
lea ecx, [ebp - 0x2ec]
push eax
mov dword [ebp - 0x338], esi
call fcn.00403a30
and esi, 0xfffffffe
mov dword [ebp - 0x338], esi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x354]
call fcn.004039d0
push 0x482324
call fcn.00403ff0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x482324
call fcn.00408040
lea ecx, [ebp - 0x2ec]
call fcn.00403bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406fea
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00408040
push 0x482328
call fcn.00403ff0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x482328
call fcn.00408040
lea ecx, [ebp - 0x2d4]
call fcn.00403bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40702c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00408040
push 0x48232c
call fcn.00403ff0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x48232c
call fcn.00408040
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x2bc]
push eax
call fcn.004039a0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.004039d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.004039d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.004039d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x31c]
call fcn.004039d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2bc]
call fcn.004039d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x334]
call fcn.004039d0
mov ebx, dword [ebp - 0x2a4]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4070ea
mov eax, dword [ebx]
test eax, eax
je 0x4070e0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2a4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436e3f
mov esp, ebp
pop ebp
ret 4