Function at 0x7ff7c8e45350
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x7ff7c8ea3088]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12d, edx
mov r15, rcx
cmp edx, 0xffffffff
jne 0x7ff7c8e4539d
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x7ff7c8e455e7
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x7ff7c8e453d8
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x7ff7c8e453d8
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [r15 + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r12b
mov eax, r12d
jmp 0x7ff7c8e455e7
cmp qword [r15 + 0x80], 0
jne 0x7ff7c8e453ea
or eax, 0xffffffff
jmp 0x7ff7c8e455e7
mov r8, qword [r15 + 0x18]
lea rax, [r15 + 0x70]
cmp qword [r8], rax
jne 0x7ff7c8e45417
mov rdx, qword [r15 + 0x90]
mov rcx, qword [r15 + 0x88]
mov qword [r8], rcx
mov rax, qword [r15 + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [r15 + 0x50]
mov dword [rax], edx
cmp qword [r15 + 0x68], 0
jne 0x7ff7c8e4543c
movsx ecx, r12b
mov rdx, qword [r15 + 0x80]
call fcn.7ff7c8e63180
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, r12d
jmp 0x7ff7c8e455e5
mov byte [rbp - 0x11], r12b
mov qword [rbp + 0xf], 0xf
xor eax, eax
mov qword [rbp + 7], rax
mov byte [rbp - 9], al
xor r8d, r8d
lea edx, [rax + 8]
lea rcx, [rbp - 9]
call 0x7ff7c8e4b8b0
nop
mov rcx, qword [rbp - 9]
mov rdx, qword [rbp + 0xf]
nop dword [rax]
lea r8, [rbp - 9]
cmp rdx, 0x10
cmovae r8, rcx
lea rsi, [rbp - 9]
cmovae rsi, rcx
mov r14, qword [r15 + 0x68]
mov rdx, qword [r14]
mov rbx, qword [rbp + 7]
add rbx, r8
mov rdi, qword [rdx + 0x38]
mov rcx, rdi
call qword [fcn.7ff7c8e491c0]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x11]
lea rdx, [r15 + 0x74]
mov rcx, r14
call rdi
test eax, eax
js 0x7ff7c8e4558a
cmp eax, 1
jg 0x7ff7c8e45562
lea rax, [rbp - 9]
mov rcx, qword [rbp - 9]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x21]
sub rbx, rax
je 0x7ff7c8e4552a
lea rax, [rbp - 9]
cmp rdx, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.7ff7c8e634e0
mov rdx, qword [rbp + 0xf]
mov rcx, qword [rbp - 9]
cmp rbx, rax
jne 0x7ff7c8e45592
mov byte [r15 + 0x71], 1
lea rax, [rbp - 0x11]
cmp qword [rbp - 0x19], rax
jne 0x7ff7c8e4555d
test rbx, rbx
jne 0x7ff7c8e45470
cmp qword [rbp + 7], 0x20
jae 0x7ff7c8e45592
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 9]
call 0x7ff7c8e4b370
jmp 0x7ff7c8e45461
mov ebx, r12d
jmp 0x7ff7c8e45595
cmp eax, 3
jne 0x7ff7c8e4558a
movsx ecx, byte [rbp - 0x11]
mov rdx, qword [r15 + 0x80]
call fcn.7ff7c8e63180
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, r12d
mov rdx, qword [rbp + 0xf]
mov rcx, qword [rbp - 9]
jmp 0x7ff7c8e45595
mov rdx, qword [rbp + 0xf]
mov rcx, qword [rbp - 9]
or ebx, 0xffffffff
cmp rdx, 0x10
jb 0x7ff7c8e455e5
lea rax, [rdx + 1]
cmp rax, 0x1000
jb 0x7ff7c8e455e0
test byte [rbp - 9], 0x1f
je 0x7ff7c8e455b3
call fcn.7ff7c8e60e0c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x7ff7c8e455c2
call fcn.7ff7c8e60e0c
int3
sub rcx, rax
cmp rcx, 8
jae 0x7ff7c8e455d1
call fcn.7ff7c8e60e0c
int3
cmp rcx, 0x27
jbe 0x7ff7c8e455dd
call fcn.7ff7c8e60e0c
int3
mov rcx, rax
call fcn.7ff7c8e58a14
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.7ff7c8e589f0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret