Function at 0x14006678c
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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140096008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rcx
mov qword [rbp - 0x30], rcx
mov rcx, qword [0x1400b8a28]
mov rsi, rdx
mov qword [rbp - 0x28], rdx
xor r13d, r13d
call qword [sym.imp.USER32.dll_SetCursor]
lea ebx, [r13 + 1]
mov rcx, r14
lea edx, [rbx + 4]
mov dword [0x140096f20], ebx
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
test rax, rax
je 0x140066b1c
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
test rax, rax
je 0x140066b1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
xor edx, edx
mov rcx, rdi
mov r15, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea r12, [r15 + 0x220]
mov edx, ebx
mov ecx, dword [r12]
call fcn.1400460c8
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140066aa7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
cmp rbx, rax
je 0x14006685e
xor r9d, r9d
lea edx, [r13 + 1]
xor r8d, r8d
mov ecx, 0xc0000095
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [r15 + 0x218]
xor r9d, r9d
xor r8d, r8d
mov qword [rbp - 0x38], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [rbp - 0x40]
or edx, 0xffffffff
cmp eax, 0xffffffff
cmove ecx, edx
mov dword [rbp - 0x40], ecx
test ecx, ecx
jne 0x1400668e8
test ebx, ebx
je 0x1400668e8
mov r12, qword [rbp - 0x38]
mov r14d, 0xfffe
mov rcx, qword [r15 + 0x218]
lea r9, [rbp - 0x40]
cmp ebx, r14d
mov edx, r13d
mov esi, ebx
cmova esi, r14d
and qword [rsp + 0x20], 0
mov r8d, esi
add rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400668d9
and dword [rbp - 0x40], 0
add r13d, esi
sub ebx, esi
jne 0x1400668a1
mov r14, qword [rbp - 0x30]
lea r12, [r15 + 0x220]
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
movsxd rax, dword [r12]
xor r13d, r13d
imul rcx, rax, 0xda
mov rax, qword [0x1400b94f0]
mov r8, r12
mov word [rcx + rax + 0xa], r13w
lea rax, [rbp - 0x38]
mov rdx, qword [r15 + 0x218]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140045e2c
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140066aa7
mov rcx, rdi
call fcn.140065c8c
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
lea r9, [0x1400b8308]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [r12]
lea r8d, [r13 + 0x60]
mov rcx, rdi
call fcn.1400619dc
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140066aa7
lea edx, [rax + 8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
mov ecx, dword [rax + 0xe]
mov r9d, dword [rax + 0xa]
mov r8d, dword [rax + 0x5a]
mov edx, dword [rax + 0x56]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.14007ce94
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140066aa7
mov rdx, rsi
mov rcx, rdi
call fcn.140054664
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140066aa7
cmp dword [rsi + 0xa], r13d
je 0x140066a03
test byte [rsi + 0xe], 1
jne 0x140066a03
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDC]
mov edx, dword [rsi + 0xa]
mov rcx, rax
mov rbx, rax
call fcn.14007cd6c
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x18]
xor edx, edx
mov r9d, dword [rsi + 2]
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.14007cf34
mov eax, dword [rbp - 0x14]
mov edx, 1
mov r9d, dword [rsi + 6]
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.14007cf34
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetScrollPos]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetScrollPos]
movzx r8d, word [rsi + 2]
xor r9d, r9d
shl r8, 0x10
mov edx, 0x114
or r8, 0x63
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r8d, word [rsi + 6]
xor r9d, r9d
shl r8, 0x10
mov edx, 0x115
or r8, 0x63
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 2
mov edx, 0x7d00
mov ecx, ebx
call fcn.140078068
xor edx, edx
mov ecx, ebx
call fcn.140078200
cmp dword [rbp - 0x40], r13d
jne 0x140066b03
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140066ae0
lea edx, [rbx + 6]
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 8
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r14
call fcn.140067588
mov edx, 1
mov rcx, r14
call fcn.140059190
mov rcx, qword [0x1400b8a20]
call qword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [rbp - 0x40]
mov dword [0x140096f20], r13d
jmp 0x140066b1e
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14008a940
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret