Function at 0x4041f0
Capabilities:
Check mutex on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x84
mov eax, dword [str.GlobalK7SmartVirtualScanInProgress]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push ebx
xor ebp, ebp
push ebx
xor esi, esi
mov dword [esp + 0x24], ebp
xor edi, edi
mov byte [esp + 0x1f], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x4043fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4043ce
push 0x80ec
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x4043ce
lea ebp, [esi + 0xec]
mov edi, ebp
add ebp, 0x1000
lea eax, [ebp + 0x1000]
mov byte [eax], bl
mov dword [esp + 0x24], eax
mov eax, 1
cmp dword [0x425c38], eax
mov dword [esp + 0x14], eax
jle 0x4042f8
mov edi, edi
mov ecx, dword [0x425c3c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push 8
push str._dsmdir
push eax
mov dword [esp + 0x28], eax
call fcn.00409744
add esp, 0xc
test eax, eax
jne 0x4042ba
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4042d5
mov edx, dword [esp + 0x1c]
push str._abortifscanning
push edx
call fcn.00409600
add esp, 8
test eax, eax
jne 0x4042d5
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [0x425c38]
mov dword [esp + 0x14], eax
jl 0x404280
cmp byte [esp + 0x13], bl
je 0x4042f8
cmp byte [0x425c14], bl
jne 0x4043b9
push edi
push 0xfa0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push ebx
push 0x41b53c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x6f
push edi
call fcn.00408dd0
push edi
push str._INIFile_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x40], ebp
lea eax, [esp + 0x40]
mov dword [esi + 0x18], eax
mov al, 9
mov cl, 3
mov byte [esi + 0x38], al
mov byte [esi + 0x56], cl
mov byte [esi + 0x57], al
mov byte [esi + 0x58], cl
mov byte [esi + 0x59], al
mov byte [esi + 0x5a], cl
mov byte [esi + 0x5b], al
mov eax, dword [esp + 0x38]
mov dword [esi], 0xec
mov dword [esi + 4], 0x3e8
mov dword [esi + 8], 0x69
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], 1
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], 1
mov dword [esi + 0x34], 0x811
mov byte [esi + 0x40], bl
mov byte [esi + 0x43], bl
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x54], 1
mov dword [esi + 0x30], ebx
mov byte [esi + 0x55], bl
mov dword [esi + 0x50], ebx
mov byte [esi + 0x42], bl
movsx ecx, byte [eax]
add esp, 0x14
neg ecx
sbb ecx, ecx
and ecx, eax
push esi
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], ebx
call sub.K7AVWScn.DLL_K7ScanUI_RunScanner
mov dword [esp + 0x18], eax
cmp edi, ebx
je 0x4043c8
cmp byte [edi], bl
je 0x4043c8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4043e7
cmp byte [edi + 0x61], bl
je 0x4043e7
call fcn.00403da0
cmp esi, ebx
je 0x4043fa
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x84
ret