Function at 0x1400195d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3ff90]
mov eax, 0x40090
call fcn.1400496c0
sub rsp, rax
mov rax, qword [0x1404b0028]
xor rax, rsp
mov qword [rbp + 0x3ff80], rax
mov r15, rdx
mov qword [rsp + 0x58], rcx
mov r13, rcx
xor edx, edx
lea rcx, [rbp + 0x1bb4]
mov r8d, 0x1e3cc
mov esi, 0xe1a
call fcn.1402d1c50
mov r8d, 0x1c34
lea rdx, [0x14064b450]
lea rcx, [rbp - 0x80]
call fcn.1402d15b0
mov edx, 1
lea ecx, [rdx + 9]
call fcn.1402deebc
xor r14d, r14d
lea rbx, [rax + 8]
lea r12, [r14 - 1]
mov qword [rsp + 0x50], rbx
cmp dword [r15], r14d
jbe 0x14001978a
nop word [rax + rax]
mov rax, qword [r15 + 8]
lea rcx, [r14 + r14*8]
mov edx, 1
lea rdi, [rax + rcx*8]
lea ecx, [rdx + 9]
call fcn.1402deebc
mov rcx, qword [rdi + 0x28]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x20]
mov edx, dword [rax - 8]
add edx, dword [rcx - 8]
lea rcx, [rsp + 0x48]
call fcn.14001e440
mov rdx, qword [rdi + 0x20]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
mov eax, dword [rdx - 8]
add eax, eax
movsxd r8, eax
call fcn.1402d15b0
mov rdx, qword [rdi + 0x28]
mov eax, dword [rdx - 8]
add eax, eax
movsxd r8, eax
mov rax, qword [rdi + 0x20]
movsxd rcx, dword [rax - 8]
lea rcx, [rbx + rcx*2]
call fcn.1402d15b0
mov edx, dword [rbx - 8]
lea rdi, [rbx - 8]
lea rcx, [rsp + 0x50]
call fcn.14001e440
mov eax, dword [rdi]
mov rdx, rbx
mov rbx, qword [rsp + 0x50]
add eax, eax
movsxd r8, eax
mov rcx, rbx
call fcn.1402d15b0
mov rcx, rdi
call fcn.1402d83b4
mov r10d, dword [rbx - 8]
mov r9d, 0
add r10d, r10d
je 0x14001976e
nop
mov eax, r9d
movzx r8d, word [rax + rbx]
test r8w, r8w
je 0x14001976e
xor eax, eax
lea rcx, [rbp - 0x80]
cmp r8w, 0x20
jbe 0x140019765
nop dword [rax + rax]
movzx edx, word [rcx]
cmp dx, r8w
je 0x140019765
test dx, dx
je 0x14001975d
inc eax
add rcx, 2
cmp eax, 0x10000
jb 0x140019740
jmp 0x140019765
mov word [rbp + rax*2 - 0x80], r8w
inc esi
add r9d, 2
cmp r9d, r10d
jb 0x140019720
mov rax, r12
inc rax
cmp word [rbx + rax*2], 0
jne 0x140019771
inc r14d
mov dword [rbx - 8], eax
cmp r14d, dword [r15]
jb 0x140019670
mov edx, 0xff
lea rcx, [rbp + 0x1ff80]
mov r8d, 0x20000
xor edi, edi
call fcn.1402d1c50
mov r15d, esi
test esi, esi
je 0x140019840
lea r11, [rbp - 0x80]
mov r14d, r15d
mov r9d, 0xffff
nop dword [rax + rax]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [r11]
lea rcx, [rbp + 0x1ff80]
movzx eax, word [rcx + rdx*2]
lea rcx, [rcx + rdx*2]
cmp ax, r9w
je 0x140019830
cmp r8w, ax
jb 0x1400197f7
inc edx
cmp edx, edi
jbe 0x1400197d0
jmp 0x140019836
mov r10d, edi
sub r10d, edx
xor r9d, r9d
lea eax, [r9 + rdx]
inc r9d
mov ecx, eax
movzx eax, word [rbp + rax*2 + 0x1ff80]
mov word [rbp + rcx*2 + 0x1ff80], r8w
movzx r8d, ax
cmp r9d, r10d
jbe 0x140019800
mov word [rsp + 0x40], ax
mov r9d, 0xffff
jmp 0x140019834
mov word [rcx], r8w
inc edi
add r11, 2
sub r14, 1
jne 0x1400197c0
mov edx, 1
lea rax, vtable.SFile.0
mov qword [rsp + 0x60], rax
lea ecx, [rdx + 9]
call fcn.1402deebc
mov rdi, qword [r13]
mov edx, 1
add rax, 8
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
lea ecx, [rdx + 9]
call fcn.1402deebc
add rax, 8
mov qword [rsp + 0x48], rax
inc r12
cmp word [rdi + r12*2], 0
jne 0x140019885
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14001e440
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.14001da90
lea rcx, [rsp + 0x70]
mov rdi, rax
mov rdx, qword [rax]
mov edx, dword [rdx - 8]
call fcn.14001e440
mov rdx, qword [rdi]
mov r13, qword [rsp + 0x70]
mov rcx, r13
mov eax, dword [rdx - 8]
add eax, eax
movsxd r8, eax
call fcn.1402d15b0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140019904
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, r13
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140019942
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xfeff
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov word [rsp + 0x40], ax
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x1400199b7
lea rsi, [rbp - 0x80]
mov rdi, r12
nop word [rax + rax]
movzx eax, word [rbp + rdi + 0x1ff80]
lea r9, [rsp + 0x48]
mov r8d, 2
mov word [rbp + rdi - 0x80], ax
mov rdx, rsi
mov qword [rsp + 0x20], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsi, 2
lea rdi, [rdi + 2]
sub r15, 1
jne 0x140019980
test r14, r14
je 0x1400199c5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x1400199d3
lea rcx, [r13 - 8]
call fcn.1402d83b4
test rbx, rbx
je 0x1400199e1
lea rcx, [rbx - 8]
call fcn.1402d83b4
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400199f7
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov eax, 1
mov rcx, qword [rbp + 0x3ff80]
xor rcx, rsp
call fcn.140048b40
mov rbx, qword [rsp + 0x400e0]
add rsp, 0x40090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret