Function at 0x4aa340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
lea edi, [ebp - 0x6c]
mov eax, 0x4e488c
call fcn.00479eb8
mov dword [edi + 0x1c], 4
mov word [edi + 0x10], 8
mov byte [ebp - 0x6d], 0
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
sete cl
and ecx, 1
test cl, cl
je 0x4aa3d9
push str.is_empty
push str.__s_
push 0x4e2095
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
mov esi, dword [ebp + 0x18]
sub esi, dword [ebp + 8]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4aa3c4
cmp esi, 0x80
jbe 0x4aa3ba
push ebx
call fcn.00477a54
pop ecx
jmp 0x4aa3c4
push esi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x4aa688
lea ecx, [ebp + 8]
push ecx
call fcn.004a95e4
pop ecx
test al, al
jne 0x4aa444
push dword [ebp + 8]
push str.__s__is_not_exists_
push 0x4e20b2
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
mov esi, dword [ebp + 0x18]
sub esi, dword [ebp + 8]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4aa42f
cmp esi, 0x80
jbe 0x4aa425
push ebx
call fcn.00477a54
pop ecx
jmp 0x4aa42f
push esi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x4aa688
mov word [edi + 0x10], 0x44
lea ecx, [ebp - 0x18]
push ecx
call fcn.004058c0
pop ecx
add dword [edi + 0x1c], 4
mov word [edi + 0x10], 8
mov word [edi + 0x10], 0x50
lea eax, [ebp - 0x30]
push eax
call fcn.004058c0
pop ecx
add dword [edi + 0x1c], 4
mov word [edi + 0x10], 8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
cmp edx, ecx
je 0x4aa49a
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
push ebx
push esi
lea edx, [ebp - 0x18]
push edx
call fcn.0040f60c
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a99a8
pop ecx
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
jmp 0x4aa587
mov word [edi + 0x10], 0x5c
push ebx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.00410494
add esp, 0xc
lea esi, [ebp - 0x48]
add dword [edi + 0x1c], 4
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x4aa4f7
mov edx, dword [esi + 4]
mov dword [ebp - 0x7c], edx
mov ecx, dword [esi]
mov dword [ebp - 0x80], ecx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea edx, [ebp - 0x30]
push edx
call fcn.0040f60c
add esp, 0x10
dec dword [edi + 0x1c]
mov word [edi + 0x10], 8
dec dword [edi + 0x1c]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x8c], ecx
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4aa53a
cmp dword [ebp - 0x8c], 0x80
jbe 0x4aa52b
push esi
call fcn.00477a54
pop ecx
jmp 0x4aa53a
push dword [ebp - 0x8c]
push esi
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
cmp byte [ebx + 0x18], 0
jne 0x4aa584
lea eax, [ebp - 0x30]
push eax
call fcn.004a959c
pop ecx
test al, al
je 0x4aa584
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
jne 0x4aa584
mov byte [ebp - 0x6d], 1
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp - 0x30]
push dword [ebp + 8]
push str.__s___can_not_delete_file:__s___errcode:__d_
push str.ClearDir:Path:
push 3
call fcn.0048c898
add esp, 0x18
add ebx, 0x70
mov edx, dword [ebp + 0x20]
cmp ebx, dword [edx + 4]
jne 0x4aa4ae
xor eax, eax
mov al, byte [ebp - 0x6d]
cmp eax, 1
sbb eax, eax
neg eax
push eax
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0x90], edx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4aa5dd
cmp dword [ebp - 0x90], 0x80
jbe 0x4aa5ce
push ebx
call fcn.00477a54
pop ecx
jmp 0x4aa5dd
push dword [ebp - 0x90]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x94], ecx
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4aa620
cmp dword [ebp - 0x94], 0x80
jbe 0x4aa611
push esi
call fcn.00477a54
pop ecx
jmp 0x4aa620
push dword [ebp - 0x94]
push esi
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x9c], edx
cmp dword [ebp - 0x9c], 0
je 0x4aa678
cmp dword [ebp - 0x98], 0x80
jbe 0x4aa664
push dword [ebp - 0x9c]
call fcn.00477a54
pop ecx
jmp 0x4aa678
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call fcn.004b63b4
add esp, 8
dec dword [edi + 0x1c]
dec dword [edi + 0x1c]
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret