Function at 0x14002dda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x310
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov edi, edx
mov rsi, rcx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, 0x489
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
test rax, rax
je 0x14002e062
mov r9d, 2
mov edx, 0x100c
mov rcx, rax
lea r8, [r9 - 3]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x14002e04f
mov edx, eax
mov rcx, rbx
call fcn.14008f530
mov rbx, rax
test rax, rax
je 0x14002e04f
movabs rax, 0x504d55442d58494d
cmp qword [rbx], rax
jne 0x14002e04f
cmp dword [rbx + 8], 0
je 0x14002e04f
sub edi, 0x486
je 0x14002df2c
cmp edi, 1
je 0x14002de5b
xor eax, eax
jmp 0x14002e067
mov rdx, qword [r14 + 0x18]
xor edi, edi
mov rcx, qword [r14 + 0x10]
mov r9d, 0x7ffffffe
test rdx, rdx
je 0x14002debf
cmp rdx, 0x7fffffff
jbe 0x14002de7e
mov word [rcx], di
jmp 0x14002debf
mov r8, r9
mov r10, rbx
sub r8, rdx
sub r10, rcx
nop word [rax + rax]
lea rax, [r8 + rdx]
test rax, rax
je 0x14002deb1
movzx eax, word [r10 + rcx + 0xc]
test ax, ax
je 0x14002deb1
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14002de90
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
mov r8, qword [r14 + 8]
mov rdx, qword [r14]
test r8, r8
je 0x14002df11
cmp r8, 0x7fffffff
jbe 0x14002ded9
mov word [rdx], di
jmp 0x14002df11
sub r9, r8
sub rbx, rdx
nop
lea rax, [r9 + r8]
test rax, rax
je 0x14002df03
movzx eax, word [rbx + rdx + 0x8c]
test ax, ax
je 0x14002df03
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14002dee0
test r8, r8
lea rcx, [rdx - 2]
cmovne rcx, rdx
mov word [rcx], di
mov rcx, qword [r14 + 0x60]
xor r9d, r9d
mov edx, 0x471
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14002e062
xor edi, edi
lea rcx, [rsp + 0xf2]
xor edx, edx
mov word [rsp + 0xf0], di
mov r8d, 0x206
call fcn.1400b1140
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], edi
call fcn.140092c70
mov rcx, qword [r14 + 0x68]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x50]
lea rax, [0x1400c8ee0]
mov qword [rsp + 0xa8], 0x77
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x68], 0x78
call fcn.140092c60
test eax, eax
je 0x14002e062
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 2]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0xf0]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0x10000000
mov qword [rsp + 0x338], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14002e017
mov r8d, dword [rbx + 8]
lea rdx, [rbx + 0x1000]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rbx + 8]
mov esi, 0x70
cmp dword [rsp + 0x40], ecx
mov rcx, rbp
cmove esi, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002e01f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [r14 + 0x68]
mov rbp, qword [rsp + 0x338]
test esi, esi
jne 0x14002e047
lea r9, [rsp + 0xf0]
mov r8d, 0xe5
lea edx, [rsi + 4]
call fcn.140091bf0
jmp 0x14002e062
mov r8d, 0xb6
jmp 0x14002e058
mov r8d, 0xae
mov rcx, rsi
mov edx, 1
call fcn.140091bf0
mov eax, 1
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop r14
pop rdi
pop rsi
ret