Function at 0x423110
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.004224e0
add esp, 4
test eax, eax
jne 0x423139
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov esi, dword [edi]
push 0x428a94
push edi
call fcn.00423030
push 0x428aac
push edi
call fcn.00423030
mov eax, dword [esp + 0x64]
test eax, eax
je 0x42318e
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 0x428a94
push esi
call fcn.00422bb0
mov edi, dword [esp + 0x74]
add esp, 0x18
test eax, eax
jne 0x42318e
mov ebp, 0x8520006d
xor ebx, ebx
push esi
push edi
call fcn.00423860
mov eax, dword [esi + 0x118]
add esp, 8
cmp eax, 0x20
jne 0x423214
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 0x4231e0
lea edx, [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push str.delete
push edi
call fcn.0040a0f0
mov ecx, esi
call fcn.004215b0
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.0040a0f0
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.00423530
add esp, 8
test edi, edi
je 0x42324c
mov eax, dword [esi + 0x11c]
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
call fcn.004233a0
add esp, 0xc
test eax, eax
jne 0x42324c
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 0x42327d
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.00423780
add esp, 4
test eax, eax
jne 0x4232a5
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 0x4232c3
mov ebp, 0x85200068
xor ebx, ebx
sub eax, dword [esi + 0x114]
push esi
mov dword [esi + 0x124], eax
call fcn.00423690
add esp, 4
test eax, eax
jne 0x4232e3
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 0x423310
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x114]
push ecx
push esi
call fcn.004237d0
add esp, 8
test eax, eax
jne 0x42332b
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x423353
push eax
push esi
call fcn.00423990
add esp, 8
test eax, eax
jne 0x423348
mov ebp, 0x8520006d
xor ebx, ebx
push 0x428a94
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.0040a0f0
mov ecx, esi
call fcn.004215b0
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.0040a0f0
test ebx, ebx
jne 0x423391
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