Function at 0x14001a7b4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov rcx, rdx
call fcn.14003bb18
xor r12d, r12d
test al, al
je 0x14001a80a
mov eax, 0x80070057
jmp 0x14001adfd
mov dword [rsp + 0x20], r12d
lea r8, [rsp + 0x20]
call fcn.140029380
mov edi, 7
or r13, 0xffffffffffffffff
test al, al
je 0x14001aabb
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x14001aabb
mov ebx, r12d
inc ebx
mov r9d, 0xa
lea r8d, [r9 - 4]
lea rdx, [rbp + 0x10]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itow_s]
test eax, eax
jne 0x14001aab1
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea r8d, [rax + 0x1a]
lea rdx, str.PostTempFolderMappingPairs
lea rcx, [rbp - 0x50]
call fcn.140007004
nop
mov r8, r12
cmp word [0x1400fa498], r12w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rbp - 0x50]
call fcn.140008328
cmp word [rbp + 0x10], r12w
jne 0x14001a8a6
mov r8, r12
jmp 0x14001a8b7
lea rax, [rbp + 0x10]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001a8ad
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140008328
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov r8d, 0x1a
lea rdx, str.PostTempFolderMappingPairs
lea rcx, [rsp + 0x70]
call fcn.140007004
nop
mov r8, r12
cmp word [0x1400fa498], r12w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rsp + 0x70]
call fcn.140008328
cmp word [rbp + 0x10], r12w
jne 0x14001a916
mov r8, r12
jmp 0x14001a927
lea rax, [rbp + 0x10]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001a91d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140008328
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rcx, str.Folder
call fcn.140029138
test al, al
je 0x14001aa3a
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea r8, [rsp + 0x30]
lea rcx, str.Endpoint
call fcn.140029138
test al, al
je 0x14001aa3a
mov qword [rbp + 8], rdi
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.1400085a4
cmp qword [rbp + 8], 8
jb 0x14001a9de
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 8], rdi
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400085a4
lea rcx, [r14 + 0xc8]
lea rdx, [rbp - 0x30]
call fcn.14001d708
nop
cmp qword [rbp + 8], 8
jb 0x14001aa1b
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 8], rdi
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
cmp qword [rbp - 0x18], 8
jb 0x14001aa3a
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rsp + 0x68], 8
jb 0x14001aa4d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
cmp qword [rsp + 0x48], 8
jb 0x14001aa70
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
cmp qword [rbp - 0x78], 8
jb 0x14001aa92
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
cmp qword [rbp - 0x38], 8
jb 0x14001aab1
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp ebx, dword [rsp + 0x20]
jb 0x14001a839
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
mov r13d, 2
mov r9d, r13d
xor r8d, r8d
lea rdx, [0x1400fd0bc]
mov rcx, rsi
call fcn.14000e110
test rax, rax
jne 0x14001ab95
lea rcx, [rbp - 0x70]
call fcn.14003b37c
mov ebx, eax
test eax, eax
jns 0x14001ab5e
cmp dword [0x140142444], r13d
jb 0x14001ab16
mov r8d, eax
lea rdx, str.Failed_to_get_current_direcotry:_0x_x
mov ecx, r13d
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14001adea
test byte [rcx + 0x1c], r13b
je 0x14001adea
cmp byte [rcx + 0x19], r13b
jb 0x14001adea
mov edx, reloc.WS2_32.dll_ntohs
mov r9d, ebx
lea r8, [0x1400fd488]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
jmp 0x14001adea
mov r8, r12
cmp word [0x1400fa498], r12w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rbp - 0x70]
call fcn.140008328
or r9, 0xffffffffffffffff
mov r8, r13
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140008480
jmp 0x14001acd2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.14000db88
nop
mov rax, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x10]
sub rax, rdi
sar rax, 1
cmp qword [rsi + 0x18], 8
jb 0x14001abc8
mov rsi, qword [rsi]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001aca3
mov esi, 0x80070000
mov r14d, 0x80004005
cmp dword [0x140142444], r13d
jb 0x14001ac1c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, esi
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, r14d
lea rdx, str.Failed_to_expand_www_root_path:_0x_x
mov ecx, r13d
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14001ac76
test byte [rcx + 0x1c], r13b
je 0x14001ac76
cmp byte [rcx + 0x19], r13b
jb 0x14001ac76
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, esi
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov edx, 0x10
lea r8, [0x1400fd488]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r14d
test rdi, rdi
je 0x14001adea
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14001adea
cmp word [rdi], r12w
jne 0x14001acae
mov r8, r12
jmp 0x14001acbc
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14001acb2
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140007004
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rbx, qword [r15]
mov rdi, qword [r15 + 8]
or r13, 0xffffffffffffffff
cmp rbx, rdi
je 0x14001adcb
lea r15d, [r13 + 8]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
mov r9, r13
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140006c68
nop
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.140006c68
nop
mov r8, r12
cmp word [0x1400fa498], r12w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rsp + 0x30]
call fcn.140008328
mov r9, r13
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140008480
mov r8, r12
cmp word [0x1400fa498], r12w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rsp + 0x30]
call fcn.140008328
lea rdx, [rsp + 0x30]
lea rcx, [r14 + 0x48]
call fcn.14000d7f8
nop
cmp qword [rsp + 0x48], 8
jb 0x14001adab
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rsp + 0x68], 8
jb 0x14001adbe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
add rbx, 0x20
cmp rbx, rdi
jne 0x14001acea
lea rcx, [r14 + 0x28]
lea rax, [rbp - 0x70]
cmp rcx, rax
je 0x14001ade7
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x70]
call fcn.140006c68
mov ebx, r12d
cmp qword [rbp - 0x58], 8
jb 0x14001adfb
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret