Function at 0x14002d510
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsi + 0x120]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r8, eax
mov rdx, rbx
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [rbp]
lea rax, [rbp + 0x110]
mov r8, qword [rsi + 0x60]
test cl, cl
je 0x14002d59d
lea rdx, [rbp]
lea r9, [rbp + 0x110]
sub rdx, r9
nop dword [rax + rax]
mov byte [rax], cl
inc rax
movzx ecx, byte [rdx + rax]
test cl, cl
jne 0x14002d590
xorps xmm0, xmm0
mov byte [rax], 0
movups xmmword [rsp + 0x50], xmm0
xor eax, eax
mov dword [rsp + 0x50], 0x98
xor ecx, ecx
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x58], r8
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x1400341f0]
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x60], rax
lea rax, [0x1400341a0]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x58], rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x78], 0x104
mov dword [rbp - 0x68], eax
lea rax, [rbp + 0x110]
mov qword [rbp - 0x80], rax
lea rax, [0x1400341ec]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x50], 0x1802
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x14002d77c
movzx ecx, byte [rbp + 0x110]
lea rax, [rbp]
mov qword [rsp + 0x358], rdi
mov qword [rsp + 0x360], r14
mov qword [rsp + 0x368], r15
test cl, cl
je 0x14002d68d
lea rdx, [rbp + 0x110]
lea r8, [rbp]
sub rdx, r8
nop
mov byte [rax], cl
inc rax
movzx ecx, byte [rdx + rax]
test cl, cl
jne 0x14002d680
mov rcx, rsi
mov byte [rax], 0
call fcn.14002d0d0
mov rcx, qword [rsi + 0x118]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r15, qword [rsi + 0x118]
lea rcx, [rbp]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r14d, eax
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
test rax, rax
je 0x14002d70b
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14002d160
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r15, qword [rsp + 0x368]
lea rax, [rbp]
mov r14, qword [rsp + 0x360]
mov rdi, qword [rsp + 0x358]
nop
inc rax
cmp byte [rax], 0
jne 0x14002d740
nop dword [rax + rax]
mov rcx, rax
dec rax
cmp byte [rax], 0x5c
jne 0x14002d750
movzx eax, byte [rcx]
test al, al
je 0x14002d772
mov byte [rbx], al
lea rcx, [rcx + 1]
movzx eax, byte [rcx]
inc rbx
test al, al
jne 0x14002d762
mov byte [rbx], 0
mov eax, 1
jmp 0x14002d77e
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14002e9c0
add rsp, 0x330
pop rsi
pop rbx
pop rbp
ret