Function at 0x140016f30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x1401423c0]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rsi, rcx
lea rcx, [rsp + 0x461]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x460], 0
call fcn.1400e1fc0
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, SetErrorInfo
mov byte [rsp + 0x90], 0
call fcn.1400e1fc0
xor edx, edx
lea rcx, [rsp + 0x21]
lea r8d, [rdx + 0x63]
mov byte [rsp + 0x20], 0
call fcn.1400e1fc0
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0xf9
mov byte [rsp + 0x160], 0
call fcn.1400e1fc0
lea rcx, [rsp + 0x261]
xor edx, edx
mov r8d, 0x1f3
mov byte [rsp + 0x260], 0
call fcn.1400e1fc0
lea rdx, [rsp + 0x20]
lea rcx, str.UserProfile
mov r8d, WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
lea rdx, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140017010
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasb al, byte [rdi]
mov rax, qword [str.Application_DataMozillaFirefox_]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
mov rax, qword [0x140111f10]
lea rdx, [rsp + 0x90]
mov qword [rdi + 7], rax
mov rax, qword [0x140111f18]
mov qword [rdi + 0xf], rax
mov rax, qword [0x140111f20]
mov qword [rdi + 0x17], rax
movzx eax, word [0x140111f28]
mov word [rdi + 0x1f], ax
movzx eax, byte [0x140111f2a]
mov byte [rdi + 0x21], al
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140017090
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
mov rax, qword [str.profiles.ini]
lea rdx, [0x140111b40]
mov qword [rdi - 1], rax
mov eax, dword [0x140111f38]
lea rcx, [rsp + 0x160]
mov dword [rdi + 7], eax
movzx eax, word [0x140111f3c]
mov word [rdi + 0xb], ax
call fcn.1400e48a4
mov rbx, rax
test rax, rax
je 0x140017231
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x260]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x90]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140017110
lea rcx, [rsp + 0x460]
mov r8, rbx
mov edx, 0x400
xor edi, edi
call fcn.1400fd548
test rax, rax
je 0x1400171ef
nop
lea rcx, [rsp + 0x460]
test edi, edi
jne 0x140017164
lea rdx, str.Namedefault
call fcn.1400e34f0
test rax, rax
je 0x140017175
mov edi, 1
jmp 0x140017175
lea rdx, str.Path
call fcn.1400e34f0
test rax, rax
jne 0x140017191
lea rcx, [rsp + 0x460]
mov r8, rbx
mov edx, 0x400
call fcn.1400fd548
test rax, rax
jne 0x140017140
jmp 0x1400171ef
lea rcx, [rsp + 0x460]
mov edx, 0x3d
call fcn.1400e1ec8
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x260]
mov r11, rax
xor eax, eax
repne scasb al, byte [rdi]
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [r11 + rdx + 1]
inc rdx
mov byte [rdi + rdx - 2], cl
test cl, cl
jne 0x1400171c0
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x260]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x260]
not rcx
mov byte [rcx + rax - 2], 0
mov rcx, rbx
call fcn.1400e46f4
lea rax, [rsp + 0x260]
mov rdx, rsi
sub rdx, rax
lea r11, [rsp + 0x260]
nop dword [rax]
movzx eax, byte [r11]
inc r11
mov byte [rdx + r11 - 1], al
test al, al
jne 0x140017210
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea eax, [rcx - 1]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400e2890
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret