Function at 0x14003c410
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 [0x14029fbf8]
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, str.P_a_
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14003c494
test byte [rcx + 0x6c], 1
je 0x14003c494
cmp byte [rcx + 0x69], 5
jb 0x14003c494
cmp qword [rdx + 0x18], 8
jb 0x14003c47c
mov r9, qword [rdx]
jmp 0x14003c47f
mov r9, rbx
mov edx, 0xa
lea r8, [0x140249698]
mov rcx, qword [rcx + 0x60]
call fcn.1400328b0
cmp qword [rbx + 0x18], 8
jb 0x14003c4a0
mov rcx, qword [rbx]
jmp 0x14003c4a3
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 0x14003c509
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14003baf0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x60]
call fcn.14003fad0
nop
mov rcx, rax
call fcn.140005250
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140002110
lea rdx, [0x140299348]
lea rcx, [rsp + 0xa8]
call fcn.14019e118
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.14003e620
nop
cmp qword [rbx + 0x18], 8
jb 0x14003c545
mov rcx, qword [rbx]
jmp 0x14003c548
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 0x14003c5b2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.14003baf0
nop
mov r8, rax
lea rdx, str.Exception_occurred_during_resolving_environment_variables_for_path._Error_code:
lea rcx, [rsp + 0x80]
call fcn.14003fad0
nop
mov rcx, rax
call fcn.140005250
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002110
lea rdx, [0x140299348]
lea rcx, [rsp + 0x40]
call fcn.14019e118
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 0x14003c5c5
mov rdx, rdi
mov rcx, rsi
call fcn.140006bd0
mov rcx, qword [str.P_a_]
cmp rcx, r14
je 0x14003c62c
test byte [rcx + 0x6c], 1
je 0x14003c62c
cmp byte [rcx + 0x69], 5
jb 0x14003c62c
cmp qword [rsi + 0x18], 8
jb 0x14003c5ff
mov rax, qword [rsi]
jmp 0x14003c602
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x14003c60e
mov r9, qword [rbx]
jmp 0x14003c611
mov r9, rbx
mov edx, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
lea r8, [0x140249698]
mov rcx, qword [rcx + 0x60]
call fcn.14003c350
nop
test rdi, rdi
je 0x14003c650
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 0x14003c668
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.140199a10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret