Function at 0x14003e480
Capabilities:
Execute command
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rdi, rdx
mov rsi, rcx
lea rdx, [rbp + 0xd0]
mov ecx, 0x104
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xorps xmm0, xmm0
lea rax, [rbp + 0xd0]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rax + r8], r14b
jne 0x14003e4d2
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.14003b710
mov r8d, 8
lea rdx, str.temp.buf
lea rcx, [rsp + 0x40]
call fcn.140043a90
mov qword [rbp - 0x70], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], r14b
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14003e570
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e56b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e56b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140046098
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 3
jb 0x14003e985
cmp qword [rdi + 0x18], 0x10
mov r9, rdi
jb 0x14003e598
mov r9, qword [rdi]
lea rax, [0x140053d24]
mov qword [rsp + 0x30], 3
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x60]
call fcn.1400445d0
cmp qword [rbp - 0x68], 0x10
lea rdx, [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x60]
cmovae rdx, qword [rbp - 0x80]
call fcn.140043a90
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], r14b
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14003e657
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e652
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e69c
call fcn.140046098
mov rdx, qword [rbp - 0x48]
movdqa xmm0, xmmword [0x140054e20]
mov byte [rsp + 0x60], r14b
movdqu xmmword [rsp + 0x70], xmm0
cmp rdx, 0x10
jb 0x14003e6a8
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e6a3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e6a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140046098
cmp qword [rbp - 0x68], 0x10
lea rax, [0x140048e18]
mov qword [rsp + 0x310], rbx
lea rcx, [rbp + 0x70]
lea rbx, [rbp - 0x80]
mov qword [rsp + 0x318], r15
cmovae rbx, qword [rbp - 0x80]
movaps xmmword [rsp + 0x2e0], xmm6
mov qword [rbp - 0x40], rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
mov rax, qword [rbp - 0x40]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r15
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], r8d
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [rbp + 0x4c], r14b
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
mov byte [rbp + 0x41], r14b
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov rax, qword [0x14005ef70]
lea rcx, [rbp - 0x30]
mov r8d, 1
mov qword [rbp + 0x44], rax
mov rdx, rbx
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x38], r14
call fcn.140003460
mov rbx, qword [rsp + 0x310]
test rax, rax
jne 0x14003e794
mov rax, qword [rbp - 0x40]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
lea rax, [rbp - 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rbp - 0x40]
xorps xmm0, xmm0
mov byte [rsp + 0x49], r14b
mov qword [rsp + 0x60], r14
mov word [rsp + 0x68], 1
movsxd rcx, dword [rax + 4]
movaps xmm6, xmmword [rsp + 0x60]
mov qword [rbp + rcx - 0x40], r15
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov rcx, qword [rbp + rcx + 8]
test rcx, rcx
mov qword [rsp + 0x40], rcx
sete byte [rsp + 0x48]
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
test rcx, rcx
je 0x14003e834
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14003e820
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x40]
mov byte [rsp + 0x48], 1
movaps xmm0, xmmword [rsp + 0x40]
jmp 0x14003e839
mov rax, r14
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
jmp 0x14003e839
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x14003e961
test rax, rax
je 0x14003e96a
lea r8, [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm6
lea rdx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov rcx, rsi
call fcn.1400449f0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], r15
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x30]
call fcn.140003030
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [rbp - 0x68]
movaps xmm6, xmmword [rsp + 0x2e0]
mov r15, qword [rsp + 0x318]
cmp rdx, 0x10
jb 0x14003e8f5
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e8f0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e97e
call fcn.140046098
mov rdx, qword [rdi + 0x18]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], r14b
cmp rdx, 0x10
jb 0x14003e93b
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14003e936
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003e97e
mov rcx, r8
call fcn.140046098
mov rax, rsi
mov qword [rdi + 0x10], r14
mov rsi, qword [rsp + 0x328]
mov qword [rdi + 0x18], recv
mov byte [rdi], r14b
add rsp, 0x2f0
pop r14
pop rdi
pop rbp
ret
test rax, rax
je 0x14003e850
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], recv
mov byte [rsi], r14b
jmp 0x14003e86e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001440
int3