Function at 0x1400a31b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
add rcx, 0x810
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [r15 + 0x808]
test rsi, rsi
je 0x1400a3506
lea r13, [r15 + 0x20]
nop
mov qword [rbp - 0x38], rsi
mov rax, qword [rsi + 8]
mov qword [r15 + 0x808], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x78], 0
mov r14, r13
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x50], 1
mov rcx, r13
call qword [case.0x1401b9e8b.1]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov rdi, qword [r15 + 0x18]
test rdi, rdi
je 0x1400a3271
lock inc dword [rdi + 8]
mov rdi, qword [r15 + 0x18]
mov r14, qword [rbp - 0x58]
mov rbx, qword [r15 + 0x10]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
or dword [rsp + 0x50], 1
mov rcx, r14
call qword [case.0x1401b9e8b.2]
mov rcx, qword [0x14024fa68]
lea rax, [0x14024fa68]
cmp rcx, rax
je 0x1400a32c6
test byte [rcx + 0x1c], 0x20
je 0x1400a32c6
cmp byte [rcx + 0x19], 4
jb 0x1400a32c6
lea rax, [rsi + 0x10]
mov qword [rsp + 0x28], rax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi]
mov rcx, qword [rcx + 0x10]
call fcn.14008ec60
test byte [rsi + 4], 2
je 0x1400a33f5
cmp byte [rbx + 0x60], 0
je 0x1400a33f5
mov ecx, dword [rsi]
sub ecx, 1
je 0x1400a32f4
cmp ecx, 1
je 0x1400a32ed
mov edx, 0xf000002
jmp 0x1400a32f9
mov edx, 0xf000004
jmp 0x1400a32f9
mov edx, 0xf000003
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
lea rax, [0x1401eb910]
mov qword [rbp - 0x60], rax
mov word [rbp - 0x80], r12w
lea r8, [rbp - 0x80]
mov rcx, r15
call fcn.1400ace00
movzx r12d, byte [rbx + 0x108]
lea r14, [rbx + 0xe8]
cmp qword [r14 + 0x18], 8
jb 0x1400a333a
mov r14, qword [r14]
lea r11, [rbx + 0xc8]
cmp qword [r11 + 0x18], 8
jb 0x1400a334b
mov r11, qword [r11]
lea r10, [rbx + 0xa8]
cmp qword [r10 + 0x18], 8
jb 0x1400a335c
mov r10, qword [r10]
lea rcx, [rbx + 0x88]
cmp qword [rcx + 0x18], 8
jb 0x1400a336d
mov rcx, qword [rcx]
lea r9, [rbx + 0x68]
cmp qword [r9 + 0x18], 8
jb 0x1400a337b
mov r9, qword [r9]
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, [rsi + 0x10]
mov eax, dword [rbx + 0x61]
mov dword [rsp + 0x60], eax
movzx eax, word [rbx + 0x65]
mov word [rsp + 0x64], ax
mov byte [rsp + 0x48], r12b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rcx
call fcn.1400a2d00
nop
cmp qword [rbp - 0x68], 8
jb 0x1400a33f2
mov rax, qword [rbp - 0x60]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.140007ea0]
cmp rax, rcx
mov rcx, qword [rbp - 0x80]
jne 0x1400a33ec
call fcn.1401c5244
jmp 0x1400a33f2
call qword [case.0x14003c8e9.0]
xor r12d, r12d
test byte [rsi + 4], 1
je 0x1400a3496
cmp byte [rbx + 0x109], 0
je 0x1400a3496
add rbx, 0x110
cmp qword [rbx + 0x18], 8
jb 0x1400a341d
mov rbx, qword [rbx]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x100
jbe 0x1400a347b
lfence
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a3441
lfence
mov r8, rbx
mov edx, 0x100
lea rcx, [rbp - 0x30]
cmp rax, rdx
jae 0x1400a3467
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a347b
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x1ce], r12w
mov r8d, dword [r15 + 0x838]
not r8d
and r8d, 1
lea rdx, [rsi + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14019e910
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x78], 1
and dword [rsp + 0x50], 0xfffffffe
test rdi, rdi
je 0x1400a34f6
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a34f6
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400a34f6
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
mov rsi, qword [r15 + 0x808]
test rsi, rsi
jne 0x1400a3220
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rcx + 8]
jmp 0x1400a31b0