Function at 0x14027dda8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x508]
sub rsp, 0x600
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
movups xmm0, xmmword [str.Text_Files__.txt_]
movaps xmmword [rbp + 0x4a0], xmm0
movups xmm1, xmmword [0x140351eb0]
movaps xmmword [rbp + 0x4b0], xmm1
movups xmm0, xmmword [0x140351ec0]
movaps xmmword [rbp + 0x4c0], xmm0
mov eax, dword [0x140351ed0]
mov dword [rbp + 0x4d0], eax
movzx eax, word [0x140351ed4]
mov word [rbp + 0x4d4], ax
xor eax, eax
mov qword [rbp + 0x4d6], rax
mov qword [rbp + 0x4de], rax
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x4a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x802
lea r9, [0x140355c28]
lea r8, [0x140351ee8]
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14001f440
nop
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14001f614
mov ebx, 1
cmp rax, rbx
jne 0x14027e0ab
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rbp + 0x28c]
lea rcx, [rsp + 0x40]
call fcn.140021fb8
test eax, eax
je 0x14027e09a
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rax + 0x10], ebx
jbe 0x14027df0c
call fcn.14023ddcc
test al, al
jne 0x14027df0c
xor bl, bl
mov eax, 0xfeff
mov word [rsp + 0x48], ax
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8d, [rsi + 3]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.140047624
nop
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x210]
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.1402e4680
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14027df7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x50], rax
cmp rax, qword [rsp + 0x68]
je 0x14027e037
lea rdx, [rax + 0x18]
lea rcx, [rsp + 0x60]
call fcn.14000c4d8
nop
mov r8b, bl
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x14034fb84]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14027dfeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x50]
cmp byte [rax + 0x21], 0
jne 0x14027df8b
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x21], 0
jne 0x14027e011
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x21], 0
je 0x14027e000
jmp 0x14027df86
mov rcx, qword [rax + 8]
jmp 0x14027e024
cmp rax, qword [rcx + 0x10]
jne 0x14027e02a
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x21], 0
je 0x14027e017
mov rax, rcx
mov qword [rsp + 0x50], rcx
jmp 0x14027df8b
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp rbx, rsi
je 0x14027e058
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rsi
mov r8, qword [rbp - 0x78]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140004130
nop
mov rcx, qword [rbp - 0x78]
call fcn.1400be0f4
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14027e09a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x14027e0ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14027e0b9
call fcn.1400b80bc
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret