Function at 0x403f90
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x84
push ebx
push esi
push edi
push 0x80ec
xor edi, edi
mov ebx, 1
push 8
mov dword [esp + 0x28], edi
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x4041dd
lea edi, [esi + 0xec]
push ebp
mov ebp, edi
add edi, 0x1000
lea eax, [edi + 0x1000]
mov byte [eax], 0
cmp dword [0x425c38], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
jle 0x4040b4
nop
mov eax, dword [0x425c3c]
mov ecx, dword [esp + 0x1c]
mov edi, dword [eax + ecx*4]
push 8
push str._dsmdir
push edi
call fcn.00409744
add esp, 0xc
test eax, eax
jne 0x404031
mov edx, dword [esp + 0x14]
add edi, 8
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404091
push 8
push str._wrkdir
push edi
call fcn.00409744
add esp, 0xc
test eax, eax
jne 0x40404e
add edi, 8
mov dword [esp + 0x24], edi
jmp 0x404091
cmp byte [edi], 0x2f
je 0x404063
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x2c], edi
add eax, ebx
mov dword [esp + 0x18], eax
jmp 0x404091
push str._dummy
push edi
call fcn.00409600
add esp, 8
test eax, eax
jne 0x40407b
mov byte [esp + 0x13], bl
jmp 0x404091
push str._reportonly
push edi
call fcn.00409600
add esp, 8
test eax, eax
jne 0x404091
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, ebx
cmp eax, dword [0x425c38]
mov dword [esp + 0x1c], eax
jl 0x404000
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
mov edi, dword [esp + 0x28]
jne 0x4040db
push 0xfa0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.00409290
xor edx, edx
add esp, 8
cmp eax, edx
je 0x4040dd
mov byte [eax], dl
jmp 0x4040dd
xor edx, edx
cmp byte [esp + 0x13], 0
jne 0x404125
push ebp
push 0xfa0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push 0
push 0x41b53c
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xe
push ebp
call fcn.00408dd0
push ebp
push str._INIFile_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x2c]
mov dword [esp + eax*4 + 0x40], edi
add esp, 0x14
add eax, ebx
xor edx, edx
jmp 0x404129
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp ecx, edx
mov dword [esi + 0x14], eax
lea eax, [esp + 0x2c]
mov dword [esi + 0x18], eax
setne al
cmp ecx, edx
setne cl
inc cl
mov dword [esi + 0xc], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x30], edx
lea eax, [eax + eax + 1]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x24]
mov byte [esi + 0x57], cl
mov byte [esi + 0x59], cl
mov byte [esi + 0x5b], cl
mov ecx, dword [esp + 0x14]
push esi
mov dword [esi], 0xec
mov dword [esi + 4], 0x3e8
mov dword [esi + 8], 0x69
mov byte [esi + 0x20], bl
mov dword [esi + 0x34], 0x804
mov byte [esi + 0x38], 7
mov byte [esi + 0x40], 0
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], bl
mov byte [esi + 0x55], 0
mov byte [esi + 0x42], 0
mov byte [esi + 0x56], al
mov byte [esi + 0x58], al
mov byte [esi + 0x5a], al
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
call sub.K7AVWScn.DLL_K7ScanUI_RunScanner
mov edi, eax
test ebp, ebp
je 0x4041cc
cmp byte [ebp], 0
je 0x4041cc
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x84
ret