Function at 0x1400b4ed0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r13d, r13d
mov r12, rcx
mov byte [rcx + 8], 0
lea rdx, str.Path
lea rcx, [rbp - 0x11]
lea r8d, [r13 + 4]
mov qword [rbp - 0x21], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x29], r13
mov byte [rbp - 0x39], r13b
mov qword [rbp + 7], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 1], r13
mov byte [rbp - 0x11], r13b
call fcn.1400082f0
lea rcx, [r12 + 0xb0]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x11]
call fcn.1400b3f90
test al, al
sete dil
cmp qword [rbp + 7], 0x10
jb 0x1400b4f5d
mov rcx, qword [rbp - 0x11]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
test dil, dil
je 0x1400b4f7b
cmp qword [rbp - 0x21], 0x10
jb 0x1400b53ee
mov rcx, qword [rbp - 0x39]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x1400b53ee
lea r8, [rbp - 0x39]
lea rdx, [0x1401c1bb8]
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rsi
call fcn.1400b4e20
cmp qword [rax + 0x18], 0x10
mov rdi, rax
jb 0x1400b4fac
mov rdi, qword [rax]
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x69], rax
test rdi, rdi
je 0x1400b4ff5
test rdi, 0xffffffffffff0000
jne 0x1400b4ff5
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x1400b5001
lea rcx, [rbp - 0x69]
mov r8d, edi
mov rdx, rax
call fcn.140004fb0
jmp 0x1400b5001
lea rcx, [rbp - 0x69]
mov rdx, rdi
call fcn.140006320
cmp qword [rbp + 0x2f], 0x10
jb 0x1400b5011
mov rcx, qword [rbp + 0x17]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [0x140117ea0]
add rax, 0x18
mov rdi, rsi
shr rdi, 0x10
mov qword [rbp - 0x61], rax
test rdi, rdi
jne 0x1400b505f
movzx ebx, si
xor edx, edx
mov ecx, ebx
call fcn.140001110
test rax, rax
je 0x1400b506e
lea rcx, [rbp - 0x61]
mov r8d, ebx
mov rdx, rax
call fcn.140004fb0
jmp 0x1400b506e
lea rcx, [rbp - 0x61]
xor r8d, r8d
mov rdx, rsi
call fcn.14000c510
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x69]
lea rcx, [rbp - 0x79]
mov rdx, 0xffffffff80000002
mov byte [rsp + 0x20], r13b
call fcn.1400b3d30
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b50ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x79]
cmp dword [rax - 0x10], r13d
jne 0x1400b51bd
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x59], rax
test rdi, rdi
jne 0x1400b50fb
movzx edi, si
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x1400b510a
lea rcx, [rbp - 0x59]
mov r8d, edi
mov rdx, rax
call fcn.140004fb0
jmp 0x1400b510a
lea rcx, [rbp - 0x59]
xor r8d, r8d
mov rdx, rsi
call fcn.14000c510
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x69]
lea rcx, [rbp - 0x51]
mov rdx, 0xffffffff80000002
mov byte [rsp + 0x20], 1
call fcn.1400b3d30
mov rdi, qword [rbp - 0x79]
mov rdx, qword [rax]
add rdi, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rdi
je 0x1400b5181
cmp dword [rdi + 0x10], r13d
jl 0x1400b5174
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400b5174
call fcn.140001b90
mov ecx, ebx
mov rsi, rax
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400b516a
mov rcx, qword [rdi]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x79], rax
jmp 0x1400b5181
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x79]
call fcn.14000c510
mov rdx, qword [rbp - 0x51]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b519f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x59]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b51bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov edx, 1
add rax, 0x18
mov qword [rbp - 0x71], rax
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, 0x105
or edx, ecx
jge 0x1400b51fd
lea rcx, [rbp - 0x71]
mov edx, 0x105
call fcn.140001b30
mov rax, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x79]
mov r8d, 0x105
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rbp - 0x71]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x1400b540f
mov rcx, qword [rbp - 0x71]
cmp eax, dword [rcx - 0xc]
jg 0x1400b540f
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 0x71]
mov word [rax + rcx*2], r13w
mov rax, qword [rbp - 0x71]
cmp dword [rax - 0x10], r13d
je 0x1400b537a
lea rcx, [rbp - 0x71]
call fcn.1400b3cf0
test al, al
je 0x1400b5376
mov rcx, qword [rbp - 0x71]
mov edx, 0x5c
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rcx, qword [rbp - 0x71]
mov rsi, rax
test rax, rax
je 0x1400b5370
sub rsi, rcx
sar rsi, 1
cmp esi, 0xffffffff
je 0x1400b5370
cmp esi, dword [rcx - 0x10]
jge 0x1400b5370
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
mov r8d, esi
call fcn.1400b4d80
mov rcx, rbx
mov rdx, qword [rax]
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r12 + 0x10]
call fcn.1400067c0
mov rdx, qword [rbp - 0x49]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b52e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x79]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x79]
mov r8d, dword [rax - 0x10]
sub r8d, esi
dec r8d
call fcn.14002f270
mov rcx, rbx
mov rdx, qword [rax]
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r12 + 0x38]
call fcn.1400067c0
mov rdx, qword [rbp - 0x41]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b533d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x79]
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r12 + 0x88]
call fcn.1400067c0
mov rdx, qword [rbp - 0x71]
mov byte [r12 + 8], 1
add rdx, 0xffffffffffffffe8
jmp 0x1400b537e
lea rdx, [rcx - 0x18]
jmp 0x1400b537e
mov rax, qword [rbp - 0x71]
lea rdx, [rax - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b5394
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x79]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400b53b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400b53ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp - 0x21], 0x10
jb 0x1400b53de
mov rcx, qword [rbp - 0x39]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400d6f80
mov rdi, qword [rsp + 0x128]
add rsp, 0xf0
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001000
int3