Function at 0x140033a1c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call fcn.140138ee0
mov r8d, 0x104
lea rdx, [rbp + 0x30]
lea rcx, str._WINDIR_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x140033d56
dec eax
mov edx, eax
xor edi, edi
mov qword [rsp + 0x58], rdi
lea r15d, [rdi + 7]
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], di
lea rcx, [rsp + 0x48]
cmp rdx, r15
ja 0x140033ac4
mov qword [rsp + 0x58], rdx
lea rbx, [rax + rax]
mov r8, rbx
lea rdx, [rbp + 0x30]
call fcn.1401389a0
mov word [rsp + rbx + 0x48], di
jmp 0x140033ace
lea r9, [rbp + 0x30]
call fcn.140033078
nop
mov r8d, 0x15
lea rdx, str._system32makecab.exe
lea rcx, [rsp + 0x48]
call fcn.140031c78
mov r8, rsi
lea rdx, [0x140354c04]
lea rcx, [rbp - 0x38]
call fcn.140035218
nop
lea r8, [0x140354c08]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140035138
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140035280
nop
lea r8, [0x140354c04]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140035138
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140033b4c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
call fcn.1400331fc
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], r15
mov word [rbp - 0x78], di
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140033b73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
call fcn.1400331fc
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], r15
mov word [rbp - 0x58], di
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140033b9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
call fcn.1400331fc
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], r15
mov word [rbp - 0x38], di
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x18]
call fcn.140034c5c
nop
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], r15
mov word [rsp + 0x68], di
lea rdx, [0x140355f14]
lea rcx, [rsp + 0x68]
call fcn.140031d84
nop
mov byte [rsp + 0x30], 1
mov word [rsp + 0x28], di
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x68]
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x18]
call fcn.1400519f4
mov bl, al
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140033c1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
call fcn.1400331fc
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], r15
mov word [rsp + 0x68], di
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140033c45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
call fcn.1400331fc
test bl, bl
je 0x140033ccf
mov ebx, 6
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x140033c8f
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140354c10]
mov qword [rsp + 0x20], rax
mov r9d, 0x158
lea r8, str.CSIS::_MakeCAB
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISUpgradeRemediation.cpp
mov ecx, ebx
call fcn.140032100
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140033cab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
call fcn.1400331fc
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140033cc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
call fcn.1400331fc
mov al, 1
jmp 0x140033da3
mov ebx, 5
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x140033d1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.Could_not_execute_process_for_makecab.exe__error:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x15e
lea r8, str.CSIS::_MakeCAB
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISUpgradeRemediation.cpp
mov ecx, ebx
call fcn.140032100
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140033d37
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
call fcn.1400331fc
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140033da1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
call fcn.1400331fc
jmp 0x140033da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov ebx, 5
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x140033da1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_expand_environment_variable_for_windows__error:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x165
lea r8, str.CSIS::_MakeCAB
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISUpgradeRemediation.cpp
mov ecx, ebx
call fcn.140032100
xor al, al
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140119fe0
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret