Function at 0x1402514b8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x528]
sub rsp, 0x600
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov r14, rcx
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, str.startup.txt
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
cmp rax, 1
jne 0x140251b3c
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
lea edi, [rax + 1]
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rbp + 0x28c]
lea rcx, [rsp + 0x40]
call fcn.140021fb8
test eax, eax
je 0x140251b2b
mov r12b, 1
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
cmp dword [rax + 0x10], 1
jbe 0x140251628
call fcn.14023ddcc
test al, al
jne 0x140251628
xor r12b, r12b
mov eax, 0xfeff
mov word [rsp + 0x50], ax
and dword [rsp + 0x54], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call fcn.14024fbb8
mov rsi, rax
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
xor r13d, r13d
mov rcx, qword [rsi + 0xc8]
sub rcx, qword [rsi + 0xc0]
sar rcx, 4
test ecx, ecx
jle 0x140251af0
mov edi, 0x40c
or rbx, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rsp + 0x78]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1402516bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 1
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rsp + 0x68]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14025172c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 2
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rbp - 0x68]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14025179b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x40b
je 0x1402517cc
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, edi
jne 0x14025183d
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 7
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rsp + 0x58]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14025182b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, edi
je 0x1402518ba
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 3
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rbp - 0x70]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1402518a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
cmp byte [r14 + 0xf9], 0
je 0x140251933
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 5
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rbp - 0x78]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140251921
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x40b
je 0x140251952
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, edi
jne 0x1402519c3
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 6
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rsp + 0x60]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1402519b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x40b
jne 0x140251a45
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 8
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rsp + 0x70]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140251a33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, r12b
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov edx, 4
mov rcx, rsi
call fcn.140269a10
mov r9d, eax
mov r8d, r13d
lea rdx, [rbp - 0x80]
call fcn.140054710
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140251aa2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, r12b
lea rdx, [0x14034fb84]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
inc r13d
mov rax, qword [rsi + 0xc8]
sub rax, qword [rsi + 0xc0]
sar rax, 4
cmp r13d, eax
jl 0x140251673
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
or rsi, 0xffffffffffffffff
cmp rbx, rsi
je 0x140251b10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rsi
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140251b2b
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 0x140251b3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140251b4a
call fcn.1400b80bc
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret