Function at 0x140036280
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 [0x1402adcf8]
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, [0x1402aebf0]
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x140036304
test byte [rcx + 0x6c], 1
je 0x140036304
cmp byte [rcx + 0x69], 5
jb 0x140036304
cmp qword [rdx + 0x18], 8
jb 0x1400362ec
mov r9, qword [rdx]
jmp 0x1400362ef
mov r9, rbx
mov edx, 0xa
lea r8, [0x140258d18]
mov rcx, qword [rcx + 0x60]
call fcn.14002c9a0
cmp qword [rbx + 0x18], 8
jb 0x140036310
mov rcx, qword [rbx]
jmp 0x140036313
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 0x140036379
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400359c0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x60]
call fcn.140039ab0
nop
mov rcx, rax
call fcn.140005d70
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140001fe0
lea rdx, [0x1402a6d88]
lea rcx, [rsp + 0xa8]
call fcn.1401ad3a8
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.140038400
nop
cmp qword [rbx + 0x18], 8
jb 0x1400363b5
mov rcx, qword [rbx]
jmp 0x1400363b8
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 0x140036422
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400359c0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x80]
call fcn.140039ab0
nop
mov rcx, rax
call fcn.140005d70
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001fe0
lea rdx, [0x1402a6d88]
lea rcx, [rsp + 0x40]
call fcn.1401ad3a8
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 0x140036435
mov rdx, rdi
mov rcx, rsi
call fcn.140009360
mov rcx, qword [0x1402aebf0]
cmp rcx, r14
je 0x14003649c
test byte [rcx + 0x6c], 1
je 0x14003649c
cmp byte [rcx + 0x69], 5
jb 0x14003649c
cmp qword [rsi + 0x18], 8
jb 0x14003646f
mov rax, qword [rsi]
jmp 0x140036472
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x14003647e
mov r9, qword [rbx]
jmp 0x140036481
mov r9, rbx
mov edx, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
lea r8, [0x140258d18]
mov rcx, qword [rcx + 0x60]
call fcn.1400361c0
nop
test rdi, rdi
je 0x1400364c0
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 0x1400364d8
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.1401a8cb0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret