Function at 0x4a9e86
Capabilities:
Delete file

Disassembly:
mov eax, 0x538a1c
call fcn.004ea774
sub esp, 0x140
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push str.VirusScan.dll
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00505b46
mov byte [ebp - 4], 1
call fcn.00520100
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14c]
push 0x104
push ecx
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00505b46
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00501721
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005016a9
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00505c11
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00505d07
lea eax, [ebp - 0x14]
push str.VirusScan.pre
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.00505d6d
lea eax, [ebp - 0x14]
push str.VirusScan.new
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.00505d6d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e30ef
push ebx
lea ecx, [ebp - 0x48]
push dword [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004e31b2
cmp eax, ebx
jne 0x4a9fd0
push ebx
lea ecx, [ebp - 0x48]
push dword [ebp - 0x1c]
call fcn.004e31b2
cmp eax, ebx
jne 0x4a9fd0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00505ad8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00505ad8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00505ad8
push 3
jmp 0x4aa2d0
push ebx
lea ecx, [ebp - 0x48]
push dword [ebp - 0x20]
call fcn.004e31b2
cmp eax, ebx
je 0x4aa05d
push dword [ebp - 0x20]
call fcn.004c9960
cmp eax, ebx
pop ecx
jne 0x4aa03b
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00505ad8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00505ad8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00505ad8
push 5
jmp 0x4aa2d0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.004ed58c
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004ed58c
add esp, 0x10
mov eax, dword [0x58c61c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004c9960
cmp eax, ebx
pop ecx
jne 0x4aa10c
push ebx
lea ecx, [ebp - 0x48]
push dword [ebp - 0x1c]
call fcn.004e31b2
cmp eax, ebx
jne 0x4aa0e4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00505ad8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00505ad8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00505ad8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00505ad8
push 4
jmp 0x4aa2d0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004ed58c
pop ecx
pop ecx
push ebx
mov ecx, edi
push dword [ebp + 8]
call fcn.004a9e86
mov esi, eax
jmp 0x4aa211
mov eax, dword [edi]
push 1
push str.WT_AutoVirusCheck
push str.System
mov ecx, edi
call dword [eax + 0xa4]
cmp eax, ebx
jne 0x4aa185
cmp dword [ebp + 0xc], ebx
jne 0x4aa185
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00505ad8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00505ad8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00505ad8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00505ad8
push 2
jmp 0x4aa2d0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4aa27b
push str.DoVirusScan
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [edi + 0xfc], eax
je 0x4aa274
mov eax, dword [0x58c61c]
mov dword [ebp + 0xc], eax
push 0x80ac
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0050af9e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edi + 0xfc]
cmp eax, 1
jne 0x4aa1ed
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00505ad8
jmp 0x4aa12b
cmp eax, 2
jne 0x4aa268
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 4
mov ecx, edi
call fcn.004a9e86
lea ecx, [ebp + 0xc]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00505ad8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00505ad8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00505ad8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00505ad8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00505ad8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00505ad8
mov eax, esi
jmp 0x4aa2db
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00505ad8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00505ad8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004e312c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00505ad8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
cld
add al, 0xe8
sub eax, 0x8d0005b8
dec ebp
call 0x346e878