Function at 0x140007b50
Capabilities:
Copy file
Create directory
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r13d, r13d
mov byte [0x14003e0e8], 1
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140008121
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 8]
call fcn.14001f3c0
nop
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 7
cmova rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x18]
lea rsi, [rdx + rax*2]
lea rbx, [rbp + 8]
cmova rbx, qword [rbp + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movabs r14, 0x7fffffffffffffff
cmp rbx, rsi
jne 0x140007c17
mov eax, r13d
mov qword [rbp - 8], rax
mov ecx, 0xf
mov qword [rbp], rcx
mov byte [rbp - 0x18], al
jmp 0x140007d14
sub rsi, rbx
sar rsi, 1
mov qword [rbp - 8], r13
mov qword [rbp], 0xf
cmp rsi, r14
ja 0x14000815d
mov edi, 0xf
cmp rsi, rdi
jbe 0x140007cd0
mov rdi, rsi
or rdi, 0xf
cmp rdi, r14
jbe 0x140007c87
mov rdi, r14
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14002c368
mov rcx, rax
test rax, rax
je 0x1400080d1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140007cd4
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140007ca9
mov rax, r13
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140007cd4
cmp rcx, 0x1000
jb 0x140007cc1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008157
jmp 0x140007c5d
call fcn.14002c368
mov qword [rbp - 0x18], rax
mov qword [rbp], rdi
jmp 0x140007cd4
mov rax, qword [rbp - 0x18]
lea r8, [rbp - 0x18]
cmp rdi, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140007d03
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rbx, [rbx + 2]
sub rdx, 1
jne 0x140007cf0
mov qword [rbp - 8], rsi
mov byte [r8 + rsi], 0
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
sub r14, rax
cmp r14, 1
jb 0x140008151
lea r9, [rbp - 0x18]
cmp rcx, 0xf
cmova r9, qword [rbp - 0x18]
mov qword [rsp + 0x30], 1
lea rbx, [0x140030a60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x78]
call fcn.140022060
nop
lea rdx, str._77EpicOnlineServicesHelper
lea rcx, [rbp - 0x78]
call fcn.14001f510
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov byte [rax], 0
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14001fba0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140007e13
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007e0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007e0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c360
movdqa xmm0, xmmword [0x140037140]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140007e6c
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007e5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007e5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c360
movdqa xmm0, xmmword [0x140037140]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea rax, [rbp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140007ea3
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001d730
lea r14, [rbp - 0x38]
mov rsi, qword [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r14, rsi
lea r12, [rsp + 0x68]
mov r15, qword [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r12, r15
mov rdi, qword [rbp - 0x28]
mov rax, qword [rsp + 0x78]
cmp rdi, rax
ja 0x140007f53
sub rax, rdi
test rdi, rdi
jne 0x140007efa
mov rbx, r13
jmp 0x140007f5a
lea r13, [r12 + rax]
movsx edx, byte [r14]
lea r8, [r13 + 1]
sub r8, r12
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140007f50
nop dword [rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140007f90
inc rbx
lea r8, [r13 + 1]
sub r8, rbx
movsx edx, byte [r14]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140007f20
xor r13d, r13d
mov rbx, 0xffffffffffffffff
mov rax, qword [rbp - 0x80]
cmp rax, 0xf
jbe 0x140007fa4
lea rdx, [rax + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140007f98
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007f98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, r12
xor r13d, r13d
jmp 0x140007f5a
mov rcx, r15
call fcn.14002c360
mov rsi, qword [rbp - 0x38]
cmp rbx, 0xffffffffffffffff
jne 0x140008051
lea rcx, [rbp - 0x38]
call fcn.14001f500
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._77EpicOnlineClientPackager.exe
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140020370
mov rcx, rax
call fcn.14001f500
mov rdx, rax
xor r8d, r8d
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rbp - 0x58]
call fcn.14001f5a0
lea r8, str._77EpicOnlineClientPackager.exe
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140020370
mov rcx, rax
call fcn.14001f500
mov r8, rax
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp - 0x58]
call fcn.14001f5a0
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rax, qword [rbp - 0x20]
cmp rax, 0xf
jbe 0x14000808f
lea rdx, [rax + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140008087
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008087
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14002c360
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x1400080de
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400080d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400080d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c360
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 7
jbe 0x140008121
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000811c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000811c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c360
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14002c340
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140004440
nop
call fcn.1400043a0
int3
call fcn.140004440
int3