Function at 0x140002860
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x140067fd8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x140002c4d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0xa0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400028e0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140005400
nop
mov r8d, 8
lea rdx, str.Discord
lea rcx, [rsp + 0x30]
call fcn.140004770
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x88], xmm1
mov qword [rax + 0x10], r12
mov ebx, 0xf
mov qword [rax + 0x18], rbx
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000298d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002988
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c7d
call fcn.140027ce0
movdqa xmm0, xmmword [0x14005fb90]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov r14, qword [rsp + 0x88]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xb
jb 0x140002c83
lea r15, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae r15, qword [rsp + 0x78]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rsi, [r14 + 0xb]
lea rdi, [rsp + 0x58]
cmp rsi, 0xf
jbe 0x140002a8d
mov rbx, rsi
or rbx, 0xf
cmp rbx, rcx
jbe 0x140002a4e
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140027ce8
test rax, rax
je 0x140002c94
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002a88
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140002a76
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002c88
jmp 0x140002a2f
test rcx, rcx
je 0x140002a85
call fcn.140027ce8
mov rdi, rax
jmp 0x140002a88
mov rdi, r12
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rbx
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.140029cd0
movsd xmm0, qword [str.update.zip]
movsd qword [rdi + r14], xmm0
movzx eax, word [0x14005fa88]
mov word [rdi + r14 + 8], ax
movzx eax, byte [0x14005fa8a]
mov byte [rdi + r14 + 0xa], al
mov byte [rdi + rsi], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x48
lea rdx, str.https:__github.com_discord_discord_open_source_files_15368919_update.zip
lea rcx, [rsp + 0x30]
call fcn.140005400
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140001dd0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002b46
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c8e
call fcn.140027ce0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.1400022c0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140002ba3
lea rdx, str.Failed_to_delete_update.zip
call fcn.140004fe0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140004e50
movzx edx, al
mov rcx, rbx
call fcn.1400059a0
mov rcx, rbx
call fcn.140004a30
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.DirectX_12_is_missing
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002bfd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c94
call fcn.140027ce0
movdqa xmm0, xmmword [0x14005fb90]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x90]
cmp rdx, 0x10
jb 0x140002c4d
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c9a
call fcn.140027ce0
nop
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140027cc0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.140030010
nop
call fcn.1400012e0
call fcn.140001240
nop
call fcn.140030010
nop
call fcn.140030010
nop
call fcn.140030010
int3