Function at 0x140084d98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2ff0]
mov eax, 0x30f0
call fcn.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rbp + 0x2fe0], rax
mov dil, r9b
mov qword [rbp - 0x80], rdx
xor ebx, ebx
mov word [rbp + 0xfe0], bx
mov eax, 0x800
lea r13d, [rbx + 1]
test rcx, rcx
je 0x140084e18
test r8b, r8b
mov r8d, eax
je 0x140084e09
mov byte [rsp + 0x20], bl
mov r9b, r13b
lea rdx, [rbp + 0xfe0]
call fcn.140094298
jmp 0x140084e18
mov rdx, rcx
lea rcx, [rbp + 0xfe0]
call fcn.1400aa9e4
lea rcx, [rbp - 0x70]
call fcn.1400824e4
nop
cmp word [rbp + 0xfe0], bx
je 0x140084e6d
lea rdx, [rbp + 0xfe0]
lea rcx, [rbp - 0x70]
test dil, dil
je 0x140084e42
call fcn.14008331c
jmp 0x140084e4a
xor r8d, r8d
call fcn.140082b10
test al, al
jne 0x140084e71
test dil, dil
je 0x14008527b
mov edx, 6
lea rcx, [0x1401c97d8]
call fcn.14007c8a0
jmp 0x14008527b
mov dword [rbp - 0x5c], r13d
mov r14d, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov edi, 0x1000
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400081d0
nop
mov rsi, qword [rsp + 0x38]
mov rdx, rsi
jmp 0x140084ebe
add r14d, eax
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400081d0
mov edx, r14d
mov rsi, qword [rsp + 0x38]
add rdx, rsi
mov r8, rdi
lea rcx, [rbp - 0x70]
call fcn.140082e90
test eax, eax
jne 0x140084ea4
mov r15d, r14d
cmp r15, qword [rsp + 0x48]
jbe 0x140084ef6
mov edx, r15d
sub rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1400081d0
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x140084efe
mov rdi, r15
mov qword [rsp + 0x40], r15
cmp r14d, 2
jb 0x140084fcb
cmp byte [rsi], 0xff
jne 0x140084fcb
cmp byte [rsi + 1], 0xfe
jne 0x140084fcb
mov r12d, r13d
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x78], rbx
cmp r14d, 3
jb 0x140084f43
cmp byte [rsi], 0xef
jne 0x140084f43
cmp byte [rsi + 1], 0xbb
jne 0x140084f43
cmp byte [rsi + 2], 0xbf
mov byte [rsp + 0x30], r13b
je 0x140084f47
mov byte [rsp + 0x30], bl
mov r14d, dword [rbp + 0x3050]
test r14d, r14d
jne 0x140084f61
mov rdx, r15
mov rcx, rsi
call fcn.140084ce8
mov r14d, eax
mov qword [rsp + 0x58], rbx
mov r15, rbx
mov qword [rsp + 0x60], rbx
mov r13, rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
cmp r14d, 2
ja 0x140085012
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400236a0
mov rsi, qword [rsp + 0x38]
cmp r14d, 2
jne 0x140084fa8
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_OemToCharA]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140084ffa
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000d424
mov r13, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
jmp 0x140085002
mov r12d, ebx
cmp r14d, 2
jb 0x140084f1e
cmp byte [rsi], 0xfe
jne 0x140084f1e
cmp byte [rsi + 1], 0xff
jne 0x140084f1e
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x78], r13
jmp 0x140084f27
mov r15, rdi
mov qword [rsp + 0x60], rdi
mov r8, r15
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400ad4d8
cmp r14d, 3
jne 0x1400850c6
mov r14d, 2
test r12d, r12d
jne 0x140085036
cmp dword [rsp + 0x34], ebx
jne 0x140085036
mov r14, rbx
mov r12d, 1
mov rax, rdi
shr rax, 1
inc rax
cmp rax, r13
jbe 0x140085056
sub rax, r15
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000d424
jmp 0x14008505b
mov qword [rsp + 0x60], rax
and rdi, 0xfffffffffffffffe
mov r15, qword [rsp + 0x58]
cmp r14, rdi
jae 0x1400850b9
mov rcx, qword [rsp + 0x78]
lea r11, [rsi + rcx]
add r11, r14
mov r9, r11
mov r10d, r12d
sub r10, rcx
sub rdi, r14
lea r8, [rdi - 1]
shr r8, 1
inc r8
movzx edx, byte [r10 + r9]
mov ecx, 0x100
imul edx, ecx
movzx eax, byte [r9]
add dx, ax
mov rax, r9
sub rax, r11
shr rax, 1
mov word [r15 + rax*2], dx
add r9, 2
sub r8, 1
jne 0x14008508b
jmp 0x1400850bc
sub rdi, r14
shr rdi, 1
mov word [r15 + rdi*2], bx
jmp 0x140085124
cmp r14d, 4
jne 0x14008511f
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400236a0
mov r8, qword [rsp + 0x40]
cmp r8, r13
jbe 0x1400850f9
sub r8, r15
mov rdx, r8
lea rcx, [rsp + 0x58]
call fcn.14000d424
mov r8, qword [rsp + 0x60]
jmp 0x1400850fe
mov qword [rsp + 0x60], r8
neg byte [rsp + 0x30]
sbb rcx, rcx
and ecx, 3
mov rsi, qword [rsp + 0x38]
add rcx, rsi
mov r15, qword [rsp + 0x58]
mov rdx, r15
call fcn.1400ad650
jmp 0x140085124
mov r15, qword [rsp + 0x58]
mov rdi, r15
cmp word [r15], bx
je 0x140085263
movzx r14d, word [r15]
mov r13, qword [rbp - 0x80]
mov r12, rdi
mov rcx, rbx
cmp r14w, 0xd
je 0x14008518b
movzx eax, r14w
movzx r14d, ax
cmp ax, 0xa
je 0x14008518b
test ax, ax
je 0x14008518b
cmp byte [rbp + 0x3060], bl
je 0x140085177
cmp ax, 0x2f
jne 0x140085177
cmp word [r12 + 2], ax
jne 0x140085177
mov word [r12], bx
mov rcx, r12
add r12, 2
movzx r14d, word [r12]
movzx eax, r14w
cmp r14w, 0xd
jne 0x14008514a
mov word [r12], bx
mov rax, r12
test rcx, rcx
cmovne rax, rcx
jmp 0x1400851ab
cmp word [rax], 0x20
je 0x1400851a8
cmp word [rax], 9
jne 0x1400851b4
mov word [rax], bx
sub rax, 2
cmp rax, rdi
jae 0x14008519c
cmp byte [rbp + 0x3058], bl
je 0x1400851e0
cmp word [rdi], 0x22
jne 0x1400851e0
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x1400851c6
cmp word [rdi + rax*2 - 2], 0x22
jne 0x1400851e0
mov word [rdi + rax*2 - 2], bx
add rdi, 2
cmp byte [rbp + 0x3068], bl
je 0x140085226
cmp word [rdi], 0x25
jne 0x140085226
mov word [rbp + 0x1fe0], bx
mov r8d, 0x800
lea rdx, [rbp + 0x1fe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x140085226
cmp word [rbp + 0x1fe0], bx
je 0x140085236
lea rdx, [rbp + 0x1fe0]
jmp 0x14008522e
cmp word [rdi], bx
je 0x140085236
mov rdx, rdi
mov rcx, r13
call fcn.1400aaa48
test r14w, r14w
je 0x140085263
lea rdi, [r12 + 2]
movzx r14d, word [rdi]
cmp r14w, 0xd
je 0x140085253
cmp r14w, 0xa
jne 0x140085259
add rdi, 2
jmp 0x140085241
test r14w, r14w
jne 0x140085139
mov rcx, r15
call fcn.140123a48
nop
test rsi, rsi
je 0x140085279
mov rcx, rsi
call fcn.140123a48
mov bl, 1
lea rcx, [rbp - 0x70]
call fcn.14008252c
mov al, bl
mov rcx, qword [rbp + 0x2fe0]
xor rcx, rsp
call fcn.140117fa0
mov rbx, qword [rsp + 0x3140]
add rsp, 0x30f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret