Function at 0x1801b6fc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
lea rcx, [0x1801b94f8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x1801b6ff6
mov rdx, rax
call fcn.1801b5bf0
mov rcx, qword [0x1801bc048]
test rcx, rcx
je 0x1801b7092
mov rdx, qword [0x1801bc050]
lea r8, [0x1801bc038]
mov r9, qword [0x1801bc038]
cmp rdx, 0x10
mov rax, r8
cmovae rax, r9
cmp byte [rcx + rax - 1], 0x5c
je 0x1801b7092
cmp rdx, 0x10
mov rax, r8
cmovae rax, r9
cmp byte [rcx + rax - 1], 0x2f
je 0x1801b7092
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1801b7075
cmp rdx, 0x10
lea rax, [rcx + 1]
mov qword [0x1801bc048], rax
cmovae r8, r9
mov word [r8 + rcx], 0x5c
jmp 0x1801b7092
lea r9, [0x1801b9504]
mov qword [rsp + 0x20], 1
mov edx, 1
mov rcx, r8
call fcn.1801b6140
call fcn.1801b7630
xor r14d, r14d
mov qword [rsp + 0x48], 7
lea r9, str.JavaObjectReflectB.dll
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], r14
lea edx, [r14 + 0x16]
call fcn.1801b5e50
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rsp + 0x70]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x208
lea rax, [rsp + 0x70]
cmp word [rax], r14w
je 0x1801b7106
add rax, 2
sub rcx, 1
jne 0x1801b70f6
mov eax, 0x208
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x1801b716e
mov r8d, 0x208
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x1801b715f
lea r9, [0x1801b95b0]
mov eax, 0x7ffffffe
sub r9, rcx
nop word [rax + rax]
test rax, rax
je 0x1801b715f
movzx edx, word [r9 + rcx]
test dx, dx
je 0x1801b715f
mov word [rcx], dx
dec rax
add rcx, 2
sub r8, 1
jne 0x1801b7140
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
cmp qword [rsp + 0x48], 8
lea r8, [rsp + 0x30]
mov edx, 0x208
mov qword [rsp + 0x490], rsi
cmovae r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1801b4b60
mov r10, qword [rsp + 0x48]
lea rdi, [rsp + 0x30]
mov rax, qword [rsp + 0x40]
cmp r10, 8
cmovae rdi, qword [rsp + 0x30]
cmp rax, 4
jb 0x1801b72f8
lea r11, [rax - 3]
mov rcx, rdi
lea r11, [rdi + r11*2]
lea rsi, str..dll
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1801b72f8
nop
cmp word [rcx], 0x2e
je 0x1801b71f5
add rcx, 2
sub rax, 1
jne 0x1801b71e0
jmp 0x1801b72f8
test rcx, rcx
je 0x1801b72f8
mov r9, rcx
mov r8d, 4
sub r9, rsi
mov rdx, rsi
nop dword [rax]
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x1801b7282
add rdx, 2
sub r8, 1
jne 0x1801b7210
sub rcx, rdi
sar rcx, 1
cmp rcx, rbx
je 0x1801b72f8
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1801b7250
lea rcx, [rsp + 0x50]
cmp rbx, 7
ja 0x1801b728b
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x70]
add rbx, rbx
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x50], r14w
jmp 0x1801b7298
add rcx, 2
jmp 0x1801b71d0
lea r9, [rsp + 0x70]
mov rdx, rbx
call fcn.1801b5e50
cmp qword [rsp + 0x68], 8
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
call fcn.1801b7360
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1801b72f3
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801b72ee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801b72ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801b66e4
mov r10, qword [rsp + 0x48]
cmp r10, 8
jb 0x1801b7338
mov rcx, qword [rsp + 0x30]
lea rdx, [r10*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801b7333
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801b7333
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801b66e4
mov rsi, qword [rsp + 0x490]
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret