Function at 0x1800526a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x18015c5c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r15, rcx
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
movabs rax, 0xaf38c233f967c3d6
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x40], rax
movabs rcx, 0xce03d08378a3f328
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x38], rax
movabs rax, 0xaf59b6529d17b3b7
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [rbp - 0x40]
xorps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x180052770
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.180001580
nop
lea rax, str.0_1
mov qword [rsp + 0x70], rax
mov ebx, 7
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x20], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp + 0x10], rax
lea rax, [0x18015c2d0]
cmp qword [0x18015c2e8], 0xf
cmova rax, qword [0x18015c2d0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x18015c2e0]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x30], xmm0
movabs rax, 0xc000000000000010
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x30], 2
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.18000bfe0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x180052887
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052882
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052882
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b4a88
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rbp], xmm1
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
lea rsi, [rbp - 0x10]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rsi, rcx
movq rdi, xmm1
call fcn.1800b426c
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x68], r12w
mov dword [rsp + 0x40], 0xc00
test rdi, rdi
je 0x180052960
cmp rdi, 0x7fffffff
ja 0x1800530fd
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1800b4294
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x180053108
xor r8d, r8d
movsxd rdx, ebx
lea rcx, [rbp - 0x68]
call fcn.180059840
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova r9, qword [rbp - 0x68]
mov dword [rsp + 0x20], ebx
mov r8d, edi
mov rdx, rsi
mov ecx, r14d
call fcn.1800b4294
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x180053114
mov rbx, qword [rbp - 0x50]
mov r14d, 0xb00
mov dword [rsp + 0x40], r14d
lea rcx, [rbp - 0x68]
cmp rbx, 7
cmova rcx, qword [rbp - 0x68]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x10]
call fcn.1800b45f8
mov edx, eax
test eax, eax
jne 0x1800529df
mov ecx, dword [rbp + 0x20]
test cl, 1
mov eax, 0x1ff
mov r8d, 0x16d
cmovne eax, r8d
mov dword [rsp + 0x74], eax
mov eax, ecx
shr eax, 0xa
test al, 1
je 0x1800529d4
mov eax, dword [rbp + 0x24]
cmp eax, 0xa000000c
jne 0x1800529c6
mov ecx, 4
jmp 0x180052a03
cmp eax, 0xa0000003
jne 0x1800529d4
mov ecx, 0xa
jmp 0x180052a03
shr ecx, 4
and ecx, 1
or ecx, 2
jmp 0x180052a03
mov dword [rsp + 0x74], 0xffff
sub eax, 2
je 0x1800529fe
sub eax, 1
je 0x1800529fe
sub eax, 0x32
je 0x1800529fe
cmp eax, 0x46
mov ecx, r12d
jne 0x180052a03
mov ecx, 1
mov dword [rsp + 0x30], edx
lea rax, [0x18015c300]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ecx, ecx
je 0x180052a66
cmp ecx, 1
sete bl
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x180052a77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052a72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test edx, edx
jne 0x1800530d8
jmp 0x180052a28
call fcn.1800b4a88
test bl, bl
je 0x180052b31
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.180022980
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call fcn.1800b44cc
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18005311e
lea rcx, [rbp - 0x68]
call fcn.1800208f0
mov qword [r15], r12
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], r12
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x180052b01
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052afc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800530cb
call fcn.1800b4a88
mov rax, r15
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1800b5050
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.180022980
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x30]
call fcn.180024b10
test eax, eax
jne 0x180053133
lea rcx, [rbp - 0x68]
call fcn.1800208f0
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x48], rsi
test rsi, rsi
je 0x180052b9b
lock inc dword [rsi + 8]
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x48], rsi
mov r14d, dword [rsp + 0x40]
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x40], xmm0
test rsi, rsi
je 0x180052bc4
lock inc dword [rsi + 8]
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [rsp + 0x30]
mov r14d, dword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea rcx, [rsp + 0x70]
call fcn.18002bcd0
nop
movzx edi, byte [rsp + 0x50]
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x180052ff0
mov r8d, 3
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1800539e0
mov rax, qword [rsp + 0x70]
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x180052c1e
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x180053146
cmp eax, 2
jne 0x180052fcc
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 7
jbe 0x180052c36
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x30]
lea rsi, [rcx + rax*2]
mov rbx, rsi
mov rdx, rsi
call fcn.1800538d0
cmp rax, rsi
je 0x180052c8b
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x180052c5f
cmp cx, 0x2f
jne 0x180052c68
add rax, 2
cmp rax, rsi
jne 0x180052c50
cmp rax, rsi
je 0x180052c8b
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x180052c8b
cmp cx, 0x2f
je 0x180052c8b
mov rbx, rdx
cmp rax, rdx
jne 0x180052c70
sub rsi, rbx
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180022f80
or r14d, 0xe0
mov dword [rsp + 0x54], r14d
lea r14, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r14, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.1800538d0
cmp rax, rsi
je 0x180052d1d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x180052cf3
cmp cx, 0x2f
jne 0x180052cfc
add rax, 2
cmp rax, rsi
jne 0x180052ce4
cmp rax, rsi
je 0x180052d1d
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x180052d1d
cmp cx, 0x2f
je 0x180052d1d
mov rbx, r8
cmp rax, r8
jne 0x180052d01
mov r8d, 0x3a
mov rdx, rsi
mov rcx, rbx
call fcn.1800b41e0
mov rcx, rax
cmp rbx, rax
je 0x180052d5b
add rax, 0xfffffffffffffffe
cmp rbx, rax
je 0x180052d5b
cmp word [rax], 0x2e
jne 0x180052e2d
lea rdx, [rax - 2]
cmp rbx, rdx
jne 0x180052d58
cmp word [rdx], 0x2e
je 0x180052d5b
mov rcx, rax
sub rcx, r14
sar rcx, 1
cmp qword [rbp - 0x20], rcx
jb 0x1800530d2
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rax, qword [rbp - 0x30]
mov word [rax + rcx*2], r12w
lea r12, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r12, qword [rbp - 0x30]
mov r15, qword [rbp - 0x20]
call fcn.1800b426c
mov r13d, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], al
mov r14d, dword [rsp + 0x54]
or r14d, 0x10
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x40], r14d
test r15, r15
je 0x180052ee3
cmp r15, 0x7fffffff
ja 0x18005316b
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov ecx, r13d
call fcn.1800b42dc
mov rbx, rax
mov qword [rsp + 0x60], rax
shr rax, 0x20
test eax, eax
jne 0x180053161
movsxd rcx, ebx
mov rdx, qword [rbp - 0x58]
cmp rcx, rdx
ja 0x180052e58
mov qword [rbp - 0x58], rcx
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rax, qword [rbp - 0x68]
mov byte [rax + rcx], 0
jmp 0x180052eb2
sub rax, 2
cmp rbx, rax
je 0x180052d5b
nop word [rax + rax]
cmp word [rax], 0x2e
je 0x180052d58
sub rax, 2
cmp rbx, rax
jne 0x180052e40
jmp 0x180052d5b
mov r14, rcx
sub r14, rdx
mov r8, qword [rbp - 0x50]
mov rax, r8
sub rax, rdx
cmp r14, rax
ja 0x180052e95
mov qword [rbp - 0x58], rcx
lea rsi, [rbp - 0x68]
cmp r8, 0xf
cmova rsi, qword [rbp - 0x68]
add rsi, rdx
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov byte [rsi + r14], 0
jmp 0x180052ead
mov byte [rsp + 0x20], 0
mov r9, r14
movzx r8d, dil
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.18001fb10
mov r14d, dword [rsp + 0x54]
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova r9, qword [rbp - 0x68]
mov dword [rsp + 0x20], ebx
mov r8d, r15d
mov rdx, r12
mov ecx, r13d
call fcn.1800b42dc
mov qword [rsp + 0x54], rax
shr rax, 0x20
test eax, eax
jne 0x180053157
and r14d, 0xffffffef
or r14d, 0xe
mov dword [rsp + 0x40], r14d
mov rcx, qword [rbp + 0x18]
cmp rcx, qword [rbp + 0x20]
je 0x180052f35
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rcx + 0x10], xmm1
mov qword [rbp - 0x58], r12
mov eax, 0xf
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x68], r12b
add rcx, 0x20
mov qword [rbp + 0x18], rcx
jmp 0x180052f4c
lea r8, [rbp - 0x68]
mov rdx, rcx
lea rcx, [rbp + 0x10]
call fcn.180001720
mov rax, qword [rbp - 0x50]
xor r12d, r12d
cmp rax, 0xf
jbe 0x180052f80
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052f7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180052fe2
call fcn.1800b4a88
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x180052fcc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180052fe9
call fcn.1800b4a88
lea rcx, [rbp - 0x40]
call fcn.180053180
test eax, eax
jne 0x1800530ee
jmp 0x180052be2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x38]
mov r12, 0xffffffffffffffff
test rcx, rcx
je 0x180053037
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180053030
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180053030
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rsp + 0x38]
jmp 0x18005303c
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180053072
mov eax, r12d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180053072
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x180053072
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov r15, qword [rbp - 0x80]
mov qword [r15], rax
mov rax, qword [rbp + 0x18]
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rcx
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x180052b01
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052afc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052afc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18001c4c0
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.180054960
nop
mov edx, eax
lea rcx, str.directory_iterator::operator
call fcn.1800549c0
nop
mov ecx, 0x16
call fcn.180054a90
int3
shr rbx, 0x20
mov ecx, ebx
call fcn.180054ad0
int3
shr rcx, 0x20
call fcn.180054ad0
nop
shr rdx, 0x20
lea r8, [rbp - 0x68]
lea rcx, str.create_directory
call fcn.180054a20
nop
lea r8, [rbp - 0x68]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180054a20
nop
lea r8, [rbx + 0x20]
lea rcx, str.directory_entry::status
call fcn.180054a20
nop
mov ecx, dword [rsp + 0x58]
call fcn.180054ad0
int3
mov ecx, dword [rsp + 0x64]
call fcn.180054ad0
int3
mov ecx, 0x16
call fcn.180054a90
int3