Function at 0x140004c00
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
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x14006cfd8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor r12d, r12d
lea rax, [rsp + 0xb0]
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 0x140005082
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0xb0]
mov r13, 0xffffffffffffffff
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140004c81
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140008150
nop
mov r8d, 8
lea rdx, str.Discord
lea rcx, [rsp + 0x30]
call fcn.140006f90
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x80], xmm1
mov qword [rax + 0x10], r12
mov esi, 0xf
mov qword [rax + 0x18], rsi
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004d2e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050d8
call fcn.14002b520
movdqa xmm0, xmmword [0x140063d70]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdi, qword [rsp + 0x80]
lea rbx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rbx, qword [rsp + 0x70]
call fcn.14002a050
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rdi
lea r8, [rsp + 0x90]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400021b0
nop
lea rcx, [rsp + 0x50]
call fcn.140002bb0
movzx ebx, al
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140004dd6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050de
call fcn.14002b520
test bl, bl
je 0x140005040
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov r14, qword [rsp + 0x80]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xb
jb 0x1400050e4
lea r15, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae r15, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
lea rdi, [r14 + 0xb]
lea rbx, [rsp + 0x90]
cmp rdi, 0xf
jbe 0x140004ed0
mov rsi, rdi
or rsi, 0xf
cmp rsi, rcx
jbe 0x140004e6a
mov rsi, rcx
jmp 0x140004e76
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
mov rcx, rsi
add rcx, 1
cmovb rcx, r13
cmp rcx, 0x1000
jb 0x140004eb6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400050e9
mov rcx, rax
call fcn.14002b528
test rax, rax
je 0x1400050f5
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140004ec8
test rcx, rcx
je 0x140004ec5
call fcn.14002b528
mov rbx, rax
jmp 0x140004ec8
mov rbx, r12
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rsi
mov r8, r14
mov rdx, r15
mov rcx, rbx
call fcn.14002d500
movsd xmm0, qword [str.update.zip]
movsd qword [rbx + r14], xmm0
movzx eax, word [0x140063bc0]
mov word [rbx + r14 + 8], ax
movzx eax, byte [0x140063bc2]
mov byte [rbx + r14 + 0xa], al
mov byte [rbx + rdi], 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.140008150
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140002e90
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004f92
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050ef
call fcn.14002b520
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.1400031e0
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140004ffc
lea rdx, str.Failed_to_delete_update.zip
call fcn.140007a40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140007760
movzx edx, al
mov rcx, rbx
call fcn.140008920
mov rcx, rbx
call fcn.140007310
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005040
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000503a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050f5
call fcn.14002b520
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x140005087
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000507b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400050fb
call fcn.14002b520
jmp 0x140005087
call fcn.1400044b0
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
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14002b500
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.140033840
nop
call fcn.140033840
int3
call fcn.1400012e0
call fcn.140001240
nop
call fcn.140033840
nop
call fcn.140033840
nop
call fcn.140033840
int3