Function at 0x180040300
Capabilities:
Download url
Query environment variable
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1801bc5d0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov qword [rcx + 0x40], r15
mov rax, qword [0x1801cef10]
mov rcx, qword [rax + 0xa0]
mov rcx, qword [rcx]
mov qword [rdi + 0x48], rcx
test rcx, rcx
je 0x180040364
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov qword [rdi + 0x50], r15
mov qword [rsp + 0x38], r15
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x18019d280]
call qword [rax + 0x38]
test eax, eax
js 0x180040b83
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x18004039f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x40], rbx
mov rax, qword [rbx]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call qword [rax + 0x140]
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800403d0
call fcn.18013830c
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rbx
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.18002c7f0
nop
lea rcx, [rsp + 0x58]
call fcn.180038dd0
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.180038f50
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x80], ecx
lea rax, [0x1801bde48]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800404c4
cmp eax, 1
je 0x1800404cc
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.180038f50
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x40]
test edx, edx
je 0x180040479
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x180040ba4
cmp ecx, 3
je 0x1800404ee
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.180138a18
shr rax, 0x20
test eax, eax
jne 0x180040bb6
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.18013856c
shr rax, 0x20
test eax, eax
jne 0x180040b6f
jmp 0x1800404ee
test ecx, ecx
jne 0x180040bca
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.18013856c
shr rax, 0x20
test eax, eax
jne 0x180040b5b
call fcn.18013830c
lea rcx, str.imgui.ini
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], 9
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.18002c7f0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.1800396a0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x180040568
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040563
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
xor ecx, ecx
call fcn.18007c920
mov rsi, rax
mov edx, dword [0x1801ceef4]
mov rcx, qword gs:[0x58]
mov eax, 0x18
mov rdx, qword [rcx + rdx*8]
lea rbx, [0x1801d08b0]
mov ecx, dword [rax + rdx]
cmp dword [0x1801d08ac], ecx
jle 0x180040618
lea rcx, [0x1801d08ac]
call fcn.180139430
cmp dword [0x1801d08ac], 0xffffffff
jne 0x180040618
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
lea r9, [rdx + rax*2]
lea rax, [rsp + 0x58]
cmovae rax, qword [rsp + 0x58]
cmp rax, r9
je 0x1800405f2
mov edx, 0x5c
cmp word [rax], 0x2f
jne 0x1800405e9
mov word [rax], dx
add rax, 2
cmp rax, r9
jne 0x1800405e0
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180041000
lea rcx, [0x1801429b0]
call fcn.180139288
nop
lea rcx, [0x1801d08ac]
call fcn.1801393d0
cmp qword [0x1801d08c8], 0x10
cmovae rbx, qword [0x1801d08b0]
mov qword [rsi + 0x20], rbx
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rdi + 0x40]
call fcn.18010a990
mov rcx, qword [0x1801cef10]
mov rcx, qword [rcx + 0x20]
call fcn.18010d110
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0xe
mov qword [rbp - 0x68], 0xf
movsd xmm0, qword [str.TitleFont.ttf]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [0x18019d170]
mov dword [rbp - 0x78], eax
movzx eax, word [0x18019d174]
mov word [rbp - 0x74], ax
mov byte [rbp - 0x72], 0
lea rcx, [rbp - 0x60]
call fcn.18002ab00
nop
lea r9, [rbp - 0x80]
mov r8, rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp]
call fcn.180030ca0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1800406e3
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800406de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800406de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180040732
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004072d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004072d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
lea r8, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae r8, qword [rbp]
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.https:__cdn.discordapp.com_attachments_1149369146191118367_1155536584473583687_FontAwesome.ttf
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea rcx, [rbp + 0x20]
call fcn.1800f3a60
mov byte [rbp + 0x2c], 0
mov eax, dword [str.Rubik]
mov dword [rbp + 0x76], eax
movzx eax, word [0x18019d1e4]
mov word [rbp + 0x7a], ax
lea rcx, [rbp - 0x80]
call fcn.18002ab00
nop
mov r8d, 0xe
lea rdx, str.TitleFont.ttf
mov rcx, rax
call fcn.18000a720
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180040802
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800407fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800407fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
lea rcx, [rbp - 0x60]
call fcn.18002ab00
nop
mov r8d, 0x10
lea rdx, str.FontAwesome.ttf
mov rcx, rax
call fcn.18000a720
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18004089d
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040898
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040898
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
call fcn.18007ca90
mov qword [rsp + 0x28], r15
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
movss xmm3, dword [0x1801a0584]
mov r8d, 0x225bc
lea rdx, [0x18015d7b0]
mov rcx, qword [rax + 0x48]
call fcn.1800f4400
mov qword [rdi], rax
call fcn.18007ca90
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a0544]
lea rdx, str.C:WindowsFontsArial.ttf
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x10], rax
call fcn.18007ca90
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a0544]
lea rdx, str.C:WindowsFontsArialBD.ttf
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x18], rax
call fcn.18007ca90
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a054c]
lea rdx, str.C:WindowsFontsArialBD.ttf
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x38], rax
call fcn.18007ca90
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a05b4]
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x20], rax
call fcn.18007ca90
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a05b4]
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x30], rax
call fcn.18007ca90
mov qword [rsp + 0x20], r15
xor r9d, r9d
movss xmm2, dword [0x1801a0584]
lea rdx, str.C:WindowsFonts_bahnschrift.ttf
mov rcx, qword [rax + 0x48]
call fcn.1800f4220
mov qword [rdi + 0x28], rax
lea rcx, [0x1801cfa90]
call fcn.18002ac80
mov qword [0x1801cfa98], rdi
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180040a37
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040a32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040a32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180040a86
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040a81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040a81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x180040ad5
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ad0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040ad0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
movdqa xmm0, xmmword [0x1801a19e0]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x180040b2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040b26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040b26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180138eb0
nop
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180138e90
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [rsp + 0x58]
mov edx, eax
lea rcx, str.create_directory
call fcn.180031c60
int3
lea r8, [rsp + 0x58]
mov edx, eax
lea rcx, str.create_directory
call fcn.180031c60
nop
lea rdx, str.Failed_to_get_D3D_device.
lea rcx, [rbp - 0x80]
call fcn.18001a5e0
lea rdx, [0x1801b7640]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x58]
lea rcx, str.status
call fcn.180031c60
int3
lea r8, [rsp + 0x58]
mov edx, eax
lea rcx, str.remove
call fcn.180031c60
int3
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x80]
call fcn.180038e80
int3