Function at 0x180051960
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 - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r15, rcx
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x34], r12d
movabs rax, 0xcd52108e51b1f4e4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0xf0], rax
movabs rcx, 0xf4b8a29222cf9696
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0xf8], rax
movabs rax, 0xcd3364ef35c18485
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x58], rax
movdqa xmm0, xmmword [rbp + 0xf0]
pxor xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp + 0xf0], xmm0
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xe8], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x180051a50
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.180001470
nop
lea rax, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rax, qword [rbp + 0xd0]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x48], rax
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x130], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp + 0x120], rax
lea rax, [0x180157280]
cmp qword [0x180157298], 0x10
cmovae rax, qword [0x180157280]
mov qword [rbp - 0x40], rax
mov rax, qword [0x180157290]
mov qword [rbp - 0x38], rax
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x140], xmm0
movabs rax, 0xc000000000000010
mov qword [rbp + 0x128], rax
mov qword [rbp - 0x30], 2
lea rax, [rbp + 0x120]
mov qword [rbp - 0x28], rax
lea rax, str.0_1
mov qword [rbp - 0x20], rax
mov ebx, 7
mov qword [rbp - 0x18], rbx
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x30], xmm1
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x150]
call fcn.18000b0d0
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x180051b7e
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051b79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051b79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b12b8
movups xmm0, xmmword [rbp + 0x150]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rbp + 0x160]
movups xmmword [rbp + 0xe0], xmm1
lea rax, [rbp + 0x90]
mov qword [rsp + 0x48], rax
movq rdi, xmm1
lea rsi, [rbp + 0xd0]
movq rcx, xmm0
psrldq xmm1, 8
movq rax, xmm1
cmp rax, 0x10
cmovae rsi, rcx
call fcn.1800b0b5c
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], rbx
mov word [rbp + 0x90], r12w
mov dword [rsp + 0x34], 0xc00
test rdi, rdi
je 0x180051c7d
cmp rdi, 0x7fffffff
ja 0x1800524b2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1800b0b84
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x1800524bd
xor r8d, r8d
movsxd rdx, ebx
lea rcx, [rbp + 0x90]
call fcn.180058e40
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae r9, qword [rbp + 0x90]
mov dword [rsp + 0x20], ebx
mov r8d, edi
mov rdx, rsi
mov ecx, r14d
call fcn.1800b0b84
shr rax, 0x20
test eax, eax
jne 0x1800524c5
mov rbx, qword [rbp + 0xa8]
mov r14d, 0xb00
mov dword [rsp + 0x34], r14d
lea rcx, [rbp + 0x90]
cmp rbx, 8
cmovae rcx, qword [rbp + 0x90]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x170]
call fcn.1800b0ee8
mov ecx, eax
test eax, eax
jne 0x180051cf3
mov edx, dword [rbp + 0x180]
bt edx, 0xa
jae 0x180051ce5
mov eax, dword [rbp + 0x184]
cmp eax, 0xa000000c
jne 0x180051cd7
lea eax, [rcx + 4]
jmp 0x180051d16
cmp eax, 0xa0000003
jne 0x180051ce5
mov eax, 0xa
jmp 0x180051d16
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x180051d16
mov dword [rbp + 0x14], 0xffff
sub eax, 2
je 0x180051d11
sub eax, 1
je 0x180051d11
sub eax, 0x32
je 0x180051d11
cmp eax, 0x46
mov eax, r12d
jne 0x180051d16
mov eax, 1
mov dword [rbp - 0x10], ecx
lea rdx, [0x1801572b0]
mov qword [rbp - 8], rdx
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0x40], xmm0
test eax, eax
je 0x180051d7b
cmp eax, 1
sete bl
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x180051d8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051d87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051d87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test ecx, ecx
jne 0x18005248b
jmp 0x180051d37
call fcn.1800b12b8
test bl, bl
je 0x180051e5e
xor r8d, r8d
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x90]
call fcn.180021a10
nop
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rcx, qword [rbp + 0x90]
call fcn.1800b0dbc
shr rax, 0x20
test eax, eax
jne 0x1800524cd
lea rcx, [rbp + 0x90]
call fcn.18001f7b0
mov qword [r15], r12
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], r12
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x180051e2b
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051e26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005247e
call fcn.1800b12b8
mov rax, r15
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800b1a20
lea r11, [rsp + 0x2a0]
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 [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
xor r8d, r8d
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x100]
call fcn.180021a10
nop
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
xor r8d, r8d
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x50]
call fcn.180023360
test eax, eax
jne 0x1800524e3
lea rcx, [rbp + 0x100]
call fcn.18001f7b0
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
test rsi, rsi
je 0x180051ed5
lock inc dword [rsi + 8]
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
mov r14d, dword [rsp + 0x34]
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
test rsi, rsi
je 0x180051eff
lock inc dword [rsi + 8]
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [rsp + 0x50]
mov r14d, dword [rsp + 0x34]
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
lea rcx, [rbp]
call fcn.18002aa50
nop
movzx edi, byte [rsp + 0x30]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180052398
mov r8d, 3
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.180052d70
mov rax, qword [rbp - 0x70]
mov edx, dword [rbp - 0x68]
test edx, edx
je 0x180051f5a
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x1800524f9
cmp eax, 2
jne 0x180052373
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x180051f72
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x30]
lea rsi, [rcx + rax*2]
mov rbx, rsi
mov rdx, rsi
call fcn.180052c80
cmp rax, rsi
je 0x180051fcb
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x180051f9f
cmp cx, 0x2f
jne 0x180051fa8
add rax, 2
cmp rax, rsi
jne 0x180051f90
cmp rax, rsi
je 0x180051fcb
nop dword [rax]
lea rdx, [rbx - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x180051fcb
cmp cx, 0x2f
je 0x180051fcb
mov rbx, rdx
cmp rax, rdx
jne 0x180051fb0
sub rsi, rbx
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], r12
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.180021f90
or r14d, 0xe0
mov dword [rsp + 0x40], r14d
lea r14, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae r14, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xc0]
lea rsi, [r14 + rax*2]
mov rbx, rsi
mov rdx, rsi
mov rcx, r14
call fcn.180052c80
cmp rax, rsi
je 0x18005207c
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18005204f
cmp cx, 0x2f
jne 0x180052058
add rax, 2
cmp rax, rsi
jne 0x180052040
cmp rax, rsi
je 0x18005207c
nop dword [rax]
lea r8, [rbx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x18005207c
cmp cx, 0x2f
je 0x18005207c
mov rbx, r8
cmp rax, r8
jne 0x180052060
mov r8d, 0x3a
mov rdx, rsi
mov rcx, rbx
call fcn.1800b0970
mov rcx, rax
cmp rbx, rax
je 0x1800520ba
add rax, 0xfffffffffffffffe
cmp rbx, rax
je 0x1800520ba
cmp word [rax], 0x2e
jne 0x1800521b6
lea rdx, [rax - 2]
cmp rbx, rdx
jne 0x1800520b7
cmp word [rdx], 0x2e
je 0x1800520ba
mov rcx, rax
sub rcx, r14
sar rcx, 1
cmp qword [rbp + 0xc0], rcx
jb 0x180052485
lea rax, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rax, qword [rbp + 0xb0]
mov qword [rbp + 0xc0], rcx
mov word [rax + rcx*2], r12w
lea r12, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae r12, qword [rbp + 0xb0]
mov r15, qword [rbp + 0xc0]
call fcn.1800b0b5c
mov r13d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xor eax, eax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], al
mov r14d, dword [rsp + 0x40]
or r14d, 0x10
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x34], r14d
test r15, r15
je 0x18005226f
cmp r15, 0x7fffffff
ja 0x18005251e
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov ecx, r13d
call fcn.1800b0bcc
mov rbx, rax
mov qword [rsp + 0x48], rax
shr rax, 0x20
test eax, eax
jne 0x180052514
movsxd rcx, ebx
mov rdx, qword [rbp + 0x80]
cmp rcx, rdx
ja 0x1800521db
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rax, qword [rbp + 0x70]
mov qword [rbp + 0x80], rcx
mov byte [rax + rcx], 0
jmp 0x18005223b
sub rax, 2
cmp rbx, rax
je 0x1800520ba
cmp word [rax], 0x2e
je 0x1800520b7
sub rax, 2
cmp rbx, rax
jne 0x1800521c3
jmp 0x1800520ba
mov r14, rcx
sub r14, rdx
mov r8, qword [rbp + 0x88]
mov rax, r8
sub rax, rdx
cmp r14, rax
ja 0x18005221e
mov qword [rbp + 0x80], rcx
lea rsi, [rbp + 0x70]
cmp r8, 0x10
cmovae rsi, qword [rbp + 0x70]
add rsi, rdx
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov byte [r14 + rsi], 0
jmp 0x180052236
mov byte [rsp + 0x20], 0
mov r9, r14
movzx r8d, dil
mov rdx, r14
lea rcx, [rbp + 0x70]
call fcn.18001ecf0
mov r14d, dword [rsp + 0x40]
lea r9, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae r9, qword [rbp + 0x70]
mov dword [rsp + 0x20], ebx
mov r8d, r15d
mov rdx, r12
mov ecx, r13d
call fcn.1800b0bcc
mov qword [rsp + 0x40], rax
shr rax, 0x20
test eax, eax
jne 0x18005250a
and r14d, 0xffffffef
or r14d, 0xe
mov dword [rsp + 0x34], r14d
mov rcx, qword [rsp + 0x78]
cmp rcx, qword [rbp - 0x80]
je 0x1800522cc
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rcx + 0x10], xmm1
mov qword [rbp + 0x80], r12
mov eax, 0xf
mov qword [rbp + 0x88], rax
mov byte [rbp + 0x70], r12b
add rcx, 0x20
mov qword [rsp + 0x78], rcx
jmp 0x1800522e7
lea r8, [rbp + 0x70]
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.1800015c0
mov rax, qword [rbp + 0x88]
xor r12d, r12d
cmp rax, 0x10
jb 0x18005231b
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052316
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005238a
call fcn.1800b12b8
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x180052373
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005236e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180052391
call fcn.1800b12b8
lea rcx, [rsp + 0x60]
call fcn.180052530
test eax, eax
jne 0x1800524a3
jmp 0x180051f20
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 [rsp + 0x68]
mov r12, 0xffffffffffffffff
test rcx, rcx
je 0x1800523e2
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800523db
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800523db
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rsp + 0x58]
jmp 0x1800523e7
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x18005241d
mov eax, r12d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18005241d
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x18005241d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rsp + 0x70]
mov r15, qword [rbp - 0x78]
mov qword [r15], rax
mov rax, qword [rsp + 0x78]
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rcx
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x180051e2b
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051e26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051e26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.18001b740
nop
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x40]
lea rcx, str.exists
call fcn.180053ca0
nop
mov edx, eax
lea rcx, str.directory_iterator::operator
call fcn.180053d00
nop
mov ecx, 0x16
call fcn.180053dd0
int3
mov ecx, eax
call fcn.180053e10
int3
mov ecx, eax
call fcn.180053e10
nop
lea r8, [rbp + 0x90]
mov edx, eax
lea rcx, str.create_directory
call fcn.180053d60
nop
lea r8, [rbp + 0x100]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180053d60
nop
lea r8, [rbx + 0x20]
lea rcx, str.directory_entry::status
call fcn.180053d60
nop
mov ecx, dword [rsp + 0x44]
call fcn.180053e10
int3
mov ecx, dword [rsp + 0x4c]
call fcn.180053e10
int3
mov ecx, 0x16
call fcn.180053dd0
int3