Function at 0x180004200
Capabilities:
Copy file
Delete file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xaf8
mov rax, qword [0x180021e40]
xor rax, rsp
mov qword [rsp + 0xae0], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x30], 0
mov r8d, 0x104
lea rdx, [rsp + 0x6c0]
mov rcx, qword [0x180022818]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x104
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0xb08]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp qword [rsp + 0x58], 0
jne 0x1800042e6
lea rcx, [0x1800215e0]
call fcn.180007160
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
call fcn.180007260
cmp qword [rsp + 0x68], 0
jne 0x18000431e
lea rcx, [0x180021600]
call fcn.180007060
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call fcn.180007260
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x68]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180004345
cmp dword [rsp + 0x34], 0xb7
jne 0x180004525
lea rcx, [0x180021620]
call fcn.180007160
mov qword [rsp + 0x40], rax
lea rcx, [0x180021640]
call fcn.180007160
mov qword [rsp + 0x38], rax
lea rdx, [0x1800215c4]
lea rcx, [rsp + 0x90]
call fcn.18000b3b8
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call fcn.18000b3e4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
call fcn.18000b3b8
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x4b0]
call fcn.18000b3e4
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x4b0]
call fcn.18000b3b8
cmp dword [0x180022820], 0
je 0x1800043e1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
jmp 0x1800043ee
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.18000b3b8
mov rcx, qword [rsp + 0x38]
call fcn.180007260
mov rcx, qword [rsp + 0x40]
call fcn.180007260
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x180004525
lea rcx, [0x180021660]
call fcn.180007160
mov qword [rsp + 0x48], rax
cmp dword [0x180022820], 0
je 0x1800044fd
lea rcx, [0x180021670]
call fcn.180007160
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
lea r8, str.__ls___ls__ls
mov edx, 0x104
lea rcx, [rsp + 0x8d0]
call fcn.180001a40
mov rcx, qword [rsp + 0x70]
call fcn.180007260
lea rcx, [0x1800216a8]
call fcn.180007160
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x8d0]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb00]
call fcn.1800072b0
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x78]
call fcn.180007260
jmp 0x18000451b
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0xb00]
call fcn.1800072b0
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call fcn.180007260
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xae0]
xor rcx, rsp
call fcn.180007a70
add rsp, 0xaf8
ret