Function at 0x42c69e
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [edi + 0x78], 8
jb 0x42c6af
mov eax, dword [edi + 0x64]
jmp 0x42c6b2
lea eax, [edi + 0x64]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [edi + 0x94], 8
jb 0x42c6ce
mov eax, dword [edi + 0x80]
jmp 0x42c6d4
lea eax, [edi + 0x80]
push eax
call esi
mov eax, dword [edi + 0xe4]
add eax, dword [edi + 0xc8]
xor ebx, ebx
add eax, dword [edi + 0xac]
mov dword [edi + 0x30], ebx
lea eax, [eax + eax + 0x20]
push eax
mov dword [ebp - 4], eax
call fcn.004752e5
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x42c70a
xor eax, eax
jmp 0x42c8c1
cmp dword [edi + 0x78], 8
jb 0x42c715
mov eax, dword [edi + 0x64]
jmp 0x42c718
lea eax, [edi + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call esi
mov dword [edi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x42c744
push dword [ebp - 0xc]
call fcn.004761fc
pop ecx
jmp 0x42c703
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [edi + 0x34]
mov dword [ebp - 8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [edi + 0x94], 8
jb 0x42c77f
mov eax, dword [edi + 0x80]
jmp 0x42c785
lea eax, [edi + 0x80]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call esi
mov dword [edi + 0x40], eax
cmp eax, 0xffffffff
jne 0x42c7bb
push dword [ebp - 0xc]
call fcn.004761fc
pop ecx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x3c], 0xffffffff
jmp 0x42c703
mov edx, dword [ebp - 4]
push 4
pop esi
mov dword [edi + 0x2c], edx
cmp edx, esi
jae 0x42c7cc
xor eax, eax
jmp 0x42c7d4
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
add eax, 4
cmp edx, esi
jae 0x42c7dc
xor eax, eax
jmp 0x42c7e4
mov dword [eax], 1
add eax, esi
cmp edx, esi
jae 0x42c7ec
xor eax, eax
jmp 0x42c7f3
mov ecx, dword [edi + 0x30]
mov dword [eax], ecx
add eax, esi
cmp edx, esi
jae 0x42c7fb
xor eax, eax
jmp 0x42c802
mov ecx, dword [edi + 0x34]
mov dword [eax], ecx
add eax, esi
mov ecx, 0x19000
mov dword [edi + 0x38], ecx
cmp edx, esi
jae 0x42c812
xor eax, eax
jmp 0x42c816
mov dword [eax], ecx
add eax, esi
lea esi, [edi + 0x98]
push edx
call fcn.0042bfe4
push dword [ebp - 4]
lea esi, [edi + 0xb4]
call fcn.0042bfe4
push dword [ebp - 4]
lea esi, [edi + 0xd0]
call fcn.0042bfe4
add esp, 0xc
mov ecx, edi
call fcn.0042cb84
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
add eax, ecx
push eax
push dword [edi + 0x40]
mov dword [ebp - 8], ebx
call esi
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [edi + 0x40]
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0xc]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call fcn.004761fc
push dword [ebp - 0x10]
call fcn.004752e5
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x42c703
push dword [ebp - 0x10]
push ebx
push esi
call fcn.004764d0
xor eax, eax
add esp, 0xc
mov dword [edi + 0x104], esi
inc eax
pop esi
pop ebx
leave
ret