Function at 0x4029e0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x40c], 0x80000
mov eax, dword [ebp - 0x40c]
and eax, 0x1ff
test eax, eax
je 0x402a09
xor eax, eax
jmp 0x402c78
xor ecx, ecx
test ecx, ecx
je 0x402a16
xor eax, eax
jmp 0x402c78
lea edx, [ebp - 0x404]
push edx
call fcn.00401e8a
add esp, 4
mov eax, dword [ebp + 8]
push eax
push str.Open_bundle__s_n
call fcn.004147f0
add esp, 8
push 0x472b58
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043aeb1
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x402a5d
xor eax, eax
jmp 0x402c78
lea edx, [ebp - 0x404]
push edx
push str.Open_tmp_target__s_n
call fcn.004147f0
add esp, 8
push 0x472b70
lea eax, [ebp - 0x404]
push eax
call fcn.0043aeb1
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x402aaa
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.0043ad76
add esp, 4
xor eax, eax
jmp 0x402c78
mov edx, dword [ebp - 0x40c]
push edx
call fcn.0043982d
add esp, 4
mov dword [ebp - 0x414], eax
push str.Seek_to_start_and_copy_n
call fcn.004147f0
add esp, 4
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1a4]
add ecx, 0x200
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0043c143
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1a0]
mov dword [ebp - 0x408], ecx
mov edx, dword [ebp - 0x40c]
cmp edx, dword [ebp - 0x408]
jbe 0x402b16
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
push 1
mov eax, dword [ebp - 0x414]
push eax
call fcn.00451525
add esp, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x402b63
mov ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x418]
push edx
push 1
mov eax, dword [ebp - 0x414]
push eax
call fcn.0043b01f
add esp, 0x10
mov ecx, dword [ebp - 0x408]
sub ecx, dword [ebp - 0x418]
mov dword [ebp - 0x408], ecx
cmp dword [ebp - 0x418], 0
jne 0x402afc
mov edx, dword [ebp - 0x414]
push edx
call fcn.004397f5
add esp, 4
mov eax, dword [ebp - 0x410]
push eax
call fcn.0043ad76
add esp, 4
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.0043ad76
add esp, 4
push str.closed_and_freeed_n
call fcn.004147f0
add esp, 4
mov edx, dword [ebp + 0x10]
push edx
push str.expand_to__s_n
call fcn.004147f0
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x404]
push ecx
call fcn.004011d8
add esp, 8
test eax, eax
je 0x402beb
xor eax, eax
jmp 0x402c78
mov edx, dword [ebp + 0x10]
push edx
push str.set_time_to__s_n
call fcn.004147f0
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x402c52
mov ecx, dword [ebp + 0xc]
add ecx, 0x18c
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x194
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x184
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x404]
push eax
push str.clean__s_n
call fcn.004147f0
add esp, 8
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret