Function at 0x140002860
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400650c0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov edi, ecx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov r8d, 0x104
lea rdx, [rbp + 0x100]
lea rcx, [0x140056bd8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor edx, edx
lea rcx, [rbp + 0x100]
call fcn.140026e3c
cmp eax, 0xffffffff
jne 0x1400028d8
lea rcx, [rbp + 0x100]
call fcn.140027a28
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140002900
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x20]
call fcn.140001ca0
nop
mov r8d, 7
lea rdx, str.log.txt
lea rcx, [rsp + 0x20]
call fcn.140004410
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400029a1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000299c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002dfb
call fcn.14001ee3c
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.1400474f0
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rbx, qword [rsp + 0x50]
lea rax, [0x140057168]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], r14
mov dword [rbp + 0x30], r14d
mov qword [rbp + 0x38], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], rax
movdqa xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x70], 0
mov dword [rsp + 0x40], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140004680
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], r8d
lea rcx, [rsp + 0x78]
call fcn.140004570
nop
mov r8d, 0xa
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400044d0
mov ebx, 6
lea r12d, [rbx - 4]
test rax, rax
jne 0x140002aa2
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, r12d
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
and eax, dword [rbp + rcx - 0x7c]
jne 0x140002e01
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp - 8], 0
je 0x140002d10
cmp edi, 1
ja 0x140002cc8
xor ecx, ecx
call fcn.1400277f0
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
test edi, edi
je 0x140002b39
sub edi, 1
je 0x140002b1f
cmp edi, 1
jne 0x140002b5c
mov eax, dword [str.DEBUG]
mov dword [rsp + 0x20], eax
movzx eax, byte [0x1400570fc]
jmp 0x140002b4a
mov qword [rsp + 0x30], 4
mov eax, dword [str.INFO]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x24], 0
jmp 0x140002b5c
mov eax, dword [str.ERROR]
mov dword [rsp + 0x20], eax
movzx eax, byte [0x1400570ec]
mov byte [rsp + 0x25], 0
mov byte [rsp + 0x24], al
mov qword [rsp + 0x30], 5
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.140026274
lea r9, [rbp + 0x80]
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x50
lea rcx, [rbp + 0xb0]
call fcn.140026cc8
lea rdx, [0x14005711c]
lea rcx, [rsp + 0x70]
call fcn.140004aa0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rax
call fcn.1400059b0
lea rdx, [0x140057118]
mov rcx, rax
call fcn.140004aa0
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140004aa0
mov rcx, rax
lea rdx, [0x140057114]
call fcn.140004aa0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140002bf5
mov rdx, qword [rsi]
lea rdi, [rsi + 0x10]
mov r8, qword [rdi]
mov rcx, rax
call fcn.1400059b0
mov rcx, rax
call fcn.140004d50
lea rdx, [0x14005711c]
lea rcx, [0x140066f30]
call fcn.140004aa0
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rax
call fcn.1400059b0
lea rdx, [0x140057118]
mov rcx, rax
call fcn.140004aa0
mov rcx, rax
lea rdx, [rbp + 0xb0]
call fcn.140004aa0
mov rcx, rax
lea rdx, [0x140057114]
call fcn.140004aa0
cmp qword [rsi + 0x18], 0xf
jbe 0x140002c74
mov rsi, qword [rsi]
mov r8, qword [rdi]
mov rdx, rsi
mov rcx, rax
call fcn.1400059b0
mov rcx, rax
call fcn.140004d50
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002cc8
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e58
call fcn.14001ee3c
lea rcx, [rsp + 0x78]
call fcn.1400042d0
test rax, rax
jne 0x140002d2c
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x48], 0
cmovne ebx, r12d
or ebx, dword [rbp + rcx - 0x80]
and ebx, 0x17
mov dword [rbp + rcx - 0x80], ebx
and ebx, dword [rbp + rcx - 0x7c]
je 0x140002d2c
test bl, 4
je 0x140002e5e
lea rbx, str.ios_base::badbit_set
jmp 0x140002e73
lea rdx, str.Unable_to_open_log_file.
lea rcx, [0x140066f30]
call fcn.140004aa0
mov rcx, rax
call fcn.140004d50
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r15
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140003b10
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.14001e0ac
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140002dca
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002df5
call fcn.14001ee3c
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14001ede0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140025cfc
nop
call fcn.140025cfc
nop
test al, 4
je 0x140002e0e
lea rbx, str.ios_base::badbit_set
jmp 0x140002e23
test r12b, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140001ec0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140002700
lea rdx, [0x140061140]
lea rcx, [rbp + 0x80]
call fcn.140021058
nop
call fcn.140025cfc
int3
test bl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001ec0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.140002700
lea rdx, [0x140061140]
lea rcx, [rbp + 0xb0]
call fcn.140021058
int3