Function at 0x1800134b0
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3b0
mov rdi, rsp
mov ecx, 0xec
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3c0]
mov qword [rsp + 0x300], 0xfffffffffffffffe
mov rax, qword [0x180243cf0]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
cmp qword [rsp + 0x3c0], 0
je 0x18001351c
cmp qword [rsp + 0x3c8], 0
je 0x18001351c
cmp dword [rsp + 0x3d0], 0
jne 0x18001352d
mov ecx, 0x57
call fcn.180013470
xor eax, eax
jmp 0x180013cf7
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x3c0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3d0]
cmp dword [rsp + 0x20], eax
jb 0x18001356c
mov ecx, 0xea
call fcn.180013470
xor eax, eax
jmp 0x180013cf7
mov eax, dword [rsp + 0x3d0]
shl rax, 1
mov qword [rsp + 0x308], rax
mov rdi, qword [rsp + 0x3c8]
xor eax, eax
mov rcx, qword [rsp + 0x308]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x3c0]
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x3c8]
mov qword [rsp + 0x318], rax
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x320], rax
mov rax, qword [rsp + 0x310]
movzx eax, word [rax]
mov word [rsp + 0x328], ax
mov rax, qword [rsp + 0x318]
movzx ecx, word [rsp + 0x328]
mov word [rax], cx
mov rax, qword [rsp + 0x310]
add rax, 2
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x318]
add rax, 2
mov qword [rsp + 0x318], rax
cmp word [rsp + 0x328], 0
jne 0x1800135c2
mov rax, qword [rsp + 0x3c0]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x180013b4e
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.SystemRoot_
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
jne 0x18001367a
mov rax, qword [rsp + 0x3c0]
add rax, 0x18
mov r8, rax
mov edx, dword [rsp + 0x3d0]
mov rcx, qword [rsp + 0x3c8]
call fcn.1800143e0
jmp 0x180013cf7
mov r8d, 8
lea rdx, [0x1801fa6e8]
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
je 0x1800136d8
mov r8d, 8
lea rdx, str._UNC_
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
je 0x1800136d8
mov r8d, 8
lea rdx, str..UNC_
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
jne 0x18001378f
mov eax, 0x5c
mov rcx, qword [rsp + 0x3c8]
mov word [rcx], ax
mov eax, 0x5c
mov rcx, qword [rsp + 0x3c8]
mov word [rcx + 2], ax
mov rax, qword [rsp + 0x3c0]
add rax, 0x10
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x3c8]
add rax, 4
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x340], rax
mov rax, qword [rsp + 0x330]
movzx eax, word [rax]
mov word [rsp + 0x348], ax
mov rax, qword [rsp + 0x338]
movzx ecx, word [rsp + 0x348]
mov word [rax], cx
mov rax, qword [rsp + 0x330]
add rax, 2
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x338]
add rax, 2
mov qword [rsp + 0x338], rax
cmp word [rsp + 0x348], 0
jne 0x180013731
jmp 0x180013b49
mov r8d, 4
lea rdx, [0x1801fa730]
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
je 0x1800137ed
mov r8d, 4
lea rdx, [0x1801fa740]
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
je 0x1800137ed
mov r8d, 4
lea rdx, [0x1801fa750]
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
jne 0x1800138d8
cmp dword [rsp + 0x20], 7
jb 0x1800138b1
mov rax, qword [rsp + 0x3c0]
movzx eax, word [rax + 0xa]
cmp eax, 0x3a
jne 0x1800138b1
mov rax, qword [rsp + 0x3c0]
movzx eax, word [rax + 0xc]
cmp eax, 0x5c
jne 0x1800138b1
mov rax, qword [rsp + 0x3c0]
add rax, 8
mov qword [rsp + 0x350], rax
mov rax, qword [rsp + 0x3c8]
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rax, qword [rsp + 0x350]
movzx eax, word [rax]
mov word [rsp + 0x368], ax
mov rax, qword [rsp + 0x358]
movzx ecx, word [rsp + 0x368]
mov word [rax], cx
mov rax, qword [rsp + 0x350]
add rax, 2
mov qword [rsp + 0x350], rax
mov rax, qword [rsp + 0x358]
add rax, 2
mov qword [rsp + 0x358], rax
cmp word [rsp + 0x368], 0
jne 0x180013856
jmp 0x1800138d3
mov eax, 0x5c
mov rcx, qword [rsp + 0x3c8]
mov word [rcx + 2], ax
mov eax, 0x2e
mov rcx, qword [rsp + 0x3c8]
mov word [rcx + 4], ax
jmp 0x180013b49
mov r8d, 0x10
lea rdx, [0x1801fa760]
mov rcx, qword [rsp + 0x3c0]
call fcn.180179d80
test eax, eax
jne 0x180013b49
lea rcx, [rsp + 0x38]
call fcn.180007e00
nop
lea rcx, [rsp + 0x78]
call fcn.180007e00
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.18001dc40
mov dword [rsp + 0xa4], 0
jmp 0x18001393c
mov eax, dword [rsp + 0xa4]
inc eax
mov dword [rsp + 0xa4], eax
movsxd rax, dword [rsp + 0xa4]
mov qword [rsp + 0x370], rax
lea rcx, [rsp + 0x78]
call fcn.1800133b0
mov rcx, qword [rsp + 0x370]
cmp rcx, rax
jge 0x180013b34
movsxd rax, dword [rsp + 0xa4]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800093a0
mov rcx, rax
call fcn.1800145c0
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jbe 0x180013b2f
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x378], rax
movsxd rcx, dword [rsp + 0xa4]
mov rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.1800093a0
mov rcx, rax
call fcn.180006c80
mov rcx, qword [rsp + 0x378]
mov r8, rcx
mov rdx, qword [rsp + 0x3c0]
mov rcx, rax
call fcn.180179d80
test eax, eax
jne 0x180013b2f
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x3c0]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x180013a1c
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x3c0]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2f
jne 0x180013b2f
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x3c0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xac]
sub ecx, eax
mov eax, ecx
add eax, 2
cmp eax, dword [rsp + 0x3d0]
jae 0x180013b2d
movsxd rax, dword [rsp + 0xa4]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800093a0
mov rcx, rax
call fcn.180006c80
mov r8d, 2
mov rdx, rax
mov rcx, qword [rsp + 0x3c8]
call fcn.1801787a8
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x3c0]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x380], rax
mov rax, qword [rsp + 0x3c8]
add rax, 4
mov qword [rsp + 0x388], rax
mov rax, qword [rsp + 0x388]
mov qword [rsp + 0x390], rax
mov rax, qword [rsp + 0x380]
movzx eax, word [rax]
mov word [rsp + 0x398], ax
mov rax, qword [rsp + 0x388]
movzx ecx, word [rsp + 0x398]
mov word [rax], cx
mov rax, qword [rsp + 0x380]
add rax, 2
mov qword [rsp + 0x380], rax
mov rax, qword [rsp + 0x388]
add rax, 2
mov qword [rsp + 0x388], rax
cmp word [rsp + 0x398], 0
jne 0x180013ad4
jmp 0x180013b34
jmp 0x18001392c
lea rcx, [rsp + 0x78]
call fcn.180007e80
nop
lea rcx, [rsp + 0x38]
call fcn.180007e80
jmp 0x180013c33
mov rax, qword [rsp + 0x3c0]
movzx eax, word [rax]
cmp eax, 0x25
jne 0x180013c33
mov rax, qword [rsp + 0x3c0]
add rax, 2
mov dx, 0x25
mov rcx, rax
call fcn.1801785bc
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x3c0]
add rax, 2
mov dx, 0x5c
mov rcx, rax
call fcn.1801785bc
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb0], 0
je 0x180013c33
cmp qword [rsp + 0xb8], 0
je 0x180013c33
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0xb0], rax
jae 0x180013c33
mov eax, dword [rsp + 0x3d0]
dec eax
mov r8d, eax
mov rdx, qword [rsp + 0x3c8]
mov rcx, qword [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x180013c13
mov eax, dword [rsp + 0x3d0]
dec eax
cmp dword [rsp + 0xc0], eax
jbe 0x180013c1a
xor eax, eax
jmp 0x180013cf7
mov eax, dword [rsp + 0xc0]
dec eax
mov eax, eax
xor ecx, ecx
mov rdx, qword [rsp + 0x3c8]
mov word [rdx + rax*2], cx
mov rcx, qword [rsp + 0x3c8]
call fcn.180014010
test eax, eax
je 0x180013cf2
xor eax, eax
mov word [rsp + 0xe0], ax
lea rax, [rsp + 0xe2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x3c8]
call fcn.180013d30
test eax, eax
je 0x180013cf2
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0xe0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x2f4], eax
mov eax, dword [rsp + 0x3d0]
cmp dword [rsp + 0x2f4], eax
jge 0x180013cf2
movsxd rax, dword [rsp + 0x2f4]
mov r8, rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x3c8]
call fcn.1801787a8
movsxd rax, dword [rsp + 0x2f4]
xor ecx, ecx
mov rdx, qword [rsp + 0x3c8]
mov word [rdx + rax*2], cx
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180203450]
call fcn.18019270c
mov rax, rdi
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.180177910
add rsp, 0x3b0
pop rdi
ret