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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x17], 0
test esi, esi
je 0x1000cb41
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000cad3
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
add dword [esp + 0x18], 0xffffffb2
adc dword [esp + 0x1c], 0xffffffff
js 0x1000caf1
jg 0x1000c980
cmp dword [esp + 0x18], 5
jbe 0x1000caf1
xor eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
push 5
lea edx, [esp + 0x38]
push edx
push ebp
mov dword [esp + 0x38], eax
mov byte [esp + 0x40], al
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cac5
cmp dword [esp + 0x24], 5
jne 0x1000cac5
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1000cac5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 5
push esi
call edi
push 0
push 0
push 5
push ebp
call edi
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
jl 0x1000ca4c
jg 0x1000ca47
cmp eax, 0x25805
jbe 0x1000ca4c
mov eax, 0x25805
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000cac1
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x18]
jl 0x1000ca75
jg 0x1000ca70
cmp edi, 0x25805
jbe 0x1000ca75
mov edi, 0x25805
push 0
lea edx, [esp + 0x28]
push edx
sub edi, 5
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000caba
cmp dword [esp + 0x24], edi
jne 0x1000caba
push edi
push ebx
lea eax, [esp + 0x34]
call fcn.1000c630
test al, al
je 0x1000caba
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], 0
jne 0x1000cada
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100d0738
add esp, 0x4c
ret
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1000cac5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x17], 1
jmp 0x1000cac5
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.100d0738
add esp, 0x4c
ret