Function at 0x1401c3640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x818
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x800], rax
mov rax, qword [rsp + 0x830]
add rax, 0x90
mov rcx, rax
call fcn.140016540
mov rax, qword [rsp + 0x830]
add rax, 0xd0
mov qword [rsp + 0xb8], rax
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.1401c0540
movzx eax, al
test eax, eax
je 0x1401c36f4
lea rdx, [0x14032ab88]
lea rcx, [rsp + 0x3c8]
call fcn.14002b570
nop
lea rdx, [rsp + 0x3c8]
lea rcx, [rsp + 0x210]
call fcn.1401b3140
lea rdx, [0x1408c8db0]
lea rcx, [rsp + 0x210]
call fcn.140224078
nop
lea rcx, [rsp + 0x3c8]
call fcn.140015480
nop
lea rcx, [rsp + 0x60]
call fcn.14000a4a0
nop
lea rcx, [rsp + 0x58]
call fcn.14000a4a0
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3d10
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1401efe00
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1401c3b98
lea rcx, [rsp + 0x48]
call fcn.14000a4a0
nop
lea rcx, [rsp + 0x58]
call fcn.1401c05c0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x48]
call fcn.1401c06e0
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0xd0]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c3806
lea rdx, str.Failed_to_retrieve_sites_children:
lea rcx, [rsp + 0x3e8]
call fcn.1400179b0
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x3e8]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a800
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.1401c05c0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xe0]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x6c]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c38bb
lea rdx, str.Failed_to_retrieve_sites_count:
lea rcx, [rsp + 0x408]
call fcn.1400179b0
mov qword [rsp + 0x1c8], rax
lea rdx, [rsp + 0x408]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x408]
call fcn.14000a800
mov dword [rsp + 0x28], 0
jmp 0x1401c38cf
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x28], eax
jae 0x1401c3b89
lea rcx, [rsp + 0x30]
call fcn.14000a4a0
nop
lea rcx, [rsp + 0x348]
call fcn.14000a280
nop
lea rcx, [rsp + 0x328]
call fcn.14000a280
nop
lea rcx, [rsp + 0x48]
call fcn.1401c05c0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x30]
call fcn.1401c06e0
mov qword [rsp + 0x100], rax
mov r8w, 3
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0x290]
call fcn.1401ef840
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x228]
mov rdi, rax
mov rsi, qword [rsp + 0xf8]
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x240]
lea rcx, [rsp + 0x228]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x258]
lea rcx, [rsp + 0x240]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x270]
lea rcx, [rsp + 0x258]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x100]
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0x108]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 8], ecx
lea rcx, [rsp + 0x290]
call fcn.14008f400
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c3a7a
lea rdx, str.Failed_to_retrieve_sites_child_entry:
lea rcx, [rsp + 0x428]
call fcn.1400179b0
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x428]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x428]
call fcn.14000a800
lea r8, [rsp + 0x348]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3bf0
lea rdx, [0x14032aca8]
lea rcx, [rsp + 0x348]
call fcn.14003a7a0
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1401c3b5e
lea rdx, [0x14032ad10]
lea rcx, [rsp + 0x448]
call fcn.1400179b0
mov qword [rsp + 0x1d8], rax
lea r9, [rsp + 0x328]
lea r8, [rsp + 0x448]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3a20
nop
lea rcx, [rsp + 0x448]
call fcn.14000a800
lea rdx, [0x140325eac]
lea rcx, [rsp + 0x328]
call fcn.14003a7a0
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x1401c3b5e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1401efc80
nop
lea rcx, [rsp + 0x328]
call fcn.14000a800
nop
lea rcx, [rsp + 0x348]
call fcn.14000a800
nop
lea rcx, [rsp + 0x30]
call fcn.1401c0360
jmp 0x1401c3b89
lea rcx, [rsp + 0x328]
call fcn.14000a800
nop
lea rcx, [rsp + 0x348]
call fcn.14000a800
nop
lea rcx, [rsp + 0x30]
call fcn.1401c0360
jmp 0x1401c38c5
lea rcx, [rsp + 0x48]
call fcn.1401c0360
jmp 0x1401c3c8b
mov rax, qword [rsp + 0x830]
mov dword [rax + 8], 1
lea rdx, str.Failed_to_find_a_site_ID_to_match__
lea rcx, [rsp + 0x568]
call fcn.1400179b0
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x830]
add rax, 0x10
mov r8, rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x548]
call fcn.140024f50
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
lea r8, [0x140325f34]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x528]
call fcn.140024fb0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x830]
add rax, 0x90
mov rdx, qword [rsp + 0x138]
mov rcx, rax
call fcn.14001efa0
nop
lea rcx, [rsp + 0x528]
call fcn.14000a800
nop
lea rcx, [rsp + 0x548]
call fcn.14000a800
nop
lea rcx, [rsp + 0x568]
call fcn.14000a800
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1401efe00
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x1401c422d
lea rcx, [rsp + 0x50]
call fcn.14000a4a0
nop
lea rcx, [rsp + 0x60]
call fcn.1401c05c0
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x50]
call fcn.1401c06e0
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0x150]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c3d75
lea rdx, str.Failed_to_retrieve_applications_children:
lea rcx, [rsp + 0x468]
call fcn.1400179b0
mov qword [rsp + 0x1e0], rax
lea rdx, [rsp + 0x468]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x468]
call fcn.14000a800
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x50]
call fcn.1401c05c0
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x160], rax
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x160]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x78]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c3e2a
lea rdx, str.Failed_to_retrieve_applications_count:
lea rcx, [rsp + 0x488]
call fcn.1400179b0
mov qword [rsp + 0x1e8], rax
lea rdx, [rsp + 0x488]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x488]
call fcn.14000a800
mov dword [rsp + 0x2c], 0
jmp 0x1401c3e3e
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x2c], eax
jae 0x1401c421e
lea rcx, [rsp + 0x38]
call fcn.14000a4a0
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a280
nop
lea rcx, [rsp + 0x388]
call fcn.14000a280
nop
lea rcx, [rsp + 0x368]
call fcn.14000a280
nop
lea rcx, [rsp + 0x50]
call fcn.1401c05c0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x38]
call fcn.1401c06e0
mov qword [rsp + 0x180], rax
mov r8w, 3
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x310]
call fcn.1401ef840
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
lea rax, [rsp + 0x2a8]
mov rdi, rax
mov rsi, qword [rsp + 0x178]
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2c0]
lea rcx, [rsp + 0x2a8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2d8]
lea rcx, [rsp + 0x2c0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2f0]
lea rcx, [rsp + 0x2d8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.msi.dll_MsiDatabaseImportW
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x180]
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x188]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x830]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 8], ecx
lea rcx, [rsp + 0x310]
call fcn.14008f400
mov rax, qword [rsp + 0x830]
cmp dword [rax + 8], 0
jge 0x1401c3ff7
lea rdx, str.Failed_to_retrieve_applications_child_entry:
lea rcx, [rsp + 0x4a8]
call fcn.1400179b0
mov qword [rsp + 0x1f0], rax
lea rdx, [rsp + 0x4a8]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x4a8]
call fcn.14000a800
lea r8, [rsp + 0x3a8]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3bf0
lea rdx, [0x14032ad68]
lea rcx, [rsp + 0x3a8]
call fcn.14003a7a0
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1401c41e5
lea rdx, [0x14032af50]
lea rcx, [rsp + 0x4c8]
call fcn.1400179b0
mov qword [rsp + 0x1f8], rax
lea r9, [rsp + 0x388]
lea r8, [rsp + 0x4c8]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3a20
nop
lea rcx, [rsp + 0x4c8]
call fcn.14000a800
lea rdx, [0x140325fdc]
lea rcx, [rsp + 0x388]
call fcn.14003a7a0
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x1401c41e5
lea rdx, [0x14032afa0]
lea rcx, [rsp + 0x4e8]
call fcn.1400179b0
mov qword [rsp + 0x200], rax
lea r9, [rsp + 0x368]
lea r8, [rsp + 0x4e8]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x830]
call fcn.1401e3a20
nop
lea rcx, [rsp + 0x4e8]
call fcn.14000a800
lea rax, [rsp + 0x5f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x368]
call fcn.14000c690
mov r8d, 0x104
lea rdx, [rsp + 0x5f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jbe 0x1401c418d
lea rdx, [rsp + 0x5f0]
mov rcx, qword [rsp + 0x838]
call fcn.140015550
nop
lea rcx, [rsp + 0x368]
call fcn.14000a800
nop
lea rcx, [rsp + 0x388]
call fcn.14000a800
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x38]
call fcn.1401c0360
jmp 0x1401c421e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000c800
mov rcx, qword [rsp + 0x830]
mov dword [rcx + 8], eax
lea rdx, str.Failed_to_expand_applications_physical_path:
lea rcx, [rsp + 0x508]
call fcn.1400179b0
mov qword [rsp + 0x208], rax
lea rdx, [rsp + 0x508]
mov rcx, qword [rsp + 0x830]
call fcn.1401e58f0
nop
lea rcx, [rsp + 0x508]
call fcn.14000a800
nop
lea rcx, [rsp + 0x368]
call fcn.14000a800
nop
lea rcx, [rsp + 0x388]
call fcn.14000a800
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x38]
call fcn.1401c0360
jmp 0x1401c3e34
lea rcx, [rsp + 0x50]
call fcn.1401c0360
jmp 0x1401c4321
mov rax, qword [rsp + 0x830]
mov dword [rax + 8], 1
lea rdx, str.Failed_to_find_the_root_application_for_site_ID__
lea rcx, [rsp + 0x5c8]
call fcn.1400179b0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x830]
add rax, 0x10
mov r8, rax
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x5a8]
call fcn.140024f50
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
lea r8, [0x1403262b4]
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x588]
call fcn.140024fb0
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x830]
add rax, 0x90
mov rdx, qword [rsp + 0x1b8]
mov rcx, rax
call fcn.14001efa0
nop
lea rcx, [rsp + 0x588]
call fcn.14000a800
nop
lea rcx, [rsp + 0x5a8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x5c8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x58]
call fcn.1401c0360
nop
lea rcx, [rsp + 0x60]
call fcn.1401c0360
nop
jmp 0x1401c4339
mov rax, qword [rsp + 0x830]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x818
pop rdi
pop rsi
ret