Function at 0x4066c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4697ff
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x492014]
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 0x406cea
cmp byte [ebx + 0x54], 0
jne 0x406cea
add ebx, 0x18
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a4], ebx
je 0x406731
mov eax, dword [ebx]
test eax, eax
je 0x406731
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 0x406cc8
push 0x20a
mov byte [eax + 0x54], 1
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp - 0x29c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406cc8
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.004039d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2d4]
lea ecx, [ebp - 0x304]
call fcn.00415700
mov byte [ebp - 4], 2
mov ecx, dword [edi + 4]
push eax
add ecx, 0x24
call fcn.00403990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x304]
call fcn.00403930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.00403930
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x334]
add eax, 0x24
push eax
call fcn.00403a40
mov byte [ebp - 4], 5
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x334]
push eax
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00407c40
lea ecx, [ebp - 0x334]
call fcn.004038f0
push eax
lea ecx, [ebp - 0x2ec]
call fcn.004039d0
mov byte [ebp - 4], 6
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x406837
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.00421aa0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2a0]
cmp dword [esi], 0
je 0x40686c
lea eax, [esi + 8]
mov dword [ebp - 0x33c], eax
jmp 0x406876
mov dword [ebp - 0x33c], 0
lea ecx, [ebp - 0x2ec]
call fcn.00403b30
mov eax, dword [eax + 0x10]
test eax, eax
je 0x406895
lea ecx, [ebp - 0x2ec]
call fcn.004038f0
jmp 0x406897
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 0x4068be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4068be
mov byte [ebx + 0x21], 1
mov byte [ebp - 4], 6
mov eax, dword [esi]
test eax, eax
je 0x4068de
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 0x4068f3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00434612
add esp, 8
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2ec]
call fcn.00403930
lea ecx, [ebp - 0x2bc]
call fcn.00403a20
mov byte [ebp - 4], 8
push str.c:2345AvScan_
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push str.c:2345AvScan_
call fcn.00403c60
lea ecx, [ebp - 0x31c]
call fcn.00403a20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
push str.2345Log.xml
call fcn.004039d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2d4]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x304]
call fcn.00418050
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x31c]
push eax
call fcn.00403990
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x304]
call fcn.00403930
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.00403930
lea ecx, [ebp - 0x31c]
call fcn.00414bd0
test al, al
je 0x406c95
sub esp, 0x18
lea eax, [ebp - 0x31c]
mov ecx, esp
mov dword [ebp - 0x33c], esp
push eax
call fcn.00403a40
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00406f70
test al, al
je 0x406c95
mov eax, dword [edi + 4]
cmp byte [eax + 0x5c], 0
je 0x406c95
cmp dword [eax + 0x58], 0
je 0x406c95
push 0x47f12c
lea ecx, [ebp - 0x354]
call fcn.004039d0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x354]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x36c]
call fcn.00418050
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403990
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x36c]
call fcn.00403930
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x354]
call fcn.00403930
lea ecx, [ebp - 0x2bc]
call fcn.00415450
mov eax, dword [edi + 4]
lea edx, [ebp - 0x2bc]
add eax, 0x24
lea ecx, [ebp - 0x36c]
push eax
call fcn.00418050
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403990
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x36c]
call fcn.00403930
lea ecx, [ebp - 0x2bc]
call fcn.00415450
lea ecx, [ebp - 0x2d4]
call fcn.00403a20
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.00403a20
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.00403a20
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004079a0
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.0044b5b0
mov eax, esi
lea ecx, [ebp - 0x90]
cdq
add esp, 0xc
test edx, edx
jg 0x406b43
jl 0x406b2a
test eax, eax
jae 0x406b43
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.00413f10
add esp, 8
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x354]
push eax
call fcn.004039d0
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.00403990
and esi, 0xfffffffe
mov dword [ebp - 0x338], esi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x354]
call fcn.00403930
push 0x47f134
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x47f134
call fcn.00407c40
lea ecx, [ebp - 0x2ec]
call fcn.00403b30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406bea
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00407c40
push 0x47f138
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x47f138
call fcn.00407c40
lea ecx, [ebp - 0x2d4]
call fcn.00403b30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406c2c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00407c40
push 0x47f13c
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x47f13c
call fcn.00407c40
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x2bc]
push eax
call fcn.00403900
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.00403930
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.00403930
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.00403930
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x31c]
call fcn.00403930
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2bc]
call fcn.00403930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x334]
call fcn.00403930
mov ebx, dword [ebp - 0x2a4]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x406cea
mov eax, dword [ebx]
test eax, eax
je 0x406ce0
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.004345d1
mov esp, ebp
pop ebp
ret 4