Function at 0x64be7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64c0e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call sym.DatCutter.exe__Acntutils_NormalDir_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xc]
call sym.DatCutter.exe__Acntutils_acDirExists_qqrx20System_UnicodeString
test al, al
jne 0x64bec4
mov eax, dword [ebp - 0xc]
call sym.DatCutter.exe__Acntutils_acCreateDir_qqrx20System_UnicodeString
push 0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x416be4]
call fcn.004228dc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x64c0ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004591c4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x64bf19
mov eax, dword [ebp - 0x30]
sub eax, 0xa
cmp word [eax], 2
je 0x64bf19
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0045846c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
call fcn.00459854
mov edx, eax
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x64c104
call fcn.00459520
je 0x64bf85
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c]
mov ecx, 0x64c11c
mov edx, dword [ebp - 4]
call fcn.0045931c
mov eax, dword [ebp - 0x3c]
mov cx, word [0x64c158]
xor edx, edx
call fcn.004d6f60
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
call fcn.004570c8
call fcn.00457c94
jmp 0x64c0c1
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x64c0a4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call sym.DatCutter.exe__Acntutils_NormalDir_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0xc]
call fcn.00458e8c
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x24]
call fcn.004591c4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x64c001
mov eax, dword [ebp - 0x38]
sub eax, 0xa
cmp word [eax], 2
je 0x64c001
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0045846c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
call fcn.00459854
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0045931c
mov eax, dword [ebp - 0x10]
call fcn.0043f188
test al, al
je 0x64c04e
mov eax, dword [ebp - 0x10]
call fcn.00458ec4
push eax
call sub.KERNEL32.DLL_DeleteFileW
push 0xff00
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x416be4]
call fcn.004228dc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [sym.DatCutter.exe__Aczlibex_TZDecompressionStream_]
call sym.DatCutter.exe__Aczlibex_TZDecompressionStream__bctr_qqrp15Classes_TStream
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cdq
push edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.004221cc
mov eax, dword [ebp - 0x1c]
call fcn.004570c8
mov eax, dword [ebp - 0x14]
call fcn.004570c8
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x64bfaa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64c0c1
mov eax, dword [ebp - 0x18]
call fcn.004570c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64c0f0
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00458e30
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00458e30
ret