Function at 0x1400017d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rdx
lea rcx, [rbp - 0x30]
xor edi, edi
xor edx, edx
lea r14d, [rdi + 0x30]
mov r8d, r14d
call fcn.14000f4f0
mov ecx, 0x4d8
call fcn.140011578
mov rbx, rax
test rax, rax
je 0x140001884
lea esi, [rdi + 2]
lea ecx, [rdi + 0x50]
mov dword [rax + 0x2c], esi
call fcn.140011578
test rax, rax
je 0x140001835
mov byte [rax + 8], dil
mov qword [rbx + 0x4c8], rax
test rax, rax
je 0x14000187c
mov ecx, 0x6f50
call fcn.140011578
test rax, rax
jne 0x140001855
mov rax, rdi
jmp 0x140001864
mov dword [rax + 0x64], esi
mov qword [rax + 0x5c], 0x4000000
mov qword [rax + 0x28], rdi
mov qword [rbx + 0x4c0], rax
test rax, rax
jne 0x1400018a1
mov rcx, qword [rbx + 0x4c8]
call fcn.140011538
mov rcx, rbx
call fcn.140011538
mov eax, 0x27
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r12, [rbx + 0x50]
mov qword [rbx], rdi
mov rcx, r12
mov byte [rbx + 0x30], dil
mov r8, r14
mov qword [rbx + 0x20], rdi
xor edx, edx
call fcn.14000f4f0
lea rcx, [rbx + 0x80]
mov r8, r14
xor edx, edx
call fcn.14000f4f0
mov qword [rbx + 0xb0], rdi
mov r14, rdi
mov qword [rbx + 0xb8], 0xc
mov r13, rdi
mov rax, qword [0x14003ac00]
mov rsi, rdi
mov r9, qword [0x14003abf8]
mov qword [rbp - 0x18], rax
mov rax, qword [0x14003ac10]
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], rdi
mov dword [rbp + 0x40], edi
cmp dword [r15 + 0xc], 0
je 0x140001aa9
cmp edi, dword [r15 + 0xc]
jge 0x140001965
cmp r14, r13
jne 0x140001965
mov eax, dword [0x14003ac08]
mov r8d, edi
mov rcx, qword [0x14003abf0]
mov rdx, r15
mov dword [rsp + 0x20], eax
call fcn.1400091c0
test eax, eax
jle 0x140001a69
add edi, eax
cdqe
xor r14d, r14d
mov dword [rbp + 0x40], edi
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
cmp dword [rbx + 0x2c], 0
jne 0x1400019b1
and dword [rbx], 0
mov edi, 0x30
and dword [rbx + 4], 0
mov r8d, edi
and qword [rbx + 0x20], 0
xor edx, edx
mov rcx, r12
mov byte [rbx + 0x30], 0
call fcn.14000f4f0
mov r8d, edi
lea rcx, [rbx + 0x80]
xor edx, edx
call fcn.14000f4f0
and qword [rbx + 0xb0], 0
mov qword [rbx + 0xb8], 0xc
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov r15, r14
mov r12, rsi
call fcn.14000c6c0
cmp dword [rbx + 0x2c], 0
mov edi, eax
mov r13, qword [rbp - 0x20]
mov r14, qword [rbp - 0x28]
jne 0x1400019f9
test eax, eax
jne 0x1400019e1
cmp r14, r13
setne dil
add edi, 7
cmp edi, 1
je 0x1400019f3
mov r14, r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x10], r12
jmp 0x140001a1f
mov rsi, qword [rbp - 0x10]
jmp 0x140001a1f
mov rsi, qword [rbp - 0x10]
test edi, edi
jne 0x140001a1b
cmp r15, r14
jne 0x140001a1b
cmp r12, rsi
jne 0x140001a1b
cmp byte [rbx + 0x30], dil
lea eax, [rdi + 8]
mov byte [rbx + 0x30], 1
cmovne edi, eax
jmp 0x140001a1f
mov byte [rbx + 0x30], 0
cmp rsi, qword [0x14003ac10]
mov r15, qword [rbp + 0x50]
jne 0x140001a4e
mov rcx, qword [0x14003ac00]
mov r9, r15
mov r8, rsi
mov edx, 1
call fcn.140011388
cmp rax, rsi
jne 0x140001a70
xor esi, esi
mov qword [rbp - 0x10], rsi
test edi, edi
jne 0x140001a77
mov r9, qword [0x14003abf8]
lea r12, [rbx + 0x50]
mov edi, dword [rbp + 0x40]
mov r15, qword [rbp + 0x48]
jmp 0x140001919
mov edi, 6
jmp 0x140001aae
mov edi, 0x46
jmp 0x140001aae
cmp edi, 1
je 0x140001a83
mov edi, 0x27
jmp 0x140001aae
mov rcx, qword [0x14003ac00]
mov r9, r15
mov r8, rsi
mov edx, 1
call fcn.140011388
xor ecx, ecx
cmp rax, rsi
lea edi, [rcx + 0x46]
cmovne ecx, edi
mov edi, ecx
jmp 0x140001aae
mov edi, 0x28
mov rsi, qword [rbx + 0x4c0]
cmp dword [rsi + 0x64], 0
je 0x140001ac4
mov rcx, qword [rsi + 0x28]
call fcn.140011538
mov rcx, rsi
call fcn.140011538
mov rcx, qword [rbx + 0x4c8]
call fcn.140011538
mov rcx, rbx
call fcn.140011538
mov eax, edi
jmp 0x140001889