Function at 0x180016530
Capabilities:
Create thread
Move file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rbp
push r12
push r14
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
lea rcx, str.BEService_x64.exe
mov r14, r9
mov r12, r8
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.BroCrashReporter.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.uninstaller.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.BEService_x64.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.TslGame_UC.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.TslGame_ZK.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.ucldr_battlegrounds_gl.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.TslGame_BE.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.zksvc.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.ExecPubg.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.BEService.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180016c9e
lea rcx, str.TslGame.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180016c91
cmp dword [r12 + 0x28], 1
mov qword [rsp + 0x5f0], rbx
mov qword [rsp + 0x5a8], r13
jle 0x180016713
movups xmm0, xmmword [r14]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [r14 + 0x10]
movaps xmmword [0x180050f20], xmm0
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [0x180050f30], xmm1
movups xmm1, xmmword [r14 + 0x30]
movaps xmmword [0x180050f40], xmm0
movups xmm0, xmmword [r14 + 0x40]
movaps xmmword [0x180050f50], xmm1
movups xmm1, xmmword [r14 + 0x50]
movaps xmmword [0x180050f60], xmm0
movups xmm0, xmmword [r14 + 0x60]
movaps xmmword [0x180050f70], xmm1
movsd xmm1, qword [r14 + 0x70]
movaps xmmword [0x180050f80], xmm0
movsd qword [0x180050f90], xmm1
call fcn.180014330
mov r9d, dword [rsp + 0x40]
xor ebx, ebx
mov r8d, dword [r12 + 0x30]
mov r13, rax
mov edx, ebx
test r9d, r9d
jle 0x180016713
lea rcx, [rax + 0x24]
nop dword [rax]
cmp dword [rcx], r8d
je 0x18001671d
inc edx
add rcx, 0x274
cmp edx, r9d
jl 0x180016700
mov eax, 0x277a
jmp 0x180016c81
movsxd rax, edx
mov r8d, 4
imul rcx, rax, 0x274
lea rax, [rbp + 0x220]
add rcx, r13
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub r8, 1
jne 0x180016740
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x70], ecx
cmp edx, r9d
jge 0x180016713
lea r9, [rsp + 0x68]
mov dword [rsp + 0x44], 0x104
lea r8, [rsp + 0x44]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x234]
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x180016713
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180016713
mov qword [rsp + 0x5b8], rsi
lea r8, [rbp + 0x10]
mov qword [rsp + 0x38], rbx
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov r9d, esi
mov qword [rsp + 0x5b0], rdi
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x5a0], r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ecx, [rax + 1]
movsxd rbx, ecx
mov rcx, rbx
call fcn.18003cf14
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r15, rax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea r8, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov r9d, esi
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
nop dword [rax]
inc rsi
cmp byte [r15 + rsi], 0
jne 0x1800168c0
mov r8, rsi
lea rcx, [rsp + 0x48]
mov rdx, r15
call fcn.180002170
mov rcx, r15
call fcn.18003cf0c
cmp qword [rsp + 0x60], 0xf
lea rbx, [rsp + 0x48]
lea rcx, str.kernelbase.dll
cmova rbx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryExA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov r8d, 8
add rax, 6
mov rcx, rbx
mov qword [0x180050f18], rax
call fcn.1800015e0
mov rdx, qword [rsp + 0x60]
mov r15, rax
cmp rdx, 0xf
jbe 0x18001696e
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016969
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016969
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cf0c
movdqa xmm0, xmmword [0x180043620]
lea rdx, [0x180043ab8]
mov rcx, r15
mov byte [rsp + 0x48], 0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [r14]
cmp dword [rbp + 0x248], 1
lea r8, [rbp + 0x220]
movups xmm1, xmmword [r14 + 0x10]
mov rbx, qword [rbp + 0x500]
lea r9, [rbp - 0x70]
mov rdx, qword [rbp + 0x4e8]
cmovne r8, r12
movzx ecx, word [rbp + 0x4e0]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [r14 + 0x20]
mov qword [rsp + 0x20], rbx
movaps xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [r14 + 0x30]
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [r14 + 0x40]
movaps xmmword [rbp - 0x40], xmm1
movups xmm1, xmmword [r14 + 0x50]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [r14 + 0x60]
movaps xmmword [rbp - 0x20], xmm1
movsd xmm1, qword [r14 + 0x70]
movaps xmmword [rbp - 0x10], xmm0
movsd qword [rbp], xmm1
call rax
movups xmm0, xmmword [rbx]
lea rcx, [0x180050fa0]
mov r8d, 0x2f
mov r14d, eax
lea rdi, [0x1800501f0]
movups xmmword [rcx], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, str.C:UsersPublicAccountPicturesD3DCompiler.dll
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx + 0x70]
sub rbx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rcx, rdi
call fcn.180014bc0
mov edx, 6
lea rcx, [rsp + 0x70]
call fcn.180015bc0
mov r9, rax
cmp qword [rax + 0x18], 0xf
mov rsi, qword [rax + 0x10]
jbe 0x180016ad1
mov r9, qword [rax]
mov rdx, qword [0x180050208]
mov rcx, qword [0x180050200]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x180016b1b
cmp rdx, 0xf
lea rax, [rcx + rsi]
mov rbx, rdi
mov qword [0x180050200], rax
cmova rbx, qword [0x1800501f0]
mov r8, rsi
add rbx, rcx
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x180016b2e
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rsi
mov rcx, rdi
call fcn.180012460
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x180016b6d
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016b68
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016b68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003cf0c
mov rdx, qword [0x180050208]
mov rcx, qword [0x180050200]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x180016baf
lea rax, [rcx + 4]
cmp rdx, 0xf
mov qword [0x180050200], rax
mov rax, rdi
cmova rax, qword [0x1800501f0]
mov dword [rax + rcx], 0x6c6c642e
mov byte [rax + rcx + 4], 0
jmp 0x180016bcf
lea r9, [0x180043af8]
mov qword [rsp + 0x20], 4
xor r8d, r8d
mov edx, 4
mov rcx, rdi
call fcn.180012460
cmp qword [0x180050208], 0xf
lea rbx, [0x180050210]
mov r8d, 0x2f
lea rdx, str.C:UsersPublicAccountPicturesD3DCompiler.dll
cmova rdi, qword [0x1800501f0]
mov rcx, rbx
mov qword [0x1800501c8], rdi
call fcn.180014bc0
cmp qword [0x180050228], 0xf
mov rdx, qword [0x1800501c8]
cmova rbx, qword [0x180050210]
mov rcx, rbx
mov qword [0x1800501d0], rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rcx, qword [0x1800501c8]
call fcn.180014e30
xor eax, eax
lea r8, [0x1800143b0]
mov qword [rsp + 0x28], rax
mov r9, r15
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x5b8]
mov eax, r14d
mov rdi, qword [rsp + 0x5b0]
mov r15, qword [rsp + 0x5a0]
mov rbx, qword [rsp + 0x5f0]
mov r13, qword [rsp + 0x5a8]
add rsp, 0x5c0
pop r14
pop r12
pop rbp
ret
xor eax, eax
add rsp, 0x5c0
pop r14
pop r12
pop rbp
ret