Function at 0x14003c400
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 [0x1402b8d08]
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, [0x1402b9860]
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14003c484
test byte [rcx + 0x6c], 1
je 0x14003c484
cmp byte [rcx + 0x69], 5
jb 0x14003c484
cmp qword [rdx + 0x18], 8
jb 0x14003c46c
mov r9, qword [rdx]
jmp 0x14003c46f
mov r9, rbx
mov edx, 0xa
lea r8, [0x140261c58]
mov rcx, qword [rcx + 0x60]
call fcn.1400328a0
cmp qword [rbx + 0x18], 8
jb 0x14003c490
mov rcx, qword [rbx]
jmp 0x14003c493
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 0x14003c4f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14003bae0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x60]
call fcn.14003fac0
nop
mov rcx, rax
call fcn.140005250
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140002110
lea rdx, [0x1402b22b8]
lea rcx, [rsp + 0xa8]
call fcn.1401b6028
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.14003e610
nop
cmp qword [rbx + 0x18], 8
jb 0x14003c535
mov rcx, qword [rbx]
jmp 0x14003c538
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 0x14003c5a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.14003bae0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x80]
call fcn.14003fac0
nop
mov rcx, rax
call fcn.140005250
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002110
lea rdx, [0x1402b22b8]
lea rcx, [rsp + 0x40]
call fcn.1401b6028
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 0x14003c5b5
mov rdx, rdi
mov rcx, rsi
call fcn.140006bd0
mov rcx, qword [0x1402b9860]
cmp rcx, r14
je 0x14003c61c
test byte [rcx + 0x6c], 1
je 0x14003c61c
cmp byte [rcx + 0x69], 5
jb 0x14003c61c
cmp qword [rsi + 0x18], 8
jb 0x14003c5ef
mov rax, qword [rsi]
jmp 0x14003c5f2
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x14003c5fe
mov r9, qword [rbx]
jmp 0x14003c601
mov r9, rbx
mov edx, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
lea r8, [0x140261c58]
mov rcx, qword [rcx + 0x60]
call fcn.14003c340
nop
test rdi, rdi
je 0x14003c640
mov r8, qword [rsp + 0xb8]
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0xa8]
call fcn.140007b00
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14003c658
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140007b00
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.1401b1920
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret