Function at 0x1400055b0
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.14000c6a0
sub rsp, rax
mov rax, qword [0x140033a80]
xor rax, rsp
mov qword [rbp + 0x2fe0], rax
mov dil, r9b
mov qword [rbp - 0x70], rdx
xor ebx, ebx
mov word [rbp + 0xfe0], bx
mov eax, 0x800
lea r13d, [rbx + 1]
test rcx, rcx
je 0x140005630
test r8b, r8b
mov r8d, eax
je 0x140005621
mov byte [rsp + 0x20], bl
mov r9b, r13b
lea rdx, [rbp + 0xfe0]
call fcn.140006444
jmp 0x140005630
mov rdx, rcx
lea rcx, [rbp + 0xfe0]
call fcn.140008b00
lea rcx, [rbp - 0x60]
call fcn.1400042f0
nop
cmp word [rbp + 0xfe0], bx
je 0x140005685
lea rdx, [rbp + 0xfe0]
lea rcx, [rbp - 0x60]
test dil, dil
je 0x14000565a
call fcn.140004da0
jmp 0x140005662
xor r8d, r8d
call fcn.140004820
test al, al
jne 0x140005689
test dil, dil
je 0x140005a8d
mov edx, 6
lea rcx, [0x140036700]
call fcn.140004050
jmp 0x140005a8d
mov dword [rbp - 0x4c], r13d
mov r14d, ebx
mov edi, 0x1000
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1400042c4
nop
mov rsi, qword [rsp + 0x60]
mov rdx, rsi
jmp 0x1400056c2
add r14d, eax
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400043d4
mov edx, r14d
mov rsi, qword [rsp + 0x60]
add rdx, rsi
mov r8, rdi
lea rcx, [rbp - 0x60]
call fcn.140004b00
test eax, eax
jne 0x1400056a8
mov r15d, r14d
cmp r15, qword [rsp + 0x70]
jbe 0x1400056fa
mov edx, r15d
sub rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.1400043d4
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
jmp 0x140005702
mov rdi, r15
mov qword [rsp + 0x68], r15
cmp r14d, 2
jb 0x1400057d5
cmp byte [rsi], 0xff
jne 0x1400057d5
cmp byte [rsi + 1], 0xfe
jne 0x1400057d5
mov r12d, r13d
mov dword [rsp + 0x34], ebx
mov qword [rbp - 0x78], rbx
cmp r14d, 3
jb 0x140005746
cmp byte [rsi], 0xef
jne 0x140005746
cmp byte [rsi + 1], 0xbb
jne 0x140005746
cmp byte [rsi + 2], 0xbf
mov byte [rsp + 0x30], r13b
je 0x14000574a
mov byte [rsp + 0x30], bl
mov r14d, dword [rbp + 0x3050]
test r14d, r14d
jne 0x140005764
mov rdx, r15
mov rcx, rsi
call fcn.1400054cc
mov r14d, eax
mov r13, rbx
mov qword [rsp + 0x38], rbx
mov r15, rbx
mov qword [rsp + 0x40], rbx
mov rcx, rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x58], bl
cmp r14d, 2
ja 0x14000581e
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14000557c
mov rsi, qword [rsp + 0x60]
cmp r14d, 2
jne 0x1400057b2
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_OemToCharA]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140005803
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400053d0
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
jmp 0x14000580b
mov r12d, ebx
cmp r14d, 2
jb 0x140005722
cmp byte [rsi], 0xfe
jne 0x140005722
cmp byte [rsi + 1], 0xff
jne 0x140005722
mov dword [rsp + 0x34], r13d
mov qword [rbp - 0x78], r13
jmp 0x14000572a
mov r15, rdi
mov qword [rsp + 0x40], rdi
mov r8, r15
mov rdx, r13
mov rcx, rsi
call fcn.140008dd4
mov rcx, qword [rsp + 0x48]
cmp r14d, 3
jne 0x140005947
mov r14d, 2
test r12d, r12d
jne 0x140005842
cmp dword [rsp + 0x34], ebx
jne 0x140005842
mov r14, rbx
mov r12d, 1
mov rax, rdi
shr rax, 1
inc rax
cmp rax, rcx
jbe 0x140005867
sub rax, r15
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400053d0
mov r13, qword [rsp + 0x38]
jmp 0x14000586c
mov qword [rsp + 0x40], rax
and rdi, 0xfffffffffffffffe
cmp r14, rdi
jae 0x1400058c5
mov rcx, qword [rbp - 0x78]
lea r11, [rsi + rcx]
add r11, r14
mov r8, r11
mov r10d, r12d
sub r10, rcx
sub rdi, r14
lea r9, [rdi - 1]
shr r9, 1
inc r9
movzx edx, byte [r10 + r8]
mov ecx, 0x100
imul edx, ecx
movzx eax, byte [r8]
add dx, ax
mov rax, r8
sub rax, r11
shr rax, 1
mov word [r13 + rax*2], dx
add r8, 2
sub r9, 1
jne 0x140005896
jmp 0x1400058c8
sub rdi, r14
shr rdi, 1
mov word [r13 + rdi*2], bx
mov r12, qword [rsp + 0x48]
mov rdi, r13
cmp word [r13], bx
je 0x140005a66
movzx esi, word [r13]
mov r15, qword [rbp - 0x70]
mov r14, rdi
mov rcx, rbx
cmp si, 0xd
je 0x140005937
movzx eax, si
movzx esi, ax
cmp ax, 0xa
je 0x140005937
test ax, ax
je 0x140005937
cmp byte [rbp + 0x3060], bl
je 0x140005926
cmp ax, 0x2f
jne 0x140005926
cmp word [r14 + 2], ax
jne 0x140005926
mov word [r14], bx
mov rcx, r14
add r14, 2
movzx esi, word [r14]
movzx eax, si
cmp si, 0xd
jne 0x1400058fc
mov word [r14], bx
mov rax, r14
test rcx, rcx
cmovne rax, rcx
jmp 0x1400059b9
cmp r14d, 4
jne 0x1400058d1
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14000557c
mov r8, qword [rsp + 0x68]
mov r12, qword [rsp + 0x48]
cmp r8, r12
jbe 0x140005989
sub r8, r15
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.1400053d0
mov r8, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
jmp 0x14000598e
mov qword [rsp + 0x40], r8
neg byte [rsp + 0x30]
sbb rcx, rcx
and ecx, 3
add rcx, qword [rsp + 0x60]
mov rdx, r13
call fcn.140008eec
jmp 0x1400058d6
cmp word [rax], 0x20
je 0x1400059b6
cmp word [rax], 9
jne 0x1400059c2
mov word [rax], bx
sub rax, 2
cmp rax, rdi
jae 0x1400059aa
cmp byte [rbp + 0x3058], bl
je 0x1400059e9
cmp word [rdi], 0x22
jne 0x1400059e9
mov rcx, rdi
call fcn.140011510
cmp word [rdi + rax*2 - 2], 0x22
jne 0x1400059e9
mov word [rdi + rax*2 - 2], bx
add rdi, 2
cmp byte [rbp + 0x3068], bl
je 0x140005a2f
cmp word [rdi], 0x25
jne 0x140005a2f
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 0x140005a2f
cmp word [rbp + 0x1fe0], bx
je 0x140005a3f
lea rdx, [rbp + 0x1fe0]
jmp 0x140005a37
cmp word [rdi], bx
je 0x140005a3f
mov rdx, rdi
mov rcx, r15
call fcn.140008b5c
test si, si
je 0x140005a66
lea rdi, [r14 + 2]
movzx esi, word [rdi]
cmp si, 0xd
je 0x140005a57
cmp si, 0xa
jne 0x140005a5d
add rdi, 2
jmp 0x140005a48
test si, si
jne 0x1400058ed
cmp byte [rsp + 0x58], bl
je 0x140005a78
lea rdx, [r12 + r12]
mov rcx, r13
call fcn.140008668
mov rcx, r13
call fcn.140011508
nop
lea rcx, [rsp + 0x60]
call fcn.140004338
mov bl, 1
lea rcx, [rbp - 0x60]
call fcn.140004368
mov al, bl
mov rcx, qword [rbp + 0x2fe0]
xor rcx, rsp
call fcn.14000c700
mov rbx, qword [rsp + 0x3140]
add rsp, 0x30f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret