Function at 0x406750
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a16f
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x493014]
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 0x406d7a
cmp byte [ebx + 0x54], 0
jne 0x406d7a
add ebx, 0x18
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a4], ebx
je 0x4067c1
mov eax, dword [ebx]
test eax, eax
je 0x4067c1
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 0x406d58
push 0x20a
mov byte [eax + 0x54], 1
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
lea eax, [ebp - 0x29c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406d58
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00403a50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2d4]
lea ecx, [ebp - 0x304]
call fcn.00416060
mov byte [ebp - 4], 2
mov ecx, dword [edi + 4]
push eax
add ecx, 0x24
call fcn.00403a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x304]
call fcn.004039b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d4]
call fcn.004039b0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x334]
add eax, 0x24
push eax
call fcn.00403ac0
mov byte [ebp - 4], 5
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x334]
push eax
push str.A648F790_9820_4172_BAE3_9D01B2FCC055
call fcn.00407cd0
lea ecx, [ebp - 0x334]
call fcn.00403970
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00403a50
mov byte [ebp - 4], 6
mov ebx, dword [edi + 4]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4068c7
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.00422400
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2a0]
cmp dword [esi], 0
je 0x4068fc
lea eax, [esi + 8]
mov dword [ebp - 0x33c], eax
jmp 0x406906
mov dword [ebp - 0x33c], 0
lea ecx, [ebp - 0x2ec]
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x406925
lea ecx, [ebp - 0x2ec]
call fcn.00403970
jmp 0x406927
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 0x40694e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40694e
mov byte [ebx + 0x21], 1
mov byte [ebp - 4], 6
mov eax, dword [esi]
test eax, eax
je 0x40696e
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 0x406983
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00434f80
add esp, 8
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2ec]
call fcn.004039b0
lea ecx, [ebp - 0x2bc]
call fcn.00403aa0
mov byte [ebp - 4], 8
push str.c:2345AvScan_
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push str.c:2345AvScan_
call fcn.00403ce0
lea ecx, [ebp - 0x31c]
call fcn.00403aa0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
push str.2345Log.xml
call fcn.00403a50
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2d4]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x304]
call fcn.004189b0
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x31c]
push eax
call fcn.00403a10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x304]
call fcn.004039b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.004039b0
lea ecx, [ebp - 0x31c]
call fcn.00415530
test al, al
je 0x406d25
sub esp, 0x18
lea eax, [ebp - 0x31c]
mov ecx, esp
mov dword [ebp - 0x33c], esp
push eax
call fcn.00403ac0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00407000
test al, al
je 0x406d25
mov eax, dword [edi + 4]
cmp byte [eax + 0x5c], 0
je 0x406d25
cmp dword [eax + 0x58], 0
je 0x406d25
push 0x48013c
lea ecx, [ebp - 0x354]
call fcn.00403a50
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x354]
push eax
lea edx, [ebp - 0x2bc]
lea ecx, [ebp - 0x36c]
call fcn.004189b0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403a10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x36c]
call fcn.004039b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x354]
call fcn.004039b0
lea ecx, [ebp - 0x2bc]
call fcn.00415db0
mov eax, dword [edi + 4]
lea edx, [ebp - 0x2bc]
add eax, 0x24
lea ecx, [ebp - 0x36c]
push eax
call fcn.004189b0
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00403a10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x36c]
call fcn.004039b0
lea ecx, [ebp - 0x2bc]
call fcn.00415db0
lea ecx, [ebp - 0x2d4]
call fcn.00403aa0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.00403aa0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.00403aa0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00407a30
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.0044bf20
mov eax, esi
lea ecx, [ebp - 0x90]
cdq
add esp, 0xc
test edx, edx
jg 0x406bd3
jl 0x406bba
test eax, eax
jae 0x406bd3
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.00414870
add esp, 8
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x354]
push eax
call fcn.00403a50
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.00403a10
and esi, 0xfffffffe
mov dword [ebp - 0x338], esi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x354]
call fcn.004039b0
push 0x480144
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x480144
call fcn.00407cd0
lea ecx, [ebp - 0x2ec]
call fcn.00403bb0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406c7a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00407cd0
push 0x480148
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x480148
call fcn.00407cd0
lea ecx, [ebp - 0x2d4]
call fcn.00403bb0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x406cbc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00407cd0
push 0x48014c
call fcn.00403fd0
add esp, 4
lea ecx, [ebp - 0x2bc]
push eax
push 0x48014c
call fcn.00407cd0
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x2bc]
push eax
call fcn.00403980
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ec]
call fcn.004039b0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.004039b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d4]
call fcn.004039b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x31c]
call fcn.004039b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2bc]
call fcn.004039b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x334]
call fcn.004039b0
mov ebx, dword [ebp - 0x2a4]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x406d7a
mov eax, dword [ebx]
test eax, eax
je 0x406d70
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.00434f3f
mov esp, ebp
pop ebp
ret 4