Function at 0x140033e64
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x24d0
call fcn.1400baa60
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x2528], rbx
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x24c0], rax
mov sil, r9b
mov r14, r8
mov qword [rsp + 0x48], r8
mov rdi, rdx
xor ebx, ebx
mov byte [rsp + 0xcc0], bl
cmp rcx, rbx
je 0x140033eed
cmp r9b, bl
je 0x140033ed6
mov r8b, 1
lea rdx, [rsp + 0xcc0]
call fcn.140053464
jmp 0x140033eed
lea rdx, [rsp + 0xcc0]
sub rdx, rcx
mov al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
cmp al, bl
jne 0x140033ee1
mov word [rsp + 0x14c0], bx
cmp rdi, rbx
je 0x140033f2f
cmp sil, bl
je 0x140033f14
mov r8b, 1
lea rdx, [rsp + 0x14c0]
mov rcx, rdi
call fcn.1400534f4
jmp 0x140033f2f
lea rcx, [rsp + 0x14c0]
sub rcx, rdi
movzx eax, word [rdi]
mov word [rcx + rdi], ax
add rdi, 2
cmp ax, bx
jne 0x140033f1f
lea rcx, [rsp + 0x90]
call fcn.14002fddc
nop
cmp byte [rsp + 0xcc0], bl
jne 0x140033f64
cmp word [rsp + 0x14c0], bx
jne 0x140033f64
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.140030184
jmp 0x140033fd4
cmp byte [rsp + 0x2530], bl
je 0x140033f8c
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0xcc0]
lea rcx, [rsp + 0x90]
call fcn.14003038c
jmp 0x140033fb0
mov byte [rsp + 0x20], bl
xor r9d, r9d
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0xcc0]
lea rcx, [rsp + 0x90]
call fcn.1400301ec
cmp al, bl
jne 0x140033fd4
cmp byte [rsp + 0x2530], bl
je 0x140033fcf
mov edx, 6
lea rcx, [0x1400ec668]
call fcn.140028ea4
nop
jmp 0x140034411
mov edi, ebx
mov edx, 0x405
lea rcx, [rsp + 0x50]
call fcn.140001700
nop
mov r15d, 0x400
mov r8, r15
mov r12, qword [rsp + 0x50]
mov rdx, r12
lea rcx, [rsp + 0x90]
call fcn.1400309f8
cmp eax, ebx
je 0x140034034
add edi, eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140001748
mov edx, edi
mov r12, qword [rsp + 0x50]
add rdx, r12
mov r8, r15
lea rcx, [rsp + 0x90]
call fcn.1400309f8
cmp eax, ebx
jne 0x140034008
mov eax, edi
add rax, r12
xor ecx, ecx
mov dword [rax], ecx
mov byte [rax + 4], cl
mov r13d, dword [rsp + 0x2538]
cmp r13d, 3
je 0x1400341ae
cmp r13d, ebx
jne 0x140034092
cmp edi, 4
jl 0x140034092
cmp byte [r12], 0xff
jne 0x140034092
cmp byte [r12 + 1], 0xfe
jne 0x140034092
lea edx, [rcx + 2]
cmp edi, edx
jle 0x140034092
lea rcx, [r12 + 2]
mov al, byte [rcx]
cmp al, 0x20
jae 0x140034089
cmp al, 0xd
je 0x140034089
cmp al, 0xa
jne 0x1400341ae
inc edx
inc rcx
cmp edx, edi
jl 0x140034077
mov rsi, r12
cmp byte [r12], bl
je 0x140034401
mov rbp, rsi
mov rcx, rbx
cmp byte [rsi], 0xd
je 0x1400340d9
cmp byte [rbp], 0xa
je 0x1400340d9
cmp byte [rbp], bl
je 0x1400340d9
cmp byte [rsp + 0x2548], bl
je 0x1400340d0
cmp byte [rbp], 0x2f
jne 0x1400340d0
cmp byte [rbp + 1], 0x2f
jne 0x1400340d0
mov byte [rbp], bl
mov rcx, rbp
inc rbp
cmp byte [rbp], 0xd
jne 0x1400340aa
mov byte [rbp], bl
mov rax, rbp
cmp rcx, rbx
cmovne rax, rcx
dec rax
cmp rax, rsi
jb 0x140034102
cmp byte [rax], 0x20
je 0x1400340f8
cmp byte [rax], 9
jne 0x140034102
mov byte [rax], bl
dec rax
cmp rax, rsi
jae 0x1400340ee
cmp byte [rsi], bl
je 0x14003418e
cmp byte [rsp + 0x2540], bl
je 0x140034134
cmp byte [rsi], 0x22
jne 0x140034134
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rsi - 2], 0x22
jne 0x140034134
mov byte [rcx + rsi - 2], bl
inc rsi
cmp r13d, 2
jne 0x140034146
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_OemToCharA]
cmp byte [rsp + 0x2550], bl
je 0x140034183
cmp byte [rsi], 0x25
jne 0x140034183
mov r8d, r15d
lea rdx, [rsp + 0x10c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
je 0x140034183
cmp eax, r15d
jae 0x140034183
lea rdx, [rsp + 0x10c0]
mov rcx, r14
call fcn.14006bb20
jmp 0x14003418e
mov rdx, rsi
mov rcx, r14
call fcn.14006bb20
lea rsi, [rbp + 1]
cmp byte [rsi], 0xd
je 0x14003419c
cmp byte [rsi], 0xa
jne 0x1400341a1
inc rsi
jmp 0x140034192
cmp byte [rsi], bl
jne 0x14003409f
jmp 0x140034401
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
shr rdx, 1
inc rdx
lea rcx, [rsp + 0x68]
call fcn.14000b860
nop
lea rdx, [rdi - 1]
mov r15, qword [rsp + 0x68]
cmp rdx, 2
jbe 0x140034218
lea rdi, [r12 + 2]
mov r8, 0xfffffffffffffffe
sub r8, r12
add rdx, 0xfffffffffffffffd
shr rdx, 1
inc rdx
movzx ecx, byte [rdi + 1]
mov eax, 0x100
imul cx, ax
movzx eax, byte [rdi]
add cx, ax
lea rax, [rdi + r8]
shr rax, 1
mov word [r15 + rax*2], cx
add rdi, 2
sub rdx, 1
jne 0x1400341ef
mov rsi, r15
mov r13, rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
cmp word [r15], bx
je 0x1400343ea
mov r12, rbx
mov r15, qword [rsp + 0x48]
mov r14, rsi
mov rcx, rbx
cmp word [rsi], 0xd
je 0x140034282
cmp word [r14], 0xa
je 0x140034282
cmp word [r14], bx
je 0x140034282
cmp byte [rsp + 0x2548], bl
je 0x140034277
cmp word [r14], 0x2f
jne 0x140034277
cmp word [r14 + 2], 0x2f
jne 0x140034277
mov word [r14], bx
mov rcx, r14
add r14, 2
cmp word [r14], 0xd
jne 0x14003424b
mov word [r14], bx
mov rax, r14
cmp rcx, rbx
cmovne rax, rcx
sub rax, 2
cmp rax, rsi
jb 0x1400342b1
cmp word [rax], 0x20
je 0x1400342a5
cmp word [rax], 9
jne 0x1400342b1
mov word [rax], bx
sub rax, 2
cmp rax, rsi
jae 0x140034299
cmp word [rsi], bx
je 0x1400343c1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
lea eax, [rcx - 1]
sub eax, r12d
lea eax, [rax*4 + 4]
cmp eax, ebx
jle 0x1400342f5
movsxd rdx, eax
lea rcx, [rsp + 0x30]
call fcn.140001748
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
cmp byte [rsp + 0x2540], bl
je 0x140034318
cmp word [rsi], 0x22
jne 0x140034318
movsxd rax, edi
cmp word [rsi + rax*2 - 2], 0x22
jne 0x140034318
mov word [rsi + rax*2 - 2], bx
add rsi, 2
mov r8, r12
mov rdx, r13
mov rcx, rsi
call fcn.140073c10
cmp byte [rsp + 0x2550], bl
je 0x1400343b3
cmp word [rsi], 0x25
jne 0x1400343b3
mov word [rsp + 0x1cc0], bx
mov edi, 1
mov r8d, 0x400
lea rdx, [rsp + 0x10c0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebp, eax
cmp eax, ebx
je 0x1400343b3
call fcn.14003ed2c
cmp eax, ebx
je 0x140034385
mov r8d, 0x400
lea rdx, [rsp + 0x1cc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp ebp, 0x400
jae 0x1400343b3
cmp edi, ebx
je 0x1400343b3
cmp edi, 0x400
jae 0x1400343b3
lea r8, [rsp + 0x1cc0]
lea rdx, [rsp + 0x10c0]
mov rcx, r15
call fcn.14006b890
jmp 0x1400343c1
mov r8, rsi
mov rdx, r13
mov rcx, r15
call fcn.14006b890
lea rsi, [r14 + 2]
cmp word [rsi], 0xd
je 0x1400343d1
cmp word [rsi], 0xa
jne 0x1400343d7
add rsi, 2
jmp 0x1400343c5
cmp word [rsi], bx
jne 0x14003423f
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
cmp r13, rbx
je 0x1400343f8
mov rcx, r13
call fcn.1400a8854
nop
mov rcx, r15
call fcn.1400a8854
nop
cmp r12, rbx
je 0x14003440f
mov rcx, r12
call fcn.1400a8854
nop
mov bl, 1
lea rcx, [rsp + 0x90]
call fcn.1400301b8
mov al, bl
mov rcx, qword [rsp + 0x24c0]
xor rcx, rsp
call fcn.1400a86e0
mov rbx, qword [rsp + 0x2528]
add rsp, 0x24d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret