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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
lea edx, [r13 + 1]
xor ecx, ecx
lea r8d, [r13 + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000133c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_find_resource._Error:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003a70
mov rcx, rax
mov edx, ebx
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__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003c40]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov esi, 0xf
mov qword [rdi + 0x18], rsi
mov byte [rdi], r13b
jmp 0x140001794
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000135b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_load_resource._Error:
jmp 0x1400012f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], eax
lea rdx, [rbp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x70]
call fcn.1400032c0
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
lea r12, [rdx + rax*2]
lea r14, [rbp - 0x70]
cmova r14, qword [rbp - 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x8000000000000000
mov r8d, 0x16
mov qword [rsp + 0x60], r13
lea esi, [r8 - 7]
cmp r14, r12
jne 0x1400013fc
mov r15d, esi
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x50], 0
jmp 0x14000150e
mov rax, r12
sub rax, r14
sar rax, 1
mov r15, r13
mov rbx, rsi
mov qword [rsp + 0x68], rbx
cmp rax, rdx
ja 0x1400017d9
cmp rax, rbx
jbe 0x1400014b2
mov rbx, rax
or rbx, rsi
cmp rbx, rdx
jbe 0x140001466
mov rbx, rdx
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.140004128
mov rcx, rax
test rax, rax
je 0x140001741
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
movabs rdx, 0x7fffffffffffffff
mov r8d, 0x16
jmp 0x1400014a8
cmp rbx, r8
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001489
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400017cd
jmp 0x140001434
test rcx, rcx
je 0x1400014a5
call fcn.140004128
movabs rdx, 0x7fffffffffffffff
mov r8d, 0x16
jmp 0x1400014a8
mov rax, r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x50]
cmp rbx, rsi
cmova rcx, qword [rsp + 0x50]
movzx eax, byte [r14]
mov byte [r15 + rcx], al
mov r15, qword [rsp + 0x60]
inc r15
mov qword [rsp + 0x60], r15
add r14, 2
cmp r14, r12
je 0x1400014e5
mov rbx, qword [rsp + 0x68]
jmp 0x1400014b2
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], rsi
cmova rax, qword [rsp + 0x50]
mov byte [rax + r15], 0
mov r15, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
movabs rcx, 0x8000000000000000
mov rax, rdx
sub rax, r13
cmp rax, 0xd
jb 0x1400017c7
lea rax, [rsp + 0x50]
mov r14, qword [rsp + 0x50]
cmp r15, 0xf
cmova rax, r14
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea r12, [r13 + 0xd]
lea rbx, [rsp + 0x70]
cmp r12, 0xf
jbe 0x1400015ca
mov rsi, r12
or rsi, 0xf
cmp rsi, rdx
jbe 0x14000158b
mov rsi, rdx
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.140004128
test rax, rax
je 0x1400016f8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov rax, qword [rsp + 0x38]
jmp 0x1400015c5
cmp rsi, 0x16
cmovb rsi, r8
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1400015af
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400017d3
jmp 0x140001567
test rcx, rcx
je 0x1400015c3
call fcn.140004128
mov rbx, rax
mov rax, qword [rsp + 0x38]
jmp 0x1400015c5
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rsi
mov r8, r13
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.wrapperv2.exe]
movsd qword [rbx + r13], xmm0
mov eax, dword [0x1400065f0]
mov dword [rbx + r13 + 8], eax
movzx eax, byte [0x1400065f4]
mov byte [rbx + r13 + 0xc], al
mov byte [rbx + r12], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140003850
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x50]
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, [rbp - 0x48]
call fcn.140003790
test rax, rax
jne 0x140001698
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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]
xor eax, eax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1400067b0]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], al
lea rcx, [rbp - 0x50]
call fcn.1400017e0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140001704
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004120
movdqa xmm0, xmmword [0x1400067b0]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
cmp r15, 0xf
jbe 0x140001751
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001748
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001748
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140004120
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140001794
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000178f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000178f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004120
mov rax, rdi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140004100
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
nop
call fcn.140001110
nop
call fcn.1400011b0
int3