Function at 0x1000ddf0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x10139d00]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push SysReAllocString
xor bl, bl
push edi
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x12d], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000e052
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x140], eax
cmp eax, 0x104
jbe 0x1000e047
push 0x120
lea ecx, [ebp - 0x12c]
push 0
push ecx
call fcn.100d4cc0
add esp, 0xc
push 2
lea edx, [ebp - 0x13c]
push edx
or ecx, 0xffffffff
mov eax, 0xfffffefc
push ecx
push eax
push esi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
add dword [ebp - 0x13c], 0xfffffff7
adc dword [ebp - 0x138], 0xffffffff
js 0x1000e047
jg 0x1000deb6
cmp dword [ebp - 0x13c], 0
jbe 0x1000e047
push 0
lea eax, [ebp - 0x144]
push eax
push 0x100
lea ecx, [ebp - 0x12c]
push ecx
push esi
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x144]
mov ecx, dword [0x101e2cc8]
push edx
mov edx, dword [0x101e2cc4]
lea eax, [ebp - 0x12c]
push eax
push ecx
push edx
call fcn.1000da70
push 0
push 0
push 0
push esi
mov byte [ebp - 0x10b], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x148]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x2800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x14c], ebx
test ebx, ebx
je 0x1000e041
mov ecx, dword [ebp - 0x148]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000e03a
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x13c]
push 0
push 0
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x13c]
jl 0x1000dfb2
jg 0x1000dfad
cmp eax, 0x2800
jbe 0x1000dfb2
mov eax, 0x2800
push 0
lea ecx, [ebp - 0x140]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e02c
mov eax, dword [ebp - 0x140]
test eax, eax
jbe 0x1000e02c
sub dword [ebp - 0x13c], eax
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x154], edx
sbb dword [ebp - 0x138], 0
mov dword [ebp - 0x150], eax
push 0
push 0x7f6
push dword [ebp - 0x154]
push 0
push dword [ebp - 0x150]
push dword [ebp - 0x14c]
call fcn.10009ec0
add esp, 0x18
mov ecx, dword [ebp - 0x140]
push 0
lea eax, [ebp - 0x140]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x12d], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, byte [ebp - 0x12d]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1000e05f
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100d0738
mov esp, ebp
pop ebp
ret 4