Function at 0x1400571f0
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 - 0x110]
sub rsp, 0x210
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r15d, 1
mov qword [0x1400a1a30], rcx
mov edi, r15d
mov rsi, rcx
call fcn.14006702c
xor r14d, r14d
cmp dword [rax], r15d
jle 0x1400572f4
lea ebx, [r15 + 7]
lea r13d, [r15 + 0x2c]
lea r12, str.__help
nop dword [rax + rax]
call fcn.140067034
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r13w, word [rax]
jne 0x140057284
mov ecx, 0x68
cmp cx, word [rax + 2]
jne 0x140057284
cmp r14w, word [rax + 4]
je 0x1400572d5
call fcn.140067034
mov rcx, qword [rax]
mov rax, qword [rbx + rcx]
cmp r13w, word [rax]
jne 0x1400572a8
mov ecx, 0x3f
cmp cx, word [rax + 2]
jne 0x1400572a8
cmp r14w, word [rax + 4]
je 0x1400572d5
call fcn.140067034
mov rcx, qword [rax]
mov rax, r14
mov rdx, qword [rbx + rcx]
nop word [rax + rax]
movzx ecx, word [r12 + rax*2]
inc rax
cmp cx, word [rdx + rax*2 - 2]
jne 0x1400572e1
cmp rax, 7
jne 0x1400572c0
call fcn.140056430
xor eax, eax
jmp 0x140057857
inc edi
add rbx, 8
call fcn.14006702c
cmp edi, dword [rax]
jl 0x140057260
mov r8d, 0x103
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp - 0x10]
call fcn.14005ed00
mov r12, 0xffffffffffffffff
test rax, rax
je 0x140057368
lea edx, [r12 + 0x5d]
mov byte [rax], r14b
lea rcx, [rbp - 0x10]
call fcn.14005ed00
test rax, rax
je 0x140057368
mov byte [rax], r14b
mov r8, r12
lea rax, [rbp - 0x10]
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 0xf
inc r8
cmp byte [rax + r8], r14b
jne 0x140057350
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.140058f50
jmp 0x140057378
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r14
lea rcx, [rbp - 0x38]
call fcn.140050580
test al, al
je 0x14005781d
call section..text
mov rbx, rax
mov qword [0x1400a1a68], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, str.__type
call fcn.14005e788
test rax, rax
je 0x1400573c2
mov rcx, rsi
call fcn.140056fb0
mov r15d, eax
jmp 0x140057815
mov r8d, r15d
lea rdx, [rsp + 0x48]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140057428
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140057428
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], r14
xor r8d, r8d
lea rcx, [0x140085aa0]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140057428
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 0x14005748e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14005748e
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], r14
xor r8d, r8d
lea rcx, [0x140085a90]
mov edx, 0x4000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14005748e
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.140055a90
cmp eax, r12d
je 0x1400574a0
mov r15d, eax
jmp 0x140057815
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov eax, 2
mul rdi
cmovo rax, r12
mov rcx, rax
call fcn.14005cdf4
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rsi
mov qword [rbp - 0x58], r14
mov r8d, eax
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
call fcn.140058b80
mov rcx, rsi
call fcn.14005cdb0
cmp qword [rbp - 0x40], 8
lea rdx, [rbp - 0x58]
lea rcx, str.IDEA_INITIAL_DIRECTORY
cmovae rdx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140053570
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140057900
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400540b0
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x1400575be
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140057599
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x140057586
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005788d
call fcn.14005cdb0
xorps xmm0, xmm0
mov qword [rsp + 0x40], r14
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], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005760a
mov rdx, qword [rbp - 0x78]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400575f8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005788d
call fcn.14005cdb0
xorps xmm0, xmm0
mov qword [rbp - 0x78], r14
movdqu xmmword [rsp + 0x78], xmm0
lea rcx, [rbp - 0x38]
call fcn.140051bd0
call fcn.140052580
test al, al
je 0x140057776
call fcn.140052ce0
mov r13, rax
test rax, rax
je 0x140057776
mov qword [rsp + 0x28], r14
lea r8, [0x1400548b0]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, qword [rsp + 0x30]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x38]
mov qword [0x1400a1a70], rax
mov qword [rsp + 0x70], r14
movdqu xmmword [rsp + 0x60], xmm0
cmp r12, rsi
je 0x140057711
mov r14, rsi
movabs rax, 0x1fffffffffffffff
sub r14, r12
sar r14, 3
cmp r14, rax
ja 0x140057887
lea r14, [r14*8]
cmp r14, 0x1000
jb 0x1400576ce
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140057887
call fcn.14005cdb8
test rax, rax
je 0x140057893
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400576e2
test r14, r14
je 0x1400576e0
mov rcx, r14
call fcn.14005cdb8
mov rdi, rax
jmp 0x1400576e2
xor edi, edi
lea rax, [rdi + r14]
mov qword [rsp + 0x60], rdi
sub rsi, r12
mov qword [rsp + 0x70], rax
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.14005f230
sar rsi, 3
xor r14d, r14d
lea rax, [rdi + rsi*8]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1400541d0
test al, al
je 0x140057776
mov rcx, qword [0x1400a1a38]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x1400a1a78]
mov byte [0x1400a1a58], r15b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400a1a70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400a1a78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400a1a60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [0x1400a1a48]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400577c4
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400577b1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057899
call fcn.14005cdb0
xorps xmm0, xmm0
mov qword [rsp + 0x40], r14
movdqu xmmword [rsp + 0x30], xmm0
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140057804
mov rcx, qword [rbp - 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400577ff
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057899
call fcn.14005cdb0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r14w
mov rcx, rbx
call fcn.140001045
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140057854
mov rcx, qword [rbp - 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005784f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057899
call fcn.14005cdb0
mov eax, r15d
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14005cd90
lea r11, [rsp + 0x210]
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.14004e630
int3
call fcn.1400674bc
int3
call fcn.1400674bc
int3
call fcn.1400674bc
int3