Function at 0x1800405f0
Capabilities:
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x240
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800a43c0]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov r8d, 8
lea rdx, str.MH_BAse_
lea r14, [0x1800bf1e8]
mov rcx, r14
call fcn.180009060
mov rsi, qword [0x1800bf1f8]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rsi
cmp rax, 4
jb 0x180041052
cmp qword [0x1800bf200], 0xf
cmova r14, qword [0x1800bf1e8]
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
lea r15, [rsi + 4]
mov ebx, 0xf
lea rdi, [rbp + 0x60]
cmp r15, rbx
jbe 0x180040713
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1800406d5
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180074cf8
test rax, rax
je 0x1800408d8
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18004070f
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1800406ef
mov rdi, r12
jmp 0x18004070f
cmp rcx, 0x1000
jb 0x180040707
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004104c
jmp 0x1800406b6
call fcn.180074cf8
mov rdi, rax
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], rbx
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + rsi], 0x6474792e
mov byte [rdi + r15], r12b
mov rdx, qword [0x1800bf240]
cmp rdx, 0xf
jbe 0x180040775
mov rcx, qword [0x1800bf228]
inc rdx
cmp rdx, 0x1000
jb 0x180040770
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800408d8
mov rcx, r8
call fcn.180074cf0
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [0x1800bf228], xmm0
movups xmm1, xmmword [rbp + 0x70]
movups xmmword [0x1800bf238], xmm1
mov r8d, 0xe
lea rdx, str.MH_Base_TxName
lea rcx, [0x1800bf208]
call fcn.180009060
lea rcx, [rbp + 0xc0]
call fcn.180008560
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x1800407bd
mov rbx, qword [rax]
lea rax, [0x180086808]
mov qword [rsp + 0x40], rax
lea rax, [0x180081878]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 3
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x58]
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 qword [rsp + 0x58], rax
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r12
mov rax, qword [0x1800d8ca8]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18003e390
test rax, rax
jne 0x180040899
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x1800408e4
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800408df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800408df
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.180074cf0
movdqa xmm6, xmmword [0x18008e7c0]
movdqu xmmword [rbp + 0xd0], xmm6
mov byte [rbp + 0xc0], 0
lea rcx, [rbp + 0xe0]
call fcn.180008560
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x180040914
mov rcx, qword [rax]
mov qword [rbp + 0x80], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x180040925
mov qword [rbp + 0x88], rax
call fcn.180074728
movaps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x80], xmm0
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rbp + 0x60]
call fcn.18003ba20
nop
lea rcx, [rbp + 0x60]
call fcn.18003c940
movzx edi, al
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x1800409ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800409a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800409a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqa xmm0, xmmword [0x18008e7a0]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x180040a01
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800409fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800409fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
test dil, dil
jne 0x180040b22
lea rcx, [rbp + 0xe0]
call fcn.180008560
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180040a21
mov rax, qword [rax]
mov qword [rbp + 0x80], rax
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180040a30
mov qword [rbp + 0x88], rbx
call fcn.180074728
movaps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x80], xmm0
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rbp + 0x60]
call fcn.18003ba20
nop
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rcx, qword [rbp + 0x60]
call fcn.180074864
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18004103e
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x180040acc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ac7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040ac7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqa xmm0, xmmword [0x18008e7a0]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r12w
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x180040b22
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040b1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040b1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
movdqa xmm1, xmmword [0x18008e7d0]
movdqu xmmword [rbp + 0x70], xmm1
mov word [rbp + 0x60], 0x5c
lea rcx, [rbp + 0xe0]
call fcn.180008560
nop
lea r9, [rbp + 0x60]
mov r8, rax
lea rcx, [rbp + 0xc0]
call fcn.18003f320
nop
lea rdi, [0x1800bf228]
mov rdx, rdi
cmp qword [0x1800bf240], 0xf
cmova rdx, qword [0x1800bf228]
mov r8, qword [0x1800bf238]
lea rcx, [rbp + 0xc0]
call fcn.180001f10
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x180040c07
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040c02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040c02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqu xmmword [rbp + 0xd0], xmm6
mov byte [rbp + 0xc0], 0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x180040c5a
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040c55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040c55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqu xmmword [rbp + 0xf0], xmm6
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x180040ca7
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ca2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040ca2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
lea r8, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova r8, qword [rbp + 0xa0]
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, str.https:__cdn.discordapp.com_attachments_970146645662638080_970146689778343986_MH_BAse_.ytd
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov rbx, qword [0x1800bf278]
lea rcx, [rbp + 0x80]
call fcn.180070a30
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [0x1800bf278]
lea rcx, [rbp + 0x100]
call fcn.180008560
nop
mov r8d, 1
lea rdx, [0x18007acc8]
mov rcx, rax
call fcn.180001f10
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
cmp qword [0x1800bf240], 0xf
cmova rdi, qword [0x1800bf228]
mov r8, qword [0x1800bf238]
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.180001f10
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.180070c10
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x180040dee
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040de9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040de9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqu xmmword [rbp + 0x70], xmm6
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x180040e3b
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040e36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040e36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqu xmmword [rbp + 0x90], xmm6
mov byte [rbp + 0x80], 0
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x180040e8e
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040e89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040e89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
mov dword [0x1800bf070], r12d
mov dword [0x1800bf080], r12d
movabs rax, 0x2513dfb0fb8400fe
mov qword [0x1800d8c88], rax
call fcn.18006cdd0
mov dword [0x1800bf080], r12d
movabs rax, 0xb87a37eeb7faa67d
mov qword [0x1800d8c88], rax
lea rax, str.STRING
mov qword [0x1800bf148], rax
mov dword [0x1800bf070], 1
call fcn.18006cdd0
mov dword [0x1800bf080], r12d
movabs rax, 0x6c188be134e074aa
mov qword [0x1800d8c88], rax
lea rax, str.sWelcome_to_Garth_Menu____F5_To_Open_Close
mov qword [0x1800bf148], rax
mov dword [0x1800bf070], 1
call fcn.18006cdd0
mov dword [0x1800bf080], r12d
movabs rax, 0x9d77056a530643f6
mov qword [0x1800d8c88], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x30], 0x2710
mov rax, qword [rsp + 0x30]
mov qword [0x1800bf148], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x30]
mov qword [0x1800bf150], rax
mov dword [0x1800bf070], 2
call fcn.18006cdd0
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x180040fba
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040fb5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040fb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180074cf0
movdqu xmmword [rbp + 0xb0], xmm6
mov byte [rbp + 0xa0], 0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x58]
call fcn.18003df50
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
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 + 0x120]
xor rcx, rsp
call fcn.180074cd0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
shr rdx, 0x20
lea r8, [rbp + 0x60]
call fcn.18003c870
nop
call fcn.1800017c0
int3
call fcn.180001860
int3