Function at 0x10007070
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f199
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x7c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000709f
push ebp
adc byte [ecx], 0x58
pop eax
push 4
mov eax, dword [ebp - 0x7c]
add eax, 4
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1000e640
add esp, 0xc
test eax, eax
jne 0x100070c3
xor eax, eax
jmp 0x100072d0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], 0
push 0
push 0x80
push 3
push 0
push 1
push accept
mov ecx, dword [ebp - 0x7c]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x10007112
push 4
mov edx, dword [ebp - 0x7c]
add edx, 8
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000e640
add esp, 0xc
jmp 0x100072d0
push 0
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 8], 0
jne 0x10007161
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7c]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
mov edx, dword [ebp - 0x7c]
add edx, 8
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000e640
add esp, 0xc
jmp 0x100072d0
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0x10]
je 0x100071b0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7c]
add edx, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 8]
shl ecx, 1
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 8]
shl ecx, 1
xor eax, eax
mov edi, dword [ebp - 0x58]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebp - 0x3e], 8
mov byte [ebp - 0x3f], 8
mov byte [ebp - 0x3d], 4
mov byte [ebp - 0x3c], 2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
add eax, 8
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x4c]
call fcn.10001ff0
push 4
mov eax, dword [ebp - 0x7c]
add eax, 8
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1000e640
add esp, 0xc
test eax, eax
je 0x10007264
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000e640
add esp, 0xc
test eax, eax
jne 0x1000729b
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
jmp 0x100072d0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret