Function at 0x4bed54
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00414b90
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4bede9
lea ecx, [ebp - 8]
push ecx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00414c40
add esp, 0xc
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00413d28
add esp, 8
add eax, dword [ebp - 0x34]
adc edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00414bbc
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4beda4
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00414b90
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp + 0x20]
push eax
call fcn.00414b90
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x4bf101
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00414c40
add esp, 0xc
mov edi, eax
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00414c40
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00414bbc
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp + 0x20]
push eax
call fcn.00414bbc
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push edi
mov edx, dword [ebx]
push edx
call fcn.00413d28
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x3a], 0
push esi
mov ecx, dword [ebx]
push ecx
call fcn.00413ca8
add esp, 8
test al, al
jne 0x4beeab
push esi
mov eax, dword [ebx]
push eax
call fcn.00413e04
mov byte [ebp - 0x3a], 1
add esp, 8
jmp 0x4bef63
mov dl, byte [ebp + 0x14]
cmp dl, byte [ebp + 0x18]
jne 0x4bef3b
cmp word [ebp + 0x26], 0
je 0x4bef17
lea ecx, [ebp + 0x18]
lea eax, [ebp + 0x14]
push ecx
push eax
lea edx, [ebp - 0x36]
lea ecx, [ebp - 0x35]
push edx
push ecx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 0x28]
push edx
call dword [ebp + 0x24]
add esp, 0x20
mov byte [ebp - 0x37], al
cmp byte [ebp - 0x37], 0
jne 0x4bef63
cmp byte [ebp - 0x36], 0
jne 0x4beef3
cmp byte [ebp + 0x18], 0
je 0x4bef63
push 0x20
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x4bef63
push esi
mov ecx, dword [ebx]
push ecx
call fcn.00413e04
mov byte [ebp - 0x3a], 1
add esp, 8
jmp 0x4bef63
push 0x20
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x4bef63
push esi
mov eax, dword [ebx]
push eax
call fcn.00413e04
mov byte [ebp - 0x3a], 1
add esp, 8
jmp 0x4bef63
cmp byte [ebp + 0x18], 0
je 0x4bef63
push 0x20
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push esi
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x4bef63
push esi
mov edx, dword [ebx]
push edx
call fcn.00413e04
add esp, 8
mov byte [ebp - 0x3a], 1
cmp word [ebp + 0x2e], 0
je 0x4bf0c2
lea ecx, [ebp - 0x39]
lea eax, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push edi
mov cl, byte [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 0x30]
push edx
call dword [ebp + 0x2c]
add esp, 0x3c
mov cl, byte [ebp - 0x39]
mov byte [ebp - 0x37], cl
xor eax, eax
mov al, byte [ebp - 0x39]
cmp eax, 1
sbb edx, edx
neg edx
and byte [ebp - 0x38], dl
cmp byte [ebp - 0x38], 0
je 0x4befc7
push 0x1f4
call sub.KERNEL32.DLL_Sleep
cmp byte [ebp - 0x38], 0
jne 0x4bef6e
jmp 0x4bf0c2
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push ebx
call fcn.004beb4c
pop ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
mov ecx, dword [ebx]
push ecx
call fcn.00413f2c
add esp, 0x1c
test al, al
je 0x4bf0ea
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
mov eax, dword [ebx]
push eax
call fcn.00413e90
add esp, 0x18
test al, al
je 0x4bf030
mov eax, dword [ebp - 8]
cdq
add dword [ebp - 0x1c], eax
adc dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
cdq
add dword [ebp - 0x2c], eax
adc dword [ebp - 0x28], edx
jmp 0x4bf052
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
sbb edx, dword [ebp - 0x18]
add dword [ebp - 0x2c], eax
adc dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x39], 1
mov eax, dword [ebp - 4]
push eax
call fcn.0049b6d4
cmp word [ebp + 0x2e], 0
pop ecx
je 0x4bf0c2
lea edx, [ebp - 0x39]
lea ecx, [ebp - 0x38]
push edx
push ecx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push edi
mov dl, byte [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0x30]
push eax
call dword [ebp + 0x2c]
add esp, 0x3c
mov dl, byte [ebp - 0x39]
mov byte [ebp - 0x37], dl
xor ecx, ecx
mov cl, byte [ebp - 0x39]
cmp ecx, 1
sbb eax, eax
neg eax
and byte [ebp - 0x38], al
cmp byte [ebp - 0x38], 0
je 0x4bf0bc
push 0x1f4
call sub.KERNEL32.DLL_Sleep
cmp byte [ebp - 0x38], 0
jne 0x4bf063
cmp byte [ebp - 0x3a], 0
je 0x4bf0ea
cmp byte [ebp - 0x37], 0
jne 0x4bf0ea
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jne 0x4bf0e4
cmp eax, dword [ebp - 0x1c]
ja 0x4befd2
jmp 0x4bf0ea
jg 0x4befd2
cmp byte [ebp + 0x10], 0
je 0x4bf0fe
push 0x20
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
push edi
call sub.KERNEL32.DLL_DeleteFileA
inc dword [ebp - 0xc]
cmp byte [ebp - 0x37], 0
jne 0x4bf117
cmp dword [ebp - 0x10], 0
je 0x4bf117
cmp dword [ebp - 0x14], 0
jne 0x4bee10
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret