Function at 0x140002ce0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3b0
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
xor ebp, ebp
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140002f61
lea r8, [0x1400098b8]
lea edx, [rbp + 0x67]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140002f61
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140002f61
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002f61
lea rdx, str.output.dat
lea rcx, [rsp + 0x58]
call fcn.140004850
mov rcx, rax
lea rdx, [rsp + 0x190]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140002db0
mov r9, rax
lea r8, [rsp + 0x190]
call fcn.1400058b0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
mov rdx, qword [0x14000d100]
cmp rdx, 8
jb 0x140002e36
mov rcx, qword [0x14000d0e8]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002e27
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e84
mov rcx, r8
call fcn.1400077ac
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x14000d0e8], xmm0
movups xmmword [0x14000d0f8], xmm1
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140002e90
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400077ac
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x14000d0e8]
cmp qword [0x14000d100], 8
cmovae rdx, qword [0x14000d0e8]
lea rcx, [rsp + 0x80]
call fcn.140004db0
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x80], rax
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
cmp qword [rsp + 0x108], 0
je 0x140002f50
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x88]
call fcn.140004cf0
test rax, rax
jne 0x140002f50
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x80]
call fcn.140002fa0
xor eax, eax
jmp 0x140002f68
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140007430
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret