Function at 0x140019e1a
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov rsi, qword [0x14013a450]
test rsi, rsi
je 0x140019e41
dec rsi
jmp 0x14001a1a1
movabs rsi, 0x8000000000000000
lea rdx, [0x1401141a1]
lea rdi, [rsp + 0x68]
mov r8d, 0xe
mov rcx, rdi
call fcn.140019ac5
mov rax, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rax, rsi
jne 0x140019e81
mov rcx, rsi
mov rdx, rdi
call fcn.140019d00
jmp 0x14001a191
mov qword [rsp + 0x28], rax
mov ebx, 0x200
mov r14d, 2
xor ebp, ebp
xor r15d, r15d
cmp rbx, 0x201
jae 0x140019eb1
lea r12, [rsp + 0x68]
mov esi, 0x200
mov r13, rbx
jmp 0x140019f6d
sub rbx, r15
mov rax, rbp
sub rax, r15
cmp rax, rbx
jae 0x140019f51
add r15, rbx
jb 0x14001a1bf
lea rax, [rbp*2]
mov rsi, rax
cmp rax, r15
ja 0x140019edf
mov rsi, r15
xor edx, edx
mov rcx, rsi
shr rcx, 0x3e
sete cl
cmp rsi, 5
jae 0x140019ef6
mov esi, 4
test rbp, rbp
je 0x140019f0c
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], rax
mov eax, 2
jmp 0x140019f0e
xor eax, eax
lea r8, [rsi + rsi]
mov dl, cl
add edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x30]
call fcn.1400044c8
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x140019f4b
movabs rcx, 0x8000000000000001
cmp rax, rcx
je 0x140019f51
jmp 0x14001a1bc
mov rbp, rsi
mov r14, rax
mov eax, 0xffffffff
mov r15, rbp
cmp rbp, rax
jb 0x140019f64
mov r15d, 0xffffffff
mov r12, r14
mov rsi, r15
mov r13, r15
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, rdi
mov rdx, r12
mov r8d, r13d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x140019f98
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14001a079
mov ebx, ebx
cmp r13, rbx
jne 0x140019fc9
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001a1bf
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
jb 0x140019fc1
mov r13d, 0xffffffff
mov rbx, r13
jmp 0x140019e96
jb 0x140019e96
cmp rsi, rbx
jb 0x14001a1bf
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rbx
call fcn.14000a1fa
mov byte [rsi + 0x18], 1
lea rax, [r12 + rbx*2]
lea rbx, [rsp + 0x50]
mov qword [rbx], r12
mov qword [rbx + 8], rax
and word [rbx + 0x10], 0
lea r12, [rsp + 0x24]
mov r15, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1400045b1
test ax, ax
je 0x14001a02a
movzx ecx, ax
cmp ecx, 2
je 0x14001a04e
shr eax, 0x10
mov byte [rsp + 0x48], 0
jmp 0x14001a02e
shr rax, 0x20
and dword [rsp + 0x24], 0
mov ecx, eax
mov rdx, r12
call fcn.1400181b5
lea r8, [rdx + rax]
mov rcx, rsi
mov rdx, rax
call fcn.1400043b9
jmp 0x14001a00b
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rcx, rbp
mov rdx, r14
call fcn.140016573
movabs rbx, 0x8000000000000000
cmp r13, rbx
je 0x14001a09b
jmp 0x14001a0a6
call fcn.14001824c
mov r12, rax
mov rcx, rbp
mov rdx, r14
call fcn.140016573
movabs rbx, 0x8000000000000000
mov r15, qword [rsp + 0x28]
mov rcx, r12
call fcn.1400180f3
mov r13, rbx
mov rcx, r15
mov rdx, rdi
call fcn.140016573
cmp r13, rbx
je 0x14001a191
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov rdx, r12
mov r8, rsi
call fcn.140005fb9
xor ecx, ecx
cmp qword [rdi], 0
jne 0x14001a0da
mov rcx, qword [rsp + 0x70]
mov dil, 1
jne 0x14001a181
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x14001a181
movzx eax, byte [rcx]
cmp eax, 0x2b
je 0x14001a131
cmp eax, 0x2d
jne 0x14001a104
cmp r8, 1
je 0x14001a181
cmp r8, 0x11
jae 0x14001a145
xor eax, eax
xor esi, esi
cmp r8, rax
je 0x14001a1b8
movzx edx, byte [rcx + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x14001a181
imul r9, rsi, 0xa
mov esi, edx
add rsi, r9
inc rax
jmp 0x14001a10e
mov rax, r8
dec rax
je 0x14001a181
inc rcx
cmp r8, 0x12
mov r8, rax
jb 0x14001a10a
xor r9d, r9d
mov r10d, 0xa
xor esi, esi
cmp r8, r9
je 0x14001a1b8
movzx r11d, byte [rcx + r9]
mov rax, rsi
mul r10
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x14001a181
test dl, dl
jne 0x14001a181
mov rsi, rax
mov eax, r11d
add rsi, rax
jb 0x14001a181
inc r9
jmp 0x14001a150
mov rcx, r13
mov rdx, r12
call fcn.1400046aa
test dil, dil
je 0x14001a196
mov esi, 0x200000
lea rax, [rsi + 1]
mov qword [0x14013a450], rax
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x14001a181
test rax, rax
ud2