Function at 0x14003ffa0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
xor r14b, r14b
mov ecx, 8
call fcn.1400cafcc
mov qword [rsp + 0x20], rax
xor r15d, r15d
or rsi, 0xffffffffffffffff
test rax, rax
je 0x14004000b
mov rdx, rsi
mov rcx, rax
call fcn.140001030
mov r12, rax
jmp 0x14004000e
mov r12, r15
test r12, r12
je 0x1400401ea
mov dword [rsp + 0x30], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x34]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400401da
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
test rax, 0xffffffffffff0000
jne 0x1400400a5
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140040199
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001f70
mov rbx, qword [rsp + 0x20]
jmp 0x140040199
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14004011b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140040199
cmp dword [rdx + 0x10], eax
jge 0x1400400f1
cmp dword [rbx - 0xc], eax
jge 0x1400400e4
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140040199
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140040107
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140040199
mov r13d, dword [rbx - 0x10]
lea rbp, [rsp + 0x30]
sub rbp, rbx
sar rbp, 1
test ecx, ecx
jns 0x140040139
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004015b
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rbp, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140040180
lea r8, [rbx + rbp*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14004018b
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400401cf
mov dword [rbx - 0x10], edi
mov word [r13 + rbx], r15w
mov rcx, rbx
call fcn.14003fbe0
test eax, eax
je 0x1400401aa
mov r14b, 1
jmp 0x1400401b5
mov ecx, 0x20000005
call fcn.140038690
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400401da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400401da
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, r12
call fcn.14003faa0
mov rcx, r12
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
movzx eax, r14b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret