Function at 0x140025680
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
sub rsp, 0x458
movzx eax, byte [rcx + 1]
movzx ebp, r8b
mov r12, rcx
cmp edx, eax
jl 0x1400256a7
xor eax, eax
add rsp, 0x458
pop r12
pop rbp
ret
mov qword [rsp + 0x440], r13
movsxd r13, edx
shl r13, 5
add r13, qword [rcx + 8]
cmp byte [r13], 0
jne 0x1400256d6
xor eax, eax
mov r13, qword [rsp + 0x440]
add rsp, 0x458
pop r12
pop rbp
ret
mov qword [rsp + 0x448], rdi
mov rdi, qword [r13 + 8]
cmp word [rdi], 0
jne 0x1400256f1
mov rax, qword [r13 + 0x10]
jmp 0x140025acd
mov qword [rsp + 0x480], rbx
mov qword [rsp + 0x450], rsi
lea rsi, [0x140105960]
mov qword [rsp + 0x438], r14
mov r14, qword [r13 + 0x10]
mov qword [rsp + 0x430], r15
xor r15d, r15d
mov ebx, r15d
test r14, r14
je 0x14002584c
mov rax, qword [r14]
test rax, rax
je 0x14002584c
cmp rdi, rax
jae 0x14002575c
nop dword [rax]
cmp rbx, 0xfd
jae 0x140025765
movzx eax, word [rdi]
add rdi, 2
mov word [rsi + rbx*2], ax
inc rbx
cmp rdi, qword [r14]
jb 0x140025740
cmp rbx, 0xfd
jb 0x14002576e
cmp rdi, qword [r14]
jb 0x140025894
mov rsi, qword [r14 + 8]
movzx ecx, byte [rsi + 0x23]
test ecx, ecx
je 0x140025801
sub ecx, 1
je 0x1400257b0
sub ecx, 1
je 0x140025798
cmp ecx, 1
je 0x1400257f3
mov rdx, qword [rsi + 0x28]
xor ecx, ecx
call qword [rsi + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x14002580c
xor edx, edx
call fcn.140004b60
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, rax
cmove rcx, r15
jmp 0x14002580f
mov rcx, rsi
call fcn.140001320
cmp dword [0x1400ffc4c], r15d
jne 0x1400257f8
cmp qword [rsi + 0x10], r15
jne 0x1400257f8
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x478]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400257ec
mov qword [0x140105930], r15
lea ecx, [rax - 1]
jmp 0x14002580f
mov qword [0x140105930], rsi
mov rcx, r15
jmp 0x14002580f
mov rcx, qword [rsi + 0x10]
shr rcx, 1
jmp 0x14002580f
mov rcx, qword [rsi + 0x10]
xor edx, edx
call fcn.14008acc0
mov rcx, rax
mov eax, 0xfd
sub rax, rbx
cmp rcx, rax
ja 0x140025894
mov rcx, qword [r14 + 8]
lea rsi, [0x140105960]
lea rdx, [rsi + rbx*2]
call fcn.14008acc0
add rbx, rax
movzx eax, word [r14 + 0x12]
add r14, 0x18
lea rdi, [rdi + rax*2]
mov rax, qword [r14]
test rax, rax
jne 0x140025737
movzx eax, word [rdi]
test ax, ax
je 0x140025870
cmp rbx, 0xfd
jae 0x140025879
add rdi, 2
mov word [rsi + rbx*2], ax
inc rbx
movzx eax, word [rdi]
test ax, ax
jne 0x140025854
cmp rbx, 0xfd
jb 0x14002587f
cmp word [rdi], r15w
jne 0x140025894
test rbx, rbx
jne 0x1400258a4
mov r9, qword [r13 + 8]
lea rdx, [0x1400e2870]
jmp 0x140025aa0
mov r9, qword [r13 + 8]
lea rdx, [0x1400e2760]
jmp 0x140025aa0
mov rax, qword gs:[0x58]
mov edx, 4
mov word [rsi + rbx*2], r15w
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140105b5c], eax
jle 0x140025913
lea rcx, [0x140105b5c]
call fcn.1400a33a4
cmp dword [0x140105b5c], 0xffffffff
jne 0x140025913
lea rax, [0x1401032b0]
mov qword [0x140105b70], r15
lea rcx, [0x140105b5c]
mov qword [0x140105b68], rax
mov dword [0x140105b80], 0x1000400
mov qword [0x140105b88], rsi
mov qword [0x140105b78], r15
call fcn.1400a3344
test bpl, bpl
jne 0x140025a05
cmp word [0x140105960], r15w
je 0x140025aab
mov rdi, rsi
nop dword [rax]
movzx ebp, word [rdi]
mov esi, ebp
mov ecx, ebp
and esi, 0xffffff80
jne 0x14002594a
mov edx, 0x107
call fcn.1400a9dc4
test eax, eax
jne 0x140025962
test esi, esi
jne 0x140025962
movzx edx, bp
lea rcx, [0x1400e8ed0]
call fcn.1400a5798
test rax, rax
je 0x1400259b7
add rdi, 2
cmp word [rdi], r15w
jne 0x140025930
lea rsi, [0x140105960]
mov qword [rsp + 0x28], r15
lea rcx, [0x140103350]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov r8, rbx
mov rdx, rsi
call fcn.140025b80
test rax, rax
jne 0x140025aad
mov rcx, rsi
call fcn.1400263f0
test rax, rax
jne 0x140025a05
lea rax, [0x140105b60]
jmp 0x140025aad
lea rsi, [0x140105960]
mov edx, 0x200
lea r9, [0x1400e8ee0]
mov qword [rsp + 0x20], rsi
lea r8, [0x1400e8f10]
lea rcx, [rsp + 0x30]
call fcn.140087360
lea r8, [0x1400e70b8]
lea rdx, [rsp + 0x30]
lea rcx, [0x140103350]
call fcn.140035a70
test eax, eax
je 0x140025aab
jmp 0x140025973
cmp word [0x140105960], r15w
je 0x140025aab
lea rax, [rsp + 0x478]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x470]
mov rdx, rsi
mov dword [rsp + 0x20], 3
lea rcx, [0x140103350]
call fcn.140025b80
test rax, rax
jne 0x140025a7a
cmp byte [rsp + 0x478], r15b
lea rcx, [0x140103350]
mov r9d, dword [rsp + 0x470]
mov r8, rbx
setne r15b
mov rdx, rsi
inc r15d
mov dword [rsp + 0x20], r15d
call fcn.140025e60
test rax, rax
je 0x140025aab
cmp byte [r13], 2
jne 0x140025aad
movzx ecx, byte [rax + 0x23]
test cl, cl
jne 0x140025a91
mov rcx, qword [rax + 0x10]
movzx ecx, byte [rcx + 0x23]
cmp cl, 2
jbe 0x140025aad
mov r9, rsi
lea rdx, [0x1400e1680]
xor r8d, r8d
mov rcx, r12
call fcn.1400356f0
xor eax, eax
mov r14, qword [rsp + 0x438]
mov rbx, qword [rsp + 0x480]
mov rsi, qword [rsp + 0x450]
mov r15, qword [rsp + 0x430]
mov rdi, qword [rsp + 0x448]
mov r13, qword [rsp + 0x440]
add rsp, 0x458
pop r12
pop rbp
ret