Function at 0x140002260
Capabilities:
Create directory
Create process on windows
Delete directory
Enumerate gui resources
Enumerate processes
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
lea rbp, [r11 - 0x6f8]
sub rsp, 0x7f0
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov qword [r11 + 8], rsi
lea rdx, [rbp + 0x2b0]
mov ecx, 0x104
mov qword [r11 + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.140001f20
mov r9, rax
lea r8, [rbp + 0x2b0]
lea rdx, str._shi_014_s
lea rcx, [rbp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov dword [rbp + 0x70], 0x104
xor sil, sil
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x130
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002377
nop word [rax + rax]
lea rdx, str.wegame.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002365
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002365
lea r9, [rbp + 0x70]
xor edx, edx
lea r8, [rbp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
mov rcx, rbx
setne sil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002310
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x808]
test sil, sil
mov rsi, qword [rsp + 0x800]
je 0x140002539
call fcn.140001f20
mov r9, rax
lea r8, [rbp + 0x90]
lea rdx, str._s_s.lnk
lea rcx, [rbp + 0x1a0]
call fcn.1400055d0
mov eax, dword [0x14003c6b0]
xor ebx, ebx
movsd xmm0, qword [str._disablesp_1]
xor ecx, ecx
mov dword [rbp + 0x80], eax
movzx eax, byte [0x14003c6b4]
mov byte [rbp + 0x84], al
movsd qword [rbp + 0x78], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
xor edx, edx
lea r9, [0x14002e540]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 1]
lea rcx, [0x14002e560]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400024e1
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x3c0]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x14002e550]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jns 0x14000246c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400024e1
xor edx, edx
lea rcx, [rbp + 0x4d0]
mov r8d, 0x208
call fcn.14000bb10
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x4d0]
xor ecx, ecx
lea r8, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp + 0x4d0]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x28], ebx
lea r8, [rbp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x14000252d
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, [0x1400021d0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x1a0]
call fcn.14000fc44
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.1400093c0
mov rbx, qword [rsp + 0x810]
add rsp, 0x7f0
pop rbp
ret