Function at 0x140008a40
Capabilities:
Accept command line arguments
Create thread
Get common file path
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140044080]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov esi, 1
mov qword [0x140046a30], rcx
mov edi, esi
call fcn.140015430
xor r15d, r15d
cmp dword [rax], esi
jle 0x140008b55
lea ebx, [rsi + 7]
lea r14, str.__help
nop dword [rax]
call fcn.140015438
mov rcx, qword [rax]
movzx eax, word [0x14003da10]
mov rdx, qword [rbx + rcx]
cmp ax, word [rdx]
jne 0x140008ad2
movzx eax, word [0x14003da12]
cmp ax, word [rdx + 2]
jne 0x140008ad2
movzx eax, word [0x14003da14]
cmp ax, word [rdx + 4]
je 0x140008b36
call fcn.140015438
mov rcx, qword [rax]
movzx eax, word [0x14003da18]
mov rdx, qword [rbx + rcx]
cmp ax, word [rdx]
jne 0x140008b04
movzx eax, word [0x14003da1a]
cmp ax, word [rdx + 2]
jne 0x140008b04
movzx eax, word [0x14003da1c]
cmp ax, word [rdx + 4]
je 0x140008b36
call fcn.140015438
mov rdx, r15
mov rcx, qword [rax]
mov r8, qword [rbx + rcx]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r14 + rdx*2]
inc rdx
cmp ax, word [r8 + rdx*2 - 2]
jne 0x140008b42
cmp rdx, 7
jne 0x140008b20
call fcn.140008080
xor eax, eax
jmp 0x140009033
inc edi
add rbx, 8
call fcn.140015430
cmp edi, dword [rax]
jl 0x140008aa0
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008bbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140008bbb
lea r9, [rsp + 0x68]
mov qword [rsp + 0x68], r15
xor r8d, r8d
lea rcx, [0x14002c460]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140008bbb
mov rdx, qword [rsp + 0x68]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, esi
lea rdx, [rsp + 0x64]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008c21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140008c21
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], r15
xor r8d, r8d
lea rcx, [0x14002c450]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140008c21
mov rdx, qword [rsp + 0x70]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.140007580
cmp eax, 0xffffffff
jne 0x140009033
lea rcx, [rsp + 0x48]
call fcn.140009080
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
sub rdx, r9
mov ecx, eax
sar rdx, 1
cmp rcx, rdx
jb 0x140008c8e
lea edx, [rax + 1]
lea rcx, [rsp + 0x48]
call fcn.14000b1a0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r9, qword [rsp + 0x48]
movdqa xmm0, xmmword [0x14003e4e0]
lea rcx, [rbp - 0x20]
mov r8d, eax
mov rdx, r9
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
call fcn.14000a330
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008cff
mov rdx, qword [rsp + 0x58]
mov rax, rcx
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x140008cec
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009065
call fcn.14000ec04
xorps xmm0, xmm0
mov qword [rsp + 0x58], r15
movdqu xmmword [rsp + 0x48], xmm0
cmp qword [rbp - 8], 8
lea rdx, [rbp - 0x20]
lea rcx, str.IDEA_INITIAL_DIRECTORY
cmovae rdx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005640
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140009150
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005f40
mov rbx, rax
lea rax, [rsp + 0x30]
cmp rax, rbx
je 0x140008dc8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008da3
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140008d90
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000906b
call fcn.14000ec04
xorps xmm0, xmm0
mov qword [rsp + 0x30], r15
movdqu xmmword [rsp + 0x38], xmm0
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140008e14
mov rdx, qword [rbp - 0x78]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140008e02
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000906b
call fcn.14000ec04
xorps xmm0, xmm0
mov qword [rbp - 0x78], r15
movdqu xmmword [rsp + 0x78], xmm0
mov r8d, 0x103
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp]
call fcn.14001058c
test rax, rax
je 0x140008e7f
mov edx, 0x5c
mov byte [rax], r15b
lea rcx, [rbp]
call fcn.14001058c
test rax, rax
je 0x140008e7f
movdqa xmm0, xmmword [0x14003e4f0]
mov r8, 0xffffffffffffffff
mov byte [rax], r15b
lea rax, [rbp]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r15b
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x140008e70
lea rdx, [rbp]
jmp 0x140008e9a
movdqa xmm0, xmmword [0x14003e4f0]
lea rdx, [0x14003d085]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r15b
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.14000a660
lea rcx, [rbp - 0x40]
call fcn.140002e70
test al, al
je 0x140008f70
lea rcx, [rbp - 0x40]
call fcn.1400042f0
call fcn.140004a70
test al, al
je 0x140008f70
call fcn.140004f30
mov rbx, rax
test rax, rax
je 0x140008f70
mov qword [rsp + 0x28], r15
lea r8, [0x140006690]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [rsp + 0x30]
mov qword [0x140046a68], rax
lea rcx, [rbp - 0x58]
call fcn.140009150
mov rdx, rax
mov rcx, rbx
call fcn.140006060
test al, al
je 0x140008f70
mov rcx, qword [0x140046a38]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x140046b78]
mov byte [0x140046a58], sil
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140046a68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140046b78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140046a60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x140046a48]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140008fab
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008fa6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000905f
call fcn.14000ec04
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008ff5
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140008fe2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000905f
call fcn.14000ec04
xorps xmm0, xmm0
mov qword [rsp + 0x40], r15
movdqu xmmword [rsp + 0x30], xmm0
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140009031
mov rcx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000902c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000905f
call fcn.14000ec04
mov eax, esi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14000ebe0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400158ec
int3
call fcn.1400158ec
int3
call fcn.1400158ec
int3