Function at 0x4b55e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
cmp esi, 1
je 0x4b5609
cmp esi, 2
je 0x4b5609
cmp esi, 3
je 0x4b5609
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jne 0x4b561d
call fcn.004b5570
mov dword [ebx + 8], 1
push 4
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.0051d4d3
add esp, 4
cmp eax, edi
je 0x4b563a
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
mov dword [ebp - 0x28], eax
jmp 0x4b563d
mov dword [ebp - 0x28], edi
push 0x576bd0
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00464b60
push 0x576bd0
lea ecx, [ebp - 4]
call fcn.00464b60
cmp esi, 1
jne 0x4b5763
lea edx, [ebp - 8]
push edx
call fcn.004b54c0
add esp, 4
push eax
lea ecx, [ebp + 8]
call fcn.0044f5c0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b569d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push str.savapi_
push ecx
call fcn.004b4f20
add esp, 4
push eax
lea edx, [ebp - 8]
push edx
call fcn.0044f400
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.0044f5c0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b56e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b5702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push str.AviraImp.dll
push ecx
call fcn.004b53f0
add esp, 4
push eax
lea edx, [ebp - 8]
push edx
call fcn.0044f400
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b573f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004894f0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b580e
cmp esi, 3
jne 0x4b5778
lea ecx, [ebp - 0x10]
push str.AVEkpb.def
push ecx
call fcn.004b4e80
jmp 0x4b5710
cmp esi, 2
jne 0x4b581a
lea ecx, [ebp - 0x10]
push ecx
call fcn.004b5440
add esp, 4
push eax
lea ecx, [ebp + 8]
call fcn.0044f5c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b57b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 8]
push 0x566db4
push ecx
call fcn.004b4f20
add esp, 4
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.0044f400
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.0044f5c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b57fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b581a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 8]
cmp dword [edi - 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4b583f
push edi
call esi
test eax, eax
je 0x4b583f
mov ecx, dword [ebp + 0xc]
push ebx
push 0
push ecx
push edi
mov ecx, ebx
call fcn.004b50f0
mov ebx, dword [ebp - 4]
cmp dword [ebx - 0xc], 0
je 0x4b585f
push ebx
call esi
test eax, eax
je 0x4b585f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
push ecx
push 1
push edx
push ebx
call fcn.004b50f0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
jbe 0x4b58bb
xor esi, esi
test eax, eax
jbe 0x4b58bb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], 0
je 0x4b5898
cmp esi, eax
jb 0x4b5887
call fcn.0051f89a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004b4dc0
jmp 0x4b58aa
cmp esi, eax
jb 0x4b58a1
call fcn.0051f89a
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + esi*4]
push eax
call edi
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x4b5878
mov edi, dword [ebp + 8]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b58d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x4b58f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b5919
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
call fcn.00455a20
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0051d230
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0051d230
add esp, 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8