Function at 0x140015760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov edi, r8d
mov rbx, rdx
mov r15, rcx
xor sil, sil
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], sil
mov r14, 0xffffffffffffffff
mov r9d, r14d
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rbp - 0x61], rax
lea rcx, [rbp - 0x61]
call fcn.14002cd90
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp + 7]
call fcn.14001cd10
mov rcx, rax
call fcn.14002b330
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x59]
call fcn.14000bff0
nop
lea rbx, vtable.JRPropertyMap.0
mov qword [rbp - 0x51], rbx
xor r12d, r12d
mov qword [rbp - 0x49], r12
mov byte [rbp - 0x41], 1
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.140019c10
nop
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140019b20
nop
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.1400103b0
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x31]
mov rax, qword [rbp - 0x31]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x21], al
mov dword [rbp - 0x19], 2
mov qword [rbp - 0x15], 3
mov dword [rbp - 0xd], r12d
mov byte [rbp - 9], r12b
mov qword [rbp - 1], r14
mov qword [rbp - 0x51], rbx
lea r13d, [r14 + 2]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14001587a
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
mov qword [rbp - 0x49], r12
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400158ab
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400158a1
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400158ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp - 0x39]
call fcn.1400460c0
test al, al
je 0x1400159d4
cmp edi, 1
jne 0x140015927
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x17], r13d
mov qword [rbp + 0xf], r12
mov rcx, qword [r15]
call fcn.140045730
mov rdi, rax
test rax, rax
je 0x140015916
mov rbx, rax
movzx ecx, byte [rbx]
inc rbx
test cl, cl
jne 0x1400158e0
sub ebx, edi
dec ebx
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140015916
movzx esi, sil
cmp dword [rbp + 0x7f], ebx
cmove esi, r13d
test rdi, rdi
je 0x1400159d4
mov rcx, rdi
jmp 0x1400159ce
cmp edi, 2
jne 0x1400159d4
mov dword [rbp - 0x69], r12d
mov dword [rbp + 0x27], r13d
mov qword [rbp + 0x1f], r12
mov r15, qword [r15]
test r15, r15
jne 0x140015949
mov rbx, r12
jmp 0x1400159c6
mov rdi, r15
nop dword [rax]
movzx eax, word [rdi]
add rdi, 2
test ax, ax
jne 0x140015950
sub rdi, r15
sar rdi, 1
lea r8d, [rdi - 1]
mov rcx, r15
call fcn.1400457e0
movsxd rcx, eax
call fcn.14008da1c
mov rbx, rax
lea r9d, [rdi - 1]
mov rdx, rax
mov rcx, r15
call fcn.1400459c0
test rdx, rdx
je 0x1400159c6
mov rdi, rdx
movzx eax, byte [rbx]
inc rbx
test al, al
jne 0x140015990
sub ebx, edi
lea r15d, [rbx - 1]
mov rbx, rdi
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, r15d
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400159c6
cmp dword [rbp - 0x69], r15d
jne 0x1400159c6
mov sil, 1
test rbx, rbx
je 0x1400159d4
mov rcx, rbx
call fcn.14008d9d8
nop
cmp byte [rbp - 0xa], 0
je 0x1400159ee
mov rcx, qword [rbp - 1]
cmp rcx, 0xffffffffffffffff
je 0x1400159ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], r14
mov byte [rbp - 0xa], 0
lea rcx, [rbp - 0x39]
call fcn.140019ba0
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140015a2c
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x140015a22
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140015a2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movzx eax, sil
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret