Function at 0x4225a0
Capabilities:
Delete file

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
push edi
mov ebx, 1
xor ebp, ebp
call fcn.00421970
add esp, 4
test eax, eax
jne 0x4225c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov esi, dword [edi]
push 0x42832c
push edi
call fcn.004224c0
push 0x428344
push edi
call fcn.004224c0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x42261e
push 1
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x14]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x42832c
push esi
call fcn.00422040
mov edi, dword [esp + 0x74]
add esp, 0x18
test eax, eax
jne 0x42261e
mov ebp, 0x8520006d
xor ebx, ebx
push esi
push edi
call fcn.00422cf0
mov eax, dword [esi + 0x118]
add esp, 8
cmp eax, 0x20
jne 0x4226a4
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 8]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x114]
test eax, eax
jne 0x422670
lea edx, [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push str.delete
push edi
call fcn.00409b80
mov ecx, esi
call fcn.00420a40
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.00409b80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 0xc
mov edi, dword [esp + 0x60]
push edi
push esi
call fcn.004229c0
add esp, 8
test edi, edi
je 0x4226dc
mov eax, dword [esi + 0x11c]
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
call fcn.00422830
add esp, 0xc
test eax, eax
jne 0x4226dc
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
add eax, ecx
push 0
push eax
push edx
mov dword [esi + 0x134], eax
call edi
cmp eax, 0xffffffff
jne 0x42270d
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x134]
mov eax, dword [esi + 0x114]
sub ecx, eax
push esi
mov dword [esi + 0x134], ecx
call fcn.00422c10
add esp, 4
test eax, eax
jne 0x422735
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 8]
push 1
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x124], eax
jne 0x422753
mov ebp, 0x85200068
xor ebx, ebx
sub eax, dword [esi + 0x114]
push esi
mov dword [esi + 0x124], eax
call fcn.00422b20
add esp, 4
test eax, eax
jne 0x422773
mov ebp, 0x85200068
xor ebx, ebx
mov edx, dword [esi + 8]
push 1
push 0
push 0
push edx
call edi
sub eax, dword [esi + 0x114]
mov dword [esi + 0x14c], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4227a0
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x114]
push ecx
push esi
call fcn.00422c60
add esp, 8
test eax, eax
jne 0x4227bb
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4227e3
push eax
push esi
call fcn.00422e20
add esp, 8
test eax, eax
jne 0x4227d8
mov ebp, 0x8520006d
xor ebx, ebx
push 0x42832c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x5c]
push 0
push 0xffffffffffffffff
push str.delete
push eax
call fcn.00409b80
mov ecx, esi
call fcn.00420a40
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.00409b80
test ebx, ebx
jne 0x422821
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 0xc