Function at 0x41b7b0
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.0041a0c0
add esp, 4
test eax, eax
jne 0x41b7d9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov esi, dword [edi]
push 0x41fe64
push edi
call fcn.0041b6f0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41b823
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 0x41fe64
push esi
call fcn.0041b350
mov edi, dword [esp + 0x74]
add esp, 0x18
test eax, eax
jne 0x41b823
mov ebp, 0x8520006d
xor ebx, ebx
push esi
push edi
call fcn.0041bd30
mov eax, dword [esp + 0x68]
add esp, 8
test eax, eax
je 0x41b853
mov ecx, dword [esi + 0x11c]
inc ecx
push ecx
push 0
push edi
call fcn.00419ff0
add esp, 0xc
test eax, eax
jne 0x41b853
mov ebp, 0x85200068
xor ebx, ebx
cmp dword [esi + 0x118], 0x20
jne 0x41b8cd
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 8]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x114]
test eax, eax
jne 0x41b899
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push str.delete
push edi
call fcn.004093e0
mov ecx, esi
call fcn.00419d90
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.004093e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 0xc
push esi
call fcn.0041ba60
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x41b900
mov ecx, dword [esi + 0x11c]
mov edx, dword [esi + 0x128]
push ecx
push edx
push edi
call fcn.00419ff0
add esp, 0xc
test eax, eax
jne 0x41b900
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 0x41b931
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.0041bc50
add esp, 4
test eax, eax
jne 0x41b959
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 0x41b977
mov ebp, 0x85200068
xor ebx, ebx
sub eax, dword [esi + 0x114]
push esi
mov dword [esi + 0x124], eax
call fcn.0041bb60
add esp, 4
test eax, eax
jne 0x41b997
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 0x41b9c4
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x114]
push ecx
push esi
call fcn.0041bca0
add esp, 8
test eax, eax
jne 0x41b9df
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41ba07
push eax
push esi
call fcn.0041a5c0
add esp, 8
test eax, eax
jne 0x41b9fc
mov ebp, 0x8520006d
xor ebx, ebx
push 0x41fe64
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.004093e0
mov ecx, esi
call fcn.00419d90
push 0
push 0xffffffffffffffff
push str.delete
push esi
call fcn.004093e0
test ebx, ebx
jne 0x41ba45
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