Function at 0x1400214d4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x4f8]
sub rsp, 0x5e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
and dword [rsp + 0x30], 0
call fcn.140021744
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
lea r14, [fcn.140017be0]
or esi, 0xffffffff
test eax, eax
je 0x14002158b
lea rdx, [rbp + 0x2c0]
lea rcx, [rsp + 0x70]
call fcn.140021704
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
cmp rax, r14
jne 0x140036e80
call fcn.140017be0
nop
lea rcx, [rsp + 0x70]
call fcn.140029258
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400215cb
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0xb0]
mov rcx, rbx
cmp rax, r14
jne 0x140036e8c
call fcn.140017be0
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140021744
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140021470
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
cmp rax, r14
jne 0x140036e98
call fcn.140017be0
nop
lea rcx, [rbp + 0x10]
call fcn.140029258
mov eax, dword [rbx + 0x14]
mov r8d, SafeArrayGetDim
cmp eax, r8d
jb 0x140021642
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002184c
lea rdx, str.SearchData
mov rcx, rax
call fcn.140012704
test eax, eax
je 0x1400216a3
mov eax, dword [rbx + 0x14]
mov r8d, 6
cmp eax, r8d
jb 0x140021671
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002184c
lea rdx, [0x1400954b0]
mov rcx, rax
call fcn.140012704
test eax, eax
je 0x140036ea4
mov rcx, rdi
call fcn.140029258
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov edx, dword [rbx + 0x14]
add edx, 0xfffffff5
mov rcx, rbx
call fcn.140017e50
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140021744
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140021470
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x20]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
cmp rax, r14
jne 0x1400216f9
call fcn.140017be0
nop
lea rcx, [rsp + 0x70]
call fcn.140029258
jmp 0x140021671
call qword [case.0x14000702c.0]
jmp 0x1400216ea
call qword [case.0x14000702c.0]
nop
jmp 0x140021581
call qword [case.0x14000702c.0]
nop
jmp 0x1400215cb
call qword [case.0x14000702c.0]
nop
jmp 0x140021608
mov edx, dword [rbx + 0x14]
add edx, 0xfffffffa
mov rcx, rbx
call fcn.140017e50
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140021744
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140021470
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
nop
jmp 0x1400216ea