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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 0
test ebp, ebp
je 0x1000c611
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebp
call ebx
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
je 0x1000c604
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
add dword [esp + 0x18], 0xffffffb2
adc dword [esp + 0x1c], 0xffffffff
js 0x1000c59e
jg 0x1000c3df
cmp dword [esp + 0x18], 5
jbe 0x1000c59e
xor eax, eax
push eax
lea ecx, [esp + 0x24]
push ecx
push 5
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x34], 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 0x1000c5f2
cmp dword [esp + 0x20], 5
jne 0x1000c5f2
mov eax, dword [0x101e06b0]
cmp eax, 2
jne 0x1000c445
mov esi, str.F37E72DD16621339E0B96A481B26B31B
jmp 0x1000c44f
cmp eax, 1
jne 0x1000c45a
mov esi, str.CA7605124E23306E3A5FD8AA607A1D61
mov ecx, 8
lea edi, [esp + 0x31]
rep movsd dword es:[edi], dword [esi]
push 0x3f
lea eax, [esp + 0x8d]
push 0
push eax
mov byte [esp + 0x94], 0
call fcn.100d4cc0
push 0x32
lea ecx, [esp + 0x65]
push 0
push ecx
mov byte [esp + 0x6c], 0
call fcn.100d4cc0
add esp, 0x18
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x58]
call fcn.1000c1a0
lea esi, [esp + 0x88]
lea edi, [esp + 0x54]
call fcn.1000bd50
mov esi, dword [esp + 0x28]
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c5ee
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
mov ebx, dword [esp + 0x24]
push 0
push 0
push 5
push ebx
call edi
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
jl 0x1000c526
jg 0x1000c521
cmp eax, 0x25805
jbe 0x1000c526
mov eax, 0x25805
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x18]
mov edi, eax
jl 0x1000c54b
jg 0x1000c546
cmp ebp, 0x25805
jbe 0x1000c54b
mov ebp, 0x25805
sub ebp, 5
test edi, edi
je 0x1000c593
push 0
lea edx, [esp + 0x24]
push edx
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c593
cmp dword [esp + 0x20], ebp
jne 0x1000c593
push ebp
push edi
lea ecx, [esp + 0x90]
call fcn.1000bdc0
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
jmp 0x1000c5f2
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c5f2
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 0x1000c5f2
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], 0
jne 0x1000c60b
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x17]
jmp 0x1000c613
xor al, al
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0xc0
ret 4