Function at 0x140036270
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [r11 - 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
lea r14, [0x14027fe70]
mov rcx, qword [0x14027fe70]
cmp rcx, r14
je 0x1400362f4
test byte [rcx + 0x6c], 1
je 0x1400362f4
cmp byte [rcx + 0x69], 5
jb 0x1400362f4
cmp qword [rdx + 0x18], 8
jb 0x1400362dc
mov r9, qword [rdx]
jmp 0x1400362df
mov r9, rbx
mov edx, 0xa
lea r8, [0x14022ae28]
mov rcx, qword [rcx + 0x60]
call fcn.14002c990
cmp qword [rbx + 0x18], 8
jb 0x140036300
mov rcx, qword [rbx]
jmp 0x140036303
mov rcx, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x140036369
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400359b0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x60]
call fcn.140039aa0
nop
mov rcx, rax
call fcn.140005d70
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140001fe0
lea rdx, [0x1402788b0]
lea rcx, [rsp + 0xa8]
call fcn.1401826f8
nop
xor eax, eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov rdx, rdi
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0xa8]
call fcn.1400383f0
nop
cmp qword [rbx + 0x18], 8
jb 0x1400363a5
mov rcx, qword [rbx]
jmp 0x1400363a8
mov rcx, rbx
mov r8d, edi
mov rdi, qword [rsp + 0xa8]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140036412
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400359b0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x80]
call fcn.140039aa0
nop
mov rcx, rax
call fcn.140005d70
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001fe0
lea rdx, [0x1402788b0]
lea rcx, [rsp + 0x40]
call fcn.1401826f8
nop
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140036425
mov rdx, rdi
mov rcx, rsi
call fcn.140009360
mov rcx, qword [0x14027fe70]
cmp rcx, r14
je 0x14003648c
test byte [rcx + 0x6c], 1
je 0x14003648c
cmp byte [rcx + 0x69], 5
jb 0x14003648c
cmp qword [rsi + 0x18], 8
jb 0x14003645f
mov rax, qword [rsi]
jmp 0x140036462
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x14003646e
mov r9, qword [rbx]
jmp 0x140036471
mov r9, rbx
mov edx, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
lea r8, [0x14022ae28]
mov rcx, qword [rcx + 0x60]
call fcn.1400361b0
nop
test rdi, rdi
je 0x1400364b0
mov r8, qword [rsp + 0xb8]
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0xa8]
call fcn.14000c430
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1400364c8
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14000c430
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rax, rsi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14017e000
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret