Function at 0x100020f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x128
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov r12, r8
mov rsi, rdx
mov r13, rcx
xor edi, edi
mov ebp, edi
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.1000482e0
mov rbx, qword [rsp + 0x40]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x100020fb5
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1000140c0
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0xc], 0x104
jge 0x100020fc9
mov ecx, 0x80070057
call fcn.100013860
int3
mov dword [rbx - 0x10], 0x104
mov rax, qword [rsp + 0x40]
mov word [rax + 0x208], 0
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], 0x98
mov qword [rsp + 0x68], r13
mov rax, qword [0x1000a8958]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x90], rbx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax - 0x10]
mov dword [rsp + 0x98], ecx
mov dword [rsp + 0xc0], 6
lea rcx, [rsp + 0x60]
call qword [0x100013168]
test eax, eax
je 0x1000210de
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1000210c2
mov rdx, qword [r12]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002109b
mov ebp, 1
jmp 0x1000210b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, qword [rsi]
lea r8, [0x1000057a8]
mov ecx, 3
call fcn.100019740
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000210de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, qword [rsi]
lea r8, [0x1000057a8]
mov ecx, 3
call fcn.100019740
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x10002110a
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov edi, ecx
test ecx, ecx
js 0x1000211a2
cmp edi, dword [rdx - 0xc]
jg 0x1000211a2
mov dword [rdx - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], 0
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100021144
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100021164
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100021182
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x10002119e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
jmp 0x1000211ad
mov ecx, 0x80070057
call fcn.100013860
nop
mov rbx, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov r13, qword [rsp + 0x100]
add rsp, 0x128
ret