Function at 0x1400098d0
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140045020]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r15d, 1
mov qword [0x1400479c0], rcx
mov edi, r15d
call fcn.1400178e8
xor r12d, r12d
cmp dword [rax], r15d
jle 0x1400099d4
lea ebx, [r15 + 7]
lea r14d, [r15 + 0x2c]
lea r13d, [r15 + 0x67]
lea rsi, str.__help
nop dword [rax]
call fcn.1400178f0
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r14w, word [rax]
jne 0x140009960
cmp r13w, word [rax + 2]
jne 0x140009960
cmp r12w, word [rax + 4]
je 0x1400099b5
call fcn.1400178f0
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r14w, word [rax]
jne 0x140009984
mov ecx, 0x3f
cmp cx, word [rax + 2]
jne 0x140009984
cmp r12w, word [rax + 4]
je 0x1400099b5
call fcn.1400178f0
mov rdx, r12
mov rcx, qword [rax]
mov r8, qword [rbx + rcx]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rsi + rdx*2]
inc rdx
cmp ax, word [r8 + rdx*2 - 2]
jne 0x1400099c1
cmp rdx, 7
jne 0x1400099a0
call fcn.140008d60
xor eax, eax
jmp 0x140009fa4
inc edi
add rbx, 8
call fcn.1400178e8
cmp edi, dword [rax]
jl 0x140009940
mov r8d, r15d
lea rdx, [rsp + 0x48]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140009a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140009a3a
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], r12
xor r8d, r8d
lea rcx, [0x140030470]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140009a3a
mov rdx, qword [rsp + 0x50]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, r15d
lea rdx, [rsp + 0x4c]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140009aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140009aa0
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], r12
xor r8d, r8d
lea rcx, [0x140030480]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140009aa0
mov rdx, qword [rsp + 0x58]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.1400083c0
cmp eax, 0xffffffff
jne 0x140009fa4
mov ecx, 0x208
call fcn.14000ee58
xor edx, edx
mov qword [rsp + 0x60], rax
mov r8d, 0x208
mov rcx, rax
mov r14, rax
lea rdi, [rax + 0x208]
mov qword [rsp + 0x70], rdi
call fcn.140011770
mov rdx, r14
mov qword [rsp + 0x68], rdi
mov ecx, 0x104
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rbx, r14
cmp eax, 0x104
jb 0x140009b6f
inc eax
mov ebx, eax
cmp rbx, 0x104
jae 0x140009b0f
lea rsi, [r14 + rax*2]
jmp 0x140009b56
jbe 0x140009b5b
mov rax, rdi
sub rax, r14
sar rax, 1
cmp rbx, rax
jbe 0x140009b3d
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000d810
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
jmp 0x140009b5b
lea rbx, [rbx*2 - 0x208]
xor edx, edx
mov r8, rbx
mov rcx, rdi
call fcn.140011770
lea rsi, [rbx + rdi]
mov qword [rsp + 0x68], rsi
sub rsi, r14
mov rdx, r14
sar rsi, 1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rbx, r14
mov r8d, eax
lea rcx, [rbp - 0x20]
mov rdx, r14
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
call fcn.14000b210
test rbx, rbx
je 0x140009bda
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x140009bc1
mov rcx, qword [rbx - 8]
add rdi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140009fe6
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000ee50
xorps xmm0, xmm0
mov qword [rsp + 0x70], r12
movdqu xmmword [rsp + 0x60], 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.140006080
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.14000a050
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140006bc0
mov rbx, rax
lea rax, [rsp + 0x30]
cmp rax, rbx
je 0x140009ca2
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009c7d
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140009c6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fda
call fcn.14000ee50
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
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], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140009cec
mov rdx, qword [rbp - 0x60]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140009cdb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fda
call fcn.14000ee50
xorps xmm0, xmm0
mov qword [rbp - 0x70], r12
movdqu xmmword [rbp - 0x68], 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.140010e18
test rax, rax
je 0x140009d5d
mov edx, 0x5c
mov byte [rax], r12b
lea rcx, [rbp]
call fcn.140010e18
test rax, rax
je 0x140009d5d
mov byte [rax], r12b
mov r8, 0xffffffffffffffff
lea rax, [rbp]
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
inc r8
cmp byte [rax + r8], r12b
jne 0x140009d45
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.14000b550
jmp 0x140009d6d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], r12
lea rcx, [rbp - 0x40]
call fcn.140003130
test al, al
je 0x140009edc
lea rcx, [rbp - 0x40]
call fcn.1400047e0
call fcn.1400050a0
test al, al
je 0x140009edc
call fcn.140005800
mov r14, rax
test rax, rax
je 0x140009edc
mov qword [rsp + 0x28], r12
lea r8, [0x1400073c0]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, qword [rsp + 0x30]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x38]
mov qword [0x1400479f8], rax
mov qword [rbp - 0x78], r12
movdqu xmmword [rsp + 0x78], xmm0
cmp rsi, rdi
je 0x140009e77
mov rbx, rdi
movabs rax, 0x1fffffffffffffff
sub rbx, rsi
sar rbx, 3
cmp rbx, rax
ja 0x140009fd4
lea rbx, [rbx*8]
cmp rbx, 0x1000
jb 0x140009e44
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140009fd4
call fcn.14000ee58
mov rcx, rax
test rax, rax
je 0x140009fe0
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140009e56
test rbx, rbx
je 0x140009e53
mov rcx, rbx
call fcn.14000ee58
jmp 0x140009e56
mov rax, r12
sub rdi, rsi
mov qword [rsp + 0x78], rax
add rbx, rax
mov r8, rdi
mov rdx, rsi
mov qword [rbp - 0x78], rbx
mov rcx, rax
call fcn.140011020
mov qword [rbp - 0x80], rbx
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140006ce0
test al, al
je 0x140009edc
mov rcx, qword [0x1400479c8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x140047b08]
mov byte [0x1400479e8], r15b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400479f8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140047b08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400479f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [0x1400479d8]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140009f17
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f12
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fe6
call fcn.14000ee50
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009f65
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140009f52
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fe6
call fcn.14000ee50
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
movdqu xmmword [rsp + 0x38], xmm0
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140009fa1
mov rcx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f9c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fe6
call fcn.14000ee50
mov eax, r15d
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14000ee30
lea r11, [rsp + 0x220]
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.140001180
int3
call fcn.140017d80
int3
call fcn.140017d80
int3
call fcn.140017d80
int3