Function at 0x140001a90
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rdi
sub rsp, 0x550
mov rdi, rsp
mov ecx, 0x154
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x478], 0xfffffffffffffffe
mov rax, qword [0x140015038]
xor rax, rsp
mov qword [rsp + 0x548], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
jne 0x140001b04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14000d608]
mov ecx, 0xdc
call fcn.140001470
movzx eax, byte [section..data]
test eax, eax
je 0x140001b67
lea r8, [rsp + 0x30]
lea rdx, str.EXE_containing_current_process_is__S
lea rcx, [rsp + 0x3d0]
call fcn.1400058c0
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x480]
mov qword [rsp + 0x488], rax
mov rcx, qword [rsp + 0x488]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x3d0]
call fcn.1400063c0
jmp 0x140001b67
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140001b9e
lea rdx, str.PathRemoveFileSpec_failed
lea rcx, [rsp + 0x3e0]
call fcn.1400062b0
lea rdx, [0x140012f70]
lea rcx, [rsp + 0x3e0]
call sub.VCRUNTIME140.dll__CxxThrowException
movzx eax, byte [section..data]
test eax, eax
je 0x140001c01
lea r8, [rsp + 0x30]
lea rdx, str.parent_of_EXE_containing_current_process_is__S
lea rcx, [rsp + 0x3f8]
call fcn.1400058c0
mov qword [rsp + 0x490], rax
mov rax, qword [rsp + 0x490]
mov qword [rsp + 0x498], rax
mov rcx, qword [rsp + 0x498]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x3f8]
call fcn.1400063c0
jmp 0x140001c01
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x248]
call fcn.140005d10
mov qword [rsp + 0x4a0], rax
mov rax, qword [rsp + 0x4a0]
mov qword [rsp + 0x4a8], rax
lea r8, str.AppleVersions
mov rdx, qword [rsp + 0x4a8]
lea rcx, [rsp + 0x278]
call fcn.140004120
nop
lea rcx, [rsp + 0x248]
call fcn.140006560
lea rdx, str..dll
lea rcx, [rsp + 0x278]
call fcn.140006be0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2a8]
call fcn.140005d10
mov qword [rsp + 0x4b0], rax
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x4b8], rax
lea r8, str.MobileDevice.dll
mov rdx, qword [rsp + 0x4b8]
lea rcx, [rsp + 0x2d8]
call fcn.140004120
nop
lea rcx, [rsp + 0x2a8]
call fcn.140006560
lea rcx, [rsp + 0x2d8]
call fcn.140008140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001ce5
mov dword [rsp + 0x4c0], 1
jmp 0x140001cf0
mov dword [rsp + 0x4c0], 0
movzx eax, byte [rsp + 0x4c0]
mov byte [rsp + 0x304], al
movzx eax, byte [section..data]
test eax, eax
je 0x140001d6d
lea rcx, [rsp + 0x2d8]
call fcn.140008140
mov r8, rax
lea rdx, str.found__S
lea rcx, [rsp + 0x408]
call fcn.1400058c0
mov qword [rsp + 0x4c8], rax
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x4d0], rax
mov rcx, qword [rsp + 0x4d0]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x408]
call fcn.1400063c0
jmp 0x140001d6d
movzx eax, byte [section..data]
test eax, eax
je 0x140001ddb
lea rcx, [rsp + 0x278]
call fcn.140008140
mov r8, rax
lea rdx, str.potential_path_to_AppleVersions_DLL_is__S
lea rcx, [rsp + 0x418]
call fcn.1400058c0
mov qword [rsp + 0x4d8], rax
mov rax, qword [rsp + 0x4d8]
mov qword [rsp + 0x4e0], rax
mov rcx, qword [rsp + 0x4e0]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x418]
call fcn.1400063c0
jmp 0x140001ddb
lea rcx, [rsp + 0x278]
call fcn.140008140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x308], eax
cmp dword [rsp + 0x308], 0xffffffff
jne 0x140001e57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30c], eax
cmp dword [rsp + 0x30c], 2
je 0x140001e3c
cmp dword [rsp + 0x30c], 3
je 0x140001e3c
mov r8d, dword [rsp + 0x30c]
lea rdx, [0x14000d758]
mov ecx, 0xf1
call fcn.140001470
movzx eax, byte [section..data]
test eax, eax
je 0x140001e57
lea rcx, str.found_no_file_system_object_along_path_to_AppleVersions_DLL
call fcn.140001240
jmp 0x140001e57
mov eax, dword [rsp + 0x308]
and eax, 0x10
test eax, eax
jne 0x140001f58
movzx eax, byte [section..data]
test eax, eax
je 0x140001ec7
lea rdx, str.found_file_along_path_to_AppleVersions_DLL
lea rcx, [rsp + 0x428]
call fcn.1400058c0
mov qword [rsp + 0x4e8], rax
mov rax, qword [rsp + 0x4e8]
mov qword [rsp + 0x4f0], rax
mov rcx, qword [rsp + 0x4f0]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x428]
call fcn.1400063c0
jmp 0x140001ec7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140001ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14000d808]
mov ecx, 0x109
call fcn.140001470
movzx eax, byte [section..data]
test eax, eax
je 0x140001f53
lea r8, [rsp + 0x30]
lea rdx, [0x14000d848]
lea rcx, [rsp + 0x438]
call fcn.1400058c0
mov qword [rsp + 0x4f8], rax
mov rax, qword [rsp + 0x4f8]
mov qword [rsp + 0x500], rax
mov rcx, qword [rsp + 0x500]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x438]
call fcn.1400063c0
jmp 0x140001f53
jmp 0x140002285
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.AppleApplicationSupportSDK
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x310], eax
cmp dword [rsp + 0x310], 0
je 0x140002085
movzx eax, byte [section..data]
test eax, eax
je 0x140001fa0
lea rcx, str.environment_variable_AppleApplicationSupportSDK_is_defined
call fcn.140001240
jmp 0x140001fa0
lea rax, str.Program_FilesCommon_FilesAppleApple_Application_Support
mov qword [rsp + 0x318], rax
mov r9, qword [rsp + 0x318]
lea r8, [rsp + 0x30]
lea rdx, str._s_s
lea rcx, [rsp + 0x328]
call fcn.1400059b0
nop
lea rcx, [rsp + 0x328]
call fcn.140006940
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140002005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14000d988]
mov ecx, 0x124
call fcn.140001470
movzx eax, byte [section..data]
test eax, eax
je 0x140002073
lea rcx, [rsp + 0x328]
call fcn.140006940
mov r8, rax
lea rdx, [0x14000d9c8]
lea rcx, [rsp + 0x448]
call fcn.1400058c0
mov qword [rsp + 0x508], rax
mov rax, qword [rsp + 0x508]
mov qword [rsp + 0x510], rax
mov rcx, qword [rsp + 0x510]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x448]
call fcn.1400063c0
jmp 0x140002073
lea rcx, [rsp + 0x328]
call fcn.1400063c0
jmp 0x140002285
movzx eax, byte [section..data]
test eax, eax
je 0x1400020a0
lea rcx, str.environment_variable_AppleApplicationSupportSDK_NOT_defined__falling_back_to_customer_installation
call fcn.140001240
jmp 0x1400020a0
lea rcx, [rsp + 0x358]
call fcn.140005de0
nop
movzx eax, byte [rsp + 0x304]
test eax, eax
je 0x140002102
lea r8, str.AASInstallDir
lea rdx, str.Apple_Mobile_Device_Support
lea rcx, [rsp + 0x388]
call fcn.140001930
mov qword [rsp + 0x518], rax
mov rdx, qword [rsp + 0x518]
lea rcx, [rsp + 0x358]
call fcn.1400067a0
lea rcx, [rsp + 0x388]
call fcn.140006560
nop
jmp 0x140002102
movzx eax, byte [rsp + 0x304]
test eax, eax
je 0x140002122
lea rcx, [rsp + 0x358]
call fcn.140008320
movzx eax, al
test eax, eax
je 0x140002167
lea r8, str.InstallDir
lea rdx, str.Apple_Application_Support
lea rcx, [rsp + 0x3a8]
call fcn.140001930
mov qword [rsp + 0x520], rax
mov rdx, qword [rsp + 0x520]
lea rcx, [rsp + 0x358]
call fcn.1400067a0
lea rcx, [rsp + 0x3a8]
call fcn.140006560
movzx eax, byte [section..data]
test eax, eax
je 0x1400021d5
lea rcx, [rsp + 0x358]
call fcn.140008140
mov r8, rax
lea rdx, str.AAS_path_is__S
lea rcx, [rsp + 0x458]
call fcn.1400058c0
mov qword [rsp + 0x528], rax
mov rax, qword [rsp + 0x528]
mov qword [rsp + 0x530], rax
mov rcx, qword [rsp + 0x530]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x458]
call fcn.1400063c0
jmp 0x1400021d5
lea rcx, [rsp + 0x358]
call fcn.140008140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x140002209
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14000db20]
mov ecx, 0x13e
call fcn.140001470
movzx eax, byte [section..data]
test eax, eax
je 0x140002277
lea rcx, [rsp + 0x358]
call fcn.140008140
mov r8, rax
lea rdx, str.called_SetDllDirectoryW_successfully_with_path__S
lea rcx, [rsp + 0x468]
call fcn.1400058c0
mov qword [rsp + 0x538], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x540], rax
mov rcx, qword [rsp + 0x540]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x468]
call fcn.1400063c0
jmp 0x140002277
lea rcx, [rsp + 0x358]
call fcn.140006560
nop
lea rcx, [rsp + 0x2d8]
call fcn.140006560
nop
lea rcx, [rsp + 0x278]
call fcn.140006560
mov rcx, rsp
lea rdx, [0x14000f510]
call fcn.140009700
mov rcx, qword [rsp + 0x548]
xor rcx, rsp
call fcn.140009880
add rsp, 0x550
pop rdi
ret