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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c06f
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5fc150]
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 ebx, ecx
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x122], 0
push eax
push 0
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
call fcn.004a79d0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], 2
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x134], edi
cmp esi, edi
je 0x4baf62
lea esp, [esp]
cmp dword [ebx + 0x20], 0
mov eax, dword [esi]
mov dword [ebp - 0x130], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x158], eax
jne 0x4badf6
push 0x6c
call fcn.0052bd3f
add esp, 4
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4badb5
lea ecx, [ebx + 0xa80]
push ecx
mov ecx, eax
call fcn.00455aa0
jmp 0x4badb7
xor eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
push 0x5884f0
mov dword [ebx + 0x20], eax
call fcn.004ed030
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x20]
push eax
call fcn.004ee090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.004ed3b0
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x128]
movzx edx, ah
movzx eax, byte [ebp - 0x156]
cmp eax, edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], edx
mov edx, dword [ebp - 0x144]
sete byte [ebp - 0x121]
xor eax, eax
test ecx, ecx
je 0x4bae49
jns 0x4bae3c
mov eax, ecx
neg eax
je 0x4bae3c
or eax, 0xffffffff
sub eax, ecx
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x4bae44
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
mov eax, ecx
and eax, 0x1f
lea ecx, [ebp - 0x121]
push ecx
push 1
push eax
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x144]
call fcn.004a7b40
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4bae79
cmp eax, dword [ebx + 0x20]
jne 0x4baf4b
cmp byte [ebp - 0x128], 0
je 0x4baf4b
cmp byte [ebp - 0x121], 0
jne 0x4baf4b
mov ecx, dword [ebx + 0x20]
push 0x5884f0
call fcn.004ede50
test eax, eax
je 0x4baee9
cmp byte [ebp - 0x122], 0
jne 0x4baee9
mov ecx, dword [ebx + 0x20]
push eax
call fcn.004eeea0
push 0x5884f0
lea ecx, [ebp - 0x120]
call fcn.004ed030
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x20]
push eax
call fcn.004ee090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.004ed3b0
mov byte [ebp - 0x122], 1
mov ecx, dword [ebx + 0x20]
push 0x5884f0
call fcn.004ede50
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x130], eax
cmp ecx, dword [ebp - 0x148]
jae 0x4baf4b
mov esi, dword [ebp - 0x148]
lea ebx, [ebx + ecx*4]
mov edi, dword [ebp - 0x14c]
add ebx, 0x9ec
sub esi, ecx
push dword [ebx]
mov ecx, edi
push eax
call fcn.004b6620
mov eax, dword [ebp - 0x130]
lea ebx, [ebx + 4]
sub esi, 1
jne 0x4baf21
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x134]
mov ebx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x138]
add esi, 8
mov dword [ebp - 0x12c], esi
cmp esi, edi
jne 0x4bad70
mov esi, dword [ebp - 0x144]
xor eax, eax
xor edx, edx
mov byte [ebp - 0x121], 1
mov dword [ebp - 0x128], eax
mov edi, esi
test ecx, ecx
je 0x4bafb0
jns 0x4baf9a
mov eax, ecx
neg eax
je 0x4baf9a
or eax, 0xffffffff
sub eax, ecx
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x4bafa2
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
mov eax, ecx
and eax, 0x1f
mov dword [ebp - 0x128], eax
lea ecx, [ecx]
cmp edi, esi
jne 0x4bafb8
cmp edx, eax
je 0x4bafde
mov eax, 1
mov ecx, edx
shl eax, cl
test dword [edi], eax
je 0x4bafda
mov eax, dword [ebp - 0x128]
cmp edx, 0x1f
jae 0x4bafd3
inc edx
jmp 0x4bafb0
xor edx, edx
add edi, 4
jmp 0x4bafb0
xor al, al
jmp 0x4bafe4
mov al, byte [ebp - 0x121]
cmp byte [ebp - 0x122], 0
je 0x4baff7
mov ecx, dword [ebx + 0x20]
call fcn.004eef70
jmp 0x4bb027
test al, al
je 0x4bb027
add ebx, 0xa80
cmp dword [ebx + 0x14], 8
jb 0x4bb00b
mov eax, dword [ebx]
jmp 0x4bb00d
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bb027
cmp dword [ebx + 0x14], 8
jb 0x4bb020
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x4bb0ae
mov eax, dword [ebp - 0x13c]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4bb04f
call fcn.00547c01
shl eax, 2
cmp eax, 0x1000
jb 0x4bb087
test cl, 0x1f
je 0x4bb063
call fcn.00547c01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4bb06f
call fcn.00547c01
sub ecx, eax
cmp ecx, 4
jae 0x4bb07b
call fcn.00547c01
cmp ecx, 0x23
jbe 0x4bb085
call fcn.00547c01
mov ecx, eax
push ecx
call fcn.0052bd72
add esp, 4
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 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.0052c233
mov esp, ebp
pop ebp
ret