Function at 0x140043668
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30e0
call fcn.1400fe810
sub rsp, rax
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x3130], rbx
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x30d0], rax
mov dil, r9b
mov qword [rsp + 0x30], rdx
xor ebx, ebx
mov word [rsp + 0x10d0], bx
mov eax, 0x800
cmp rcx, rbx
je 0x1400436f4
cmp r8b, bl
je 0x1400436e1
mov byte [rsp + 0x20], bl
mov r9b, 1
mov r8, rax
lea rdx, [rsp + 0x10d0]
call fcn.1400510fc
jmp 0x1400436f4
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x10d0]
call fcn.140065d2c
lea rcx, [rsp + 0xa0]
call fcn.140041020
nop
cmp word [rsp + 0x10d0], bx
je 0x140043760
cmp dil, bl
je 0x140043728
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.140041228
jmp 0x140043740
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xa0]
call fcn.1400410a4
cmp al, bl
jne 0x14004376b
cmp dil, bl
je 0x14004375b
mov edx, 6
lea rcx, [0x140149f00]
call fcn.14003c50c
nop
jmp 0x140043bb2
mov dword [rsp + 0xb4], 1
mov edi, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov edx, 0x1005
lea rcx, [rsp + 0x58]
call fcn.14000127c
nop
mov esi, 0x1000
mov r8, rsi
mov r13, qword [rsp + 0x58]
mov rdx, r13
lea rcx, [rsp + 0xa0]
call fcn.140041aa8
cmp eax, ebx
je 0x1400437de
add edi, eax
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14000127c
mov edx, edi
mov r13, qword [rsp + 0x58]
add rdx, r13
mov r8, rsi
lea rcx, [rsp + 0xa0]
call fcn.140041aa8
cmp eax, ebx
jne 0x1400437b2
mov eax, edi
add rax, r13
xor ecx, ecx
mov dword [rax], ecx
mov byte [rax + 4], cl
mov qword [rsp + 0x38], rbx
mov r14, rbx
mov qword [rsp + 0x40], rbx
mov r15, rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov r12d, dword [rsp + 0x3140]
cmp r12d, 3
je 0x1400439cd
cmp r12d, ebx
jne 0x140043854
cmp edi, 4
jl 0x140043854
cmp byte [r13], 0xff
jne 0x140043854
cmp byte [r13 + 1], 0xfe
jne 0x140043854
lea edx, [rcx + 2]
cmp edi, edx
jle 0x140043854
lea rcx, [r13 + 2]
mov al, byte [rcx]
cmp al, 0x20
jae 0x14004384b
cmp al, 0xd
je 0x14004384b
cmp al, 0xa
jne 0x1400439cd
inc edx
inc rcx
cmp edx, edi
jl 0x140043839
mov rsi, r13
cmp byte [r13], bl
je 0x140043b92
mov r13, qword [rsp + 0x38]
mov rbp, rsi
mov rcx, rbx
cmp byte [rsi], 0xd
je 0x1400438a0
cmp byte [rbp], 0xa
je 0x1400438a0
cmp byte [rbp], bl
je 0x1400438a0
cmp byte [rsp + 0x3150], bl
je 0x140043897
cmp byte [rbp], 0x2f
jne 0x140043897
cmp byte [rbp + 1], 0x2f
jne 0x140043897
mov byte [rbp], bl
mov rcx, rbp
inc rbp
cmp byte [rbp], 0xd
jne 0x140043871
mov byte [rbp], bl
mov rax, rbp
cmp rcx, rbx
cmovne rax, rcx
dec rax
cmp rax, rsi
jb 0x1400438c9
cmp byte [rax], 0x20
je 0x1400438bf
cmp byte [rax], 9
jne 0x1400438c9
mov byte [rax], bl
dec rax
cmp rax, rsi
jae 0x1400438b5
cmp byte [rsi], bl
je 0x1400439a8
cmp byte [rsp + 0x3148], bl
je 0x1400438fb
cmp byte [rsi], 0x22
jne 0x1400438fb
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rsi - 2], 0x22
jne 0x1400438fb
mov byte [rcx + rsi - 2], bl
inc rsi
cmp r12d, 2
jne 0x14004390d
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_OemToCharA]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
cmp rcx, r15
jbe 0x140043941
sub rcx, r14
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.1400190c4
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
jmp 0x140043949
mov r14, rcx
mov qword [rsp + 0x40], rcx
mov r8, r14
mov rdx, r13
mov rcx, rsi
call fcn.1400688b0
cmp byte [rsp + 0x3158], bl
je 0x14004399b
cmp byte [rsi], 0x25
jne 0x14004399b
mov r8d, 0x800
lea rdx, [rsp + 0x20d0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x14004399b
cmp eax, 0x800
jae 0x14004399b
lea rdx, [rsp + 0x20d0]
mov rcx, qword [rsp + 0x30]
call fcn.1400661a4
jmp 0x1400439a8
mov rdx, r13
mov rcx, qword [rsp + 0x30]
call fcn.1400661a4
lea rsi, [rbp + 1]
cmp byte [rsi], 0xd
je 0x1400439b6
cmp byte [rsi], 0xa
jne 0x1400439bb
inc rsi
jmp 0x1400439ac
cmp byte [rsi], bl
jne 0x140043866
mov r13, qword [rsp + 0x58]
jmp 0x140043b92
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
mov rdi, qword [rsp + 0x60]
mov rdx, rdi
shr rdx, 1
inc rdx
lea rcx, [rsp + 0x78]
call fcn.1400190c4
nop
lea rdx, [rdi - 1]
mov r12, qword [rsp + 0x78]
cmp rdx, 2
jbe 0x140043a53
lea rdi, [r13 + 2]
mov r8, 0xfffffffffffffffe
sub r8, r13
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, [r8 + rdi]
shr rax, 1
mov word [r12 + rax*2], cx
add rdi, 2
sub rdx, 1
jne 0x140043a2a
mov rsi, r12
cmp word [r12], bx
je 0x140043b89
mov r13, qword [rsp + 0x30]
mov rbp, rsi
mov rcx, rbx
cmp word [rsi], 0xd
je 0x140043aa8
cmp word [rbp], 0xa
je 0x140043aa8
cmp word [rbp], bx
je 0x140043aa8
cmp byte [rsp + 0x3150], bl
je 0x140043a9d
cmp word [rbp], 0x2f
jne 0x140043a9d
cmp word [rbp + 2], 0x2f
jne 0x140043a9d
mov word [rbp], bx
mov rcx, rbp
add rbp, 2
cmp word [rbp], 0xd
jne 0x140043a72
mov word [rbp], bx
mov rax, rbp
cmp rcx, rbx
cmovne rax, rcx
sub rax, 2
cmp rax, rsi
jb 0x140043ad7
cmp word [rax], 0x20
je 0x140043acb
cmp word [rax], 9
jne 0x140043ad7
mov word [rax], bx
sub rax, 2
cmp rax, rsi
jae 0x140043abf
cmp word [rsi], bx
je 0x140043b65
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp byte [rsp + 0x3148], bl
je 0x140043b0f
cmp word [rsi], 0x22
jne 0x140043b0f
cmp word [rsi + rcx*2 - 4], 0x22
jne 0x140043b0f
mov word [rsi + rcx*2 - 4], bx
add rsi, 2
cmp byte [rsp + 0x3158], bl
je 0x140043b5a
cmp word [rsi], 0x25
jne 0x140043b5a
mov word [rsp + 0x20d0], bx
mov r8d, 0x800
lea rdx, [rsp + 0x20d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x140043b5a
cmp eax, 0x800
jae 0x140043b5a
lea rdx, [rsp + 0x20d0]
mov rcx, r13
call fcn.1400661a4
jmp 0x140043b65
mov rdx, rsi
mov rcx, r13
call fcn.1400661a4
lea rsi, [rbp + 2]
cmp word [rsi], 0xd
je 0x140043b75
cmp word [rsi], 0xa
jne 0x140043b7b
add rsi, 2
jmp 0x140043b69
cmp word [rsi], bx
jne 0x140043a66
mov r13, qword [rsp + 0x58]
mov rcx, r12
call fcn.1400e9aa4
nop
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x140043ba2
call fcn.1400e9aa4
nop
cmp r13, rbx
je 0x140043bb0
mov rcx, r13
call fcn.1400e9aa4
nop
mov bl, 1
lea rcx, [rsp + 0xa0]
call fcn.1400417e8
mov al, bl
mov rcx, qword [rsp + 0x30d0]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x3130]
add rsp, 0x30e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret