Function at 0x1402928d8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r14, rcx
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x40], rsi
lea r13d, [rsi + 3]
mov dword [rax - 0x78], r13d
xor r9d, r9d
mov r8d, 0x40000000
lea rcx, [rbp - 0x40]
call fcn.140021fb8
test eax, eax
je 0x140292bc7
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x38], rdi
mov r12b, 1
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x40]
cmp dword [rax + 0x10], 1
jbe 0x14029298e
call fcn.14023ddcc
test al, al
jne 0x14029298e
xor r12b, r12b
mov eax, 0xfeff
mov word [rbp + 0x40], ax
and dword [rbp + 0x48], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x48]
mov r8d, r13d
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r13d, r13d
mov rax, qword [r14 + 0x388]
lea rcx, [r14 + 0x388]
call qword [rax]
test eax, eax
jle 0x140292b8d
lea rdi, [0x140351efc]
or rbx, 0xffffffffffffffff
mov rax, qword [r14 + 0x388]
mov r9d, 1
mov r8d, r13d
lea rdx, [rbp - 0x30]
lea rcx, [r14 + 0x388]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1402929fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14001fbc0
mov r8b, r12b
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14001fc74
mov r11, qword [r14 + 0x388]
mov r9d, 2
mov r8d, r13d
lea rdx, [rbp - 0x28]
lea rcx, [r14 + 0x388]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140292a68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14001fbc0
mov r8b, r12b
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14001fc74
mov r11, qword [r14 + 0x388]
mov r9d, 3
mov r8d, r13d
lea rdx, [rbp - 0x20]
lea rcx, [r14 + 0x388]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140292ad2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14001fbc0
cmp byte [r14 + 0x128], 0
je 0x140292b56
mov r8b, r12b
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14001fc74
mov r11, qword [r14 + 0x388]
mov r9d, 4
mov r8d, r13d
lea rdx, [rbp - 0x18]
lea rcx, [r14 + 0x388]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140292b46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.14001fbc0
mov r8b, r12b
lea rdx, [0x14034fb84]
lea rcx, [rbp - 0x40]
call fcn.14001fc74
inc r13d
mov rax, qword [r14 + 0x388]
lea rcx, [r14 + 0x388]
call qword [rax]
cmp r13d, eax
jl 0x1402929b4
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
or rsi, 0xffffffffffffffff
cmp rbx, rsi
je 0x140292bac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x40], rsi
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140292bc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x40]
cmp rcx, rsi
je 0x140292bd6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret