Function at 0x1400cc360
Capabilities:
Get file size
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, qword [rbp + 0x30]
mov rax, qword [rsi]
cmp dword [rax + 0x1a8], 4
je 0x1400cc861
lea rcx, [rsp + 0x48]
call fcn.1400cc2f0
nop
xor r13d, r13d
mov edi, r13d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400cc403
call fcn.14001d660
test eax, eax
je 0x1400cc40b
cmp eax, 0xb7
je 0x1400cc40b
or ebx, 0xffffffff
jmp 0x1400cc844
mov rdi, rax
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x60], r13
mov r9d, 2
lea r8, [rbp - 0x5c]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400cc42e
call fcn.14001d660
lea rdx, [rsp + 0x64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x1400cc465
call fcn.14001d660
test eax, eax
jns 0x1400cc465
test rdi, rdi
je 0x1400cc45d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
or ebx, 0xffffffff
jmp 0x1400cc844
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x28]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc490
call fcn.14001d660
mov rdx, qword [rsi + 0x20]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc4b6
call fcn.14001d660
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x70]
mov r8d, 2
lea rdx, [rsi + 0xa8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc4de
call fcn.14001d660
lea rcx, [rsi + 0x28]
call fcn.1400a8710
mov qword [rbp - 0x50], rax
lea rcx, [rsi + 0x38]
call fcn.1400a8710
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x68]
mov r8d, 8
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc51d
call fcn.14001d660
mov qword [rsp + 0x20], r13
lea r9, [rbp - 4]
mov r8d, 8
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc542
call fcn.14001d660
lea rdx, [rsi + 0x48]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x48]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc567
call fcn.14001d660
lea rdx, [rsi + 0x50]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x7c]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc58c
call fcn.14001d660
lea rdx, [rsi + 0x58]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x18]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc5b1
call fcn.14001d660
lea rdx, [rsi + 0x5c]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x74]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc5d6
call fcn.14001d660
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x38]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc603
call fcn.14001d660
lea rdx, [rsi + 0x14]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x6c]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc628
call fcn.14001d660
lea rdx, [rsi + 0x18]
mov qword [rsp + 0x20], r13
lea r9, [rbp]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc64d
call fcn.14001d660
lea rdx, [rsi + 0xc0]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x64]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc675
call fcn.14001d660
lea rdx, [rbp - 0x20]
mov rcx, qword [rsi]
call fcn.1400c3cd0
mov rbx, rax
lea rdx, [rbp - 0x30]
mov rcx, qword [rsi]
call fcn.1400c3cd0
mov rcx, qword [rbx]
mov r8d, dword [rcx - 0x10]
add r8d, r8d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x78]
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc6b9
call fcn.14001d660
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400cc6db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400cc6f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x58]
mov r8d, 2
lea rdx, [rsi + 0xa8]
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc726
call fcn.14001d660
lea rdx, [rsi + 0xd0]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 8]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc74e
call fcn.14001d660
lea rdx, [rsi + 0xc8]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x7c]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc777
call fcn.14001d660
lea rdx, [rsp + 0x5c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x1400cc7af
call fcn.14001d660
test eax, eax
jns 0x1400cc7ab
test rdi, rdi
je 0x1400cc7a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400cc844
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x60]
mov dword [rsp + 0x40], eax
cdqe
neg rax
mov qword [rbp - 0x10], rax
mov r9d, 1
lea r8, [rbp - 0xc]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400cc7f4
call fcn.14001d660
test eax, eax
jns 0x1400cc7f4
test rdi, rdi
je 0x1400cc7f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400cc844
sub dword [rsp + 0x40], 4
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cc81f
call fcn.14001d660
test rdi, rdi
je 0x1400cc835
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r13
mov qword [rsp + 0x68], r13
test rdi, rdi
je 0x1400cc844
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400cc861
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret