Function at 0x140099640
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x278
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r9, qword [rcx]
mov r13d, 1
mov r12, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
lea edx, [r13 + 2]
mov r8d, r13d
call fcn.1401c1e14
test rax, rax
jne 0x14009968f
mov eax, 2
jmp 0x14009990c
movzx eax, word [rsp + 0x20]
cmp ax, word [0x14021aa50]
jne 0x140099685
movzx eax, byte [rsp + 0x22]
cmp al, byte [0x14021aa52]
jne 0x140099685
mov rcx, qword [rbx + 0x108]
mov qword [rsp + 0x2b0], rbp
call fcn.1401bee78
mov rbp, rax
test rax, rax
jne 0x1400996cf
movzx eax, r13w
jmp 0x140099904
mov eax, dword [rbx + 0x108]
mov r9, qword [rbx]
mov r8, r13
sub eax, 3
mov rcx, rbp
mov qword [rsp + 0x268], r14
movsxd rdi, eax
mov rdx, rdi
call fcn.1401c1e14
test rax, rax
jne 0x140099703
mov eax, 4
jmp 0x1400998fc
lea r11, [rdi + rbp]
mov r14d, 4
lea r8, [rsp + 0x38]
lea rdx, [r11 - 1]
mov rcx, rbp
mov r9d, r14d
mov qword [rsp + 0x270], rsi
mov dword [rsp + 0x38], 0xd0ffc8ff
call fcn.140099930
mov rsi, rax
test rax, rax
jne 0x140099749
mov rcx, rbp
call fcn.1401be23c
lea eax, [rsi + 2]
jmp 0x1400998f4
mov rcx, rax
mov qword [rsp + 0x260], r15
call fcn.1400999d0
lea rbx, [rsi + 2]
mov rcx, rbx
call fcn.1400999d0
mov dword [rsi + 6], 0x4649464a
mov word [rsi + 0xa], 0x100
mov byte [rsi + 0xc], 0
movzx ecx, byte [rbx + 2]
movzx eax, byte [rbx + 3]
shl ecx, 8
add ecx, 2
add eax, ecx
add rbx, rax
mov rcx, rbx
call fcn.1400999d0
cmp byte [rbx + 1], 0xda
je 0x1400997c1
nop word [rax + rax]
movzx ecx, byte [rbx + 2]
movzx eax, byte [rbx + 3]
shl ecx, 8
add ecx, 2
add eax, ecx
add rbx, rax
mov rcx, rbx
call fcn.1400999d0
cmp byte [rbx + 1], 0xda
jne 0x1400997a0
dec rbx
mov edi, 2
lea r8, [rsp + 0x38]
lea rdx, [r11 - 1]
mov r9d, edi
mov rcx, rbx
mov word [rsp + 0x38], 0xc9ff
call fcn.140099930
mov r15, rax
test rax, rax
jne 0x1400997f9
mov rcx, rbp
call fcn.1401be23c
jmp 0x1400998e9
mov rcx, rax
call fcn.1400999d0
lea rcx, [rsp + 0x50]
mov edx, 0x200
call fcn.1400661b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140066470
lea rcx, [rsp + 0x28]
mov edx, 0x12
call fcn.140066480
mov rdi, rax
test rax, rax
jne 0x140099847
mov rcx, rbp
call fcn.1401be23c
movzx eax, r14w
jmp 0x1400998ec
mov r9, qword [rax]
mov rdx, rbx
mov r8, r13
sub rdx, rsi
mov rcx, rsi
inc rdx
call fcn.1401c24f8
mov r9, qword [rdi]
lea rcx, [0x14029e200]
mov r8, r13
mov edx, 0x1a4
call fcn.1401c24f8
mov r9, qword [rdi]
sub r15, rbx
lea rdx, [r15 + 1]
lea rcx, [rbx + 1]
mov r8, r13
call fcn.1401c24f8
mov rcx, rdi
call fcn.140066370
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140066470
lea rcx, [rsp + 0x28]
mov edx, 0x11
call fcn.140066480
lea r8, str.Seattle_Film_Works
mov r9d, 0x10
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.140077140
mov rcx, rbx
movzx edi, ax
call fcn.140066370
mov rcx, rbp
call fcn.1401be23c
lea rcx, [rsp + 0x50]
call fcn.140065fe0
movzx eax, di
mov r15, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x270]
mov r14, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x278
pop r13
pop r12
pop rdi
pop rbx
ret