Function at 0x140005bd4
Capabilities:
Check if file exists
Get file size
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x640]
sub rsp, 0x740
lea rdx, str._vpn_:
mov rdi, rcx
call main
lea rdx, str._fortinet_:_tunnels_:_
mov rcx, rdi
call main
mov rsi, 0xffffffff80000002
lea r8, [0x140006230]
mov rcx, rsi
lea rdx, str.SoftwareFortinetFortiClientSslvpnTunnels
mov r9, rdi
call fcn.140005860
mov r14d, 0x2c
mov rcx, rdi
mov edx, r14d
call fcn.1400013d0
lea rdx, [0x14000a558]
mov rcx, rdi
call main
lea rdx, str._sonicwall_:_cmd_profiles_:_
mov rcx, rdi
call main
lea r9, [rbp + 0x670]
mov rcx, rsi
lea r8, str.InstallDir
lea rdx, str.SoftwareSonicWallSSL_VPN_NetExtenderStandalone
call fcn.140005964
test eax, eax
je 0x140005d68
mov rdx, qword [rbp + 0x670]
lea r8, str.NEcli.exe
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140005d5c
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea rdx, str._displayprofile
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x668]
lea rcx, [rbp - 0x30]
call fcn.140006638
lea rcx, [rsp + 0x60]
mov rbx, rax
call fcn.1400042f8
lea r8, [0x140009610]
mov rcx, rdi
lea rdx, [rsp + 0x60]
call fcn.140003d24
test eax, eax
je 0x140005d3f
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x3c], 0x7530
call fcn.140004254
test al, al
je 0x140005d35
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140004490
test al, al
je 0x140005d35
lea rdx, [0x140008444]
mov rcx, rdi
call main
lea rcx, [rsp + 0x60]
call fcn.140004118
lea rcx, [rsp + 0x60]
call fcn.1400042d8
mov edx, r14d
mov rcx, rdi
call fcn.1400013d0
mov rcx, rbx
call fcn.140001bfc
mov rcx, qword [rbp + 0x670]
call fcn.140001bfc
lea rdx, [0x14000a1dc]
mov rcx, rdi
call main
lea rdx, str._registry_profiles_:_
mov rcx, rdi
call main
mov r9, rdi
lea r8, [0x1400063b0]
lea rdx, str.SoftwareSonicWALLSSL_VPN_NetExtenderStandaloneProfiles
mov rcx, rsi
call fcn.140005860
mov edx, r14d
mov rcx, rdi
call fcn.1400013d0
lea rdx, [0x1400087d0]
mov rcx, rdi
call main
lea rdx, [0x14000a61c]
mov rcx, rdi
call main
lea rdx, str._cisco_:__preferences.xml_:_
mov rcx, rdi
call main
mov r8d, 0x104
lea rdx, [rbp + 0x220]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x140006087
lea rdx, str.CiscoCisco_AnyConnect_Secure_Mobility_Clientpreferences.xml
lea rcx, [rbp + 0x220]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x220]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006087
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x220]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140006087
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.140001c24
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x668]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006079
mov r8d, dword [rbp + 0x668]
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140005a50
lea rdx, str._user_:__
mov rcx, rdi
call main
lea rdx, str._DefaultUser_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
mov esi, 0xfe
test rax, rax
jle 0x140005f3c
lea rdx, [rax + 0xd]
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.140005bc0
lea rdx, str.__DefaultUser_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
lea rcx, [rax - 1]
cmp rcx, rsi
ja 0x140005f3c
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.140005aa0
lea rcx, [rbp - 0x30]
mov byte [rbp + rax - 0x30], 0
call fcn.140003840
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000134c
mov rcx, rbx
call fcn.140001bfc
lea rdx, str.____host_:__
mov rcx, rdi
call main
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140005bc0
lea rdx, str._DefaultHostName_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
test rax, rax
jle 0x140005fd3
lea rdx, [rax + 0x11]
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.140005bc0
lea rdx, str.__DefaultHostName_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
lea rcx, [rax - 1]
cmp rcx, rsi
ja 0x140005fd3
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.140005aa0
lea rcx, [rbp - 0x30]
mov byte [rbp + rax - 0x30], 0
call fcn.140003840
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000134c
mov rcx, rbx
call fcn.140001bfc
lea rdx, str.____group_:__
mov rcx, rdi
call main
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140005bc0
lea rdx, str._DefaultGroup_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
test rax, rax
jle 0x14000606a
lea rdx, [rax + 0xe]
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.140005bc0
lea rdx, str.__DefaultGroup_
lea rcx, [rsp + 0x40]
call fcn.140005b8c
lea rcx, [rax - 1]
cmp rcx, rsi
ja 0x14000606a
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.140005aa0
lea rcx, [rbp - 0x30]
mov byte [rbp + rax - 0x30], 0
call fcn.140003840
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000134c
mov rcx, rbx
call fcn.140001bfc
lea rdx, [0x1400087b8]
mov rcx, rdi
call main
mov rcx, r14
call fcn.140001bfc
mov r14d, 0x2c
lea rdx, [0x14000a7d8]
mov rcx, rdi
call main
lea rdx, str._rdp_:_servers_:_
mov rcx, rdi
call main
mov r9, rdi
lea r8, [0x1400062f0]
lea rdx, str.SoftwareMicrosoftTerminal_Server_ClientServers
mov rcx, 0xffffffff80000001
call fcn.140005860
mov edx, r14d
mov rcx, rdi
call fcn.1400013d0
lea rdx, [0x14000a558]
mov rcx, rdi
call main
lea rdx, str._pulsesecure_:
mov rcx, rdi
call main
mov r8d, 0x104
lea rdx, [rbp + 0x430]
lea rcx, str.ProgramData
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x1400061f8
lea rdx, str.Pulse_SecureConnectionStoreconnstore.dat
lea rcx, [rbp + 0x430]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x430]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400061f8
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x430]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400061f8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, 1
mov ebx, eax
lea ecx, [rax + 1]
call fcn.140001bd0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x668]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400061f8
mov ecx, dword [rbp + 0x668]
lea rdx, str._connstore.dat_:__
mov byte [rcx + r14], 0
mov rcx, rdi
call main
mov rcx, r14
call fcn.140003840
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.14000134c
lea rdx, [0x1400087b8]
mov rcx, rdi
call main
mov rcx, rbx
call fcn.140001bfc
lea rdx, [0x140008448]
mov rcx, rdi
call main
lea rdx, [0x140008448]
mov rcx, rdi
call main
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret