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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r15d, 1
mov qword [0x140095900], rcx
mov edi, r15d
mov rsi, rcx
call fcn.14005ca8c
xor r12d, r12d
cmp dword [rax], r15d
jle 0x14004cba4
lea ebx, [r15 + 7]
lea r13d, [r15 + 0x2c]
lea r14, str.__help
nop dword [rax + rax]
call fcn.14005ca94
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r13w, word [rax]
jne 0x14004cb34
mov ecx, 0x68
cmp cx, word [rax + 2]
jne 0x14004cb34
cmp r12w, word [rax + 4]
je 0x14004cb85
call fcn.14005ca94
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r13w, word [rax]
jne 0x14004cb58
mov ecx, 0x3f
cmp cx, word [rax + 2]
jne 0x14004cb58
cmp r12w, word [rax + 4]
je 0x14004cb85
call fcn.14005ca94
mov rcx, qword [rax]
mov rax, r12
mov rdx, qword [rbx + rcx]
nop word [rax + rax]
movzx ecx, word [r14 + rax*2]
inc rax
cmp cx, word [rdx + rax*2 - 2]
jne 0x14004cb91
cmp rax, 7
jne 0x14004cb70
call fcn.14004bce0
xor eax, eax
jmp 0x14004d2c5
inc edi
add rbx, 8
call fcn.14005ca8c
cmp edi, dword [rax]
jl 0x14004cb10
xor edx, edx
mov dword [rbp + 0x30], 0x11c
mov r8d, 0x100
mov qword [rbp + 0x3c], r12
lea rcx, [rbp + 0x44]
call fcn.1400548d0
xor eax, eax
mov word [rbp + 0x146], r12w
mov r8b, 3
mov dword [rbp + 0x148], eax
xor ecx, ecx
lea edx, [rax + 2]
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, r15d
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov edx, 0x23
mov dword [rbp + 0x34], 6
mov r8, rax
mov dword [rbp + 0x38], 2
lea rcx, [rbp + 0x30]
mov word [rbp + 0x144], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xor ecx, ecx
test eax, eax
jne 0x14004cc49
lea r9d, [rcx + 0x10]
lea r8, str.Startup_Error
lea rdx, str.The_IDE_cannot_run_on_this_OS_version._nPlease_use_Windows_10_1809_or_newer.
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14004d2c2
mov r8d, 0x103
lea rdx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x150]
call fcn.14005476c
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x14004cccb
lea edx, [rbx + 0x5d]
mov byte [rax], r12b
lea rcx, [rbp + 0x150]
call fcn.14005476c
test rax, rax
je 0x14004cccb
mov edi, 0xf
mov byte [rax], r12b
mov qword [rbp - 0x18], rdi
lea rax, [rbp + 0x150]
mov qword [rbp - 0x30], r12
mov r8, rbx
mov qword [rbp - 0x20], r12
nop
inc r8
cmp byte [rax + r8], r12b
jne 0x14004ccb0
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x30]
call fcn.14004e9d0
jmp 0x14004ccdc
mov edi, 0xf
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], r12
lea rcx, [rbp - 0x30]
call fcn.140045ed0
test al, al
je 0x14004d28b
call section..text
mov rbx, rax
mov qword [0x140095938], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, str.__type
call fcn.1400541f4
test rax, rax
je 0x14004cd26
mov rcx, rsi
call fcn.14004c860
mov r15d, eax
jmp 0x14004d283
mov eax, dword [0x140087c30]
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x10], r12
mov edx, 0x75
mov dword [rbp - 0x10], eax
mov byte [rbp - 0xc], r12b
mov qword [rbp + 8], rdi
mov qword [rbp], 4
call fcn.140044f80
mov rsi, qword [rbp - 0x10]
lea rdx, [rbp - 0x10]
cmp rdi, 0x10
mov rcx, rax
setae r14b
cmovae rdx, rsi
cmp qword [rax + 0x18], 0x10
jb 0x14004cd72
mov rcx, qword [rax]
mov r8, qword [rax + 0x10]
cmp r8, 4
jne 0x14004cd8b
call fcn.140055120
test eax, eax
jne 0x14004cd8b
movzx r13d, r15b
jmp 0x14004cd8e
xor r13b, r13b
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14004cdc9
mov rcx, qword [rbp + 0x10]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004cdc4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d2fb
call fcn.140052820
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], rdi
mov byte [rbp + 0x10], r12b
test r14b, r14b
je 0x14004ce0b
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14004ce03
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d2fb
mov rcx, rsi
call fcn.140052820
mov r8d, r15d
mov qword [rbp], r12
lea rdx, [rsp + 0x48]
mov qword [rbp + 8], rdi
lea rcx, str.APPDATA
mov byte [rbp - 0x10], r12b
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14004ce7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14004ce7d
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], r12
xor r8d, r8d
lea rcx, [0x140079868]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14004ce7d
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 0x14004cee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14004cee3
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], r12
xor r8d, r8d
lea rcx, [0x140079858]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14004cee3
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]
test r13b, r13b
je 0x14004cefa
call fcn.14004b340
cmp eax, 0xffffffff
je 0x14004cefa
mov r15d, eax
jmp 0x14004d283
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140052864
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rsi
mov qword [rbp - 0x50], r12
mov r8d, eax
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
call fcn.14004e600
mov rcx, rsi
call fcn.140052820
cmp qword [rbp - 0x38], 8
lea rdx, [rbp - 0x50]
lea rcx, str.IDEA_INITIAL_DIRECTORY
cmovae rdx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140048ec0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.14004d380
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140049a00
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14004d01e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004cff9
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14004cfe6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d301
call fcn.140052820
xorps xmm0, xmm0
mov qword [rsp + 0x40], r12
movdqu xmmword [rsp + 0x30], xmm0
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004d068
mov rdx, qword [rbp - 0x70]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14004d057
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d301
call fcn.140052820
xorps xmm0, xmm0
mov qword [rbp - 0x70], r12
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x30]
call fcn.140047520
call fcn.140047ed0
test al, al
je 0x14004d1df
call fcn.140048630
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14004d1df
test r13b, r13b
je 0x14004d0bb
mov qword [rsp + 0x28], r12
lea r8, [0x14004a200]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140095940], rax
mov rsi, qword [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x78], r12
mov r12, qword [rsp + 0x30]
movdqu xmmword [rsp + 0x68], xmm0
cmp r12, rsi
je 0x14004d173
mov r14, rsi
movabs rax, 0x1fffffffffffffff
sub r14, r12
sar r14, 3
cmp r14, rax
ja 0x14004d30d
lea r14, [r14*8]
cmp r14, 0x1000
jb 0x14004d133
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14004d30d
call fcn.140052828
test rax, rax
je 0x14004d307
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14004d147
test r14, r14
je 0x14004d145
mov rcx, r14
call fcn.140052828
mov rdi, rax
jmp 0x14004d147
xor edi, edi
lea rax, [r14 + rdi]
mov qword [rsp + 0x68], rdi
sub rsi, r12
mov qword [rsp + 0x78], rax
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140054a90
sar rsi, 3
lea rax, [rdi + rsi*8]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x68]
call fcn.140049b20
test al, al
je 0x14004d1df
mov rcx, qword [0x140095908]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x140095948]
mov byte [0x140095928], r15b
call qword [sym.imp.KERNEL32.dll_SetEvent]
test r13b, r13b
je 0x14004d1be
mov rcx, qword [0x140095940]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140095948]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140095930]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [0x140095918]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004d231
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14004d21a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d2f5
call fcn.140052820
xorps xmm0, xmm0
xor edi, edi
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
jmp 0x14004d233
xor edi, edi
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14004d273
mov rcx, qword [rbp - 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d26e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d2f5
call fcn.140052820
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], di
mov rcx, rbx
call fcn.14000104e
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14004d2c2
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d2bd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d2f5
call fcn.140052820
mov eax, r15d
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140052800
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14005cf1c
int3
call fcn.14005cf1c
int3
call fcn.14005cf1c
int3
call fcn.14005cf1c
int3
call fcn.140044130
int3