Function at 0x18007da20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbx
push rsi
sub rsp, 0x1c8
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov rbx, rcx
mov r15, r8
mov eax, 0x8876086c
mov r14d, edx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x49], 0
mov byte [rsp + 0x4a], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x50], 0
test rcx, rcx
je 0x18007db2e
test r8, r8
je 0x18007db2e
test edx, 0xfffffffa
je 0x18007daad
mov esi, eax
jmp 0x18007db30
lea rcx, [0x1800371a8]
mov qword [r8], 0
call sub.msvcrt.dll_getenv
lea rcx, [rsp + 0x30]
test rax, rax
movzx eax, r14b
setne byte [0x18026504c]
and al, 1
mov byte [rsp + 0x48], al
mov eax, r14d
shr eax, 1
and al, 1
mov byte [rsp + 0x49], al
mov eax, r14d
shr eax, 2
and al, 1
mov byte [rsp + 0x4a], al
mov eax, r14d
shr eax, 3
and al, 1
mov byte [rsp + 0x4b], al
call fcn.1802479a4
cmp byte [rsp + 0x48], 0
je 0x18007db2a
lea rdx, [0x1800371d4]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdx, [0x1800371e0]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
xor esi, esi
jmp 0x18007db30
mov esi, eax
test esi, esi
js 0x18007e359
cmp byte [rsp + 0x48], 0
je 0x18007db73
lea rdx, [0x1800371e0]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
cmp byte [rsp + 0x48], 0
je 0x18007db73
mov r8, qword [0x18025e450]
lea rdx, [0x180068578]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
inc dword [rsp + 0x4c]
mov rax, qword [rbx]
lea rdx, [rsp + 0xb8]
mov rcx, rbx
call qword [rax + 0x30]
mov esi, eax
test eax, eax
js 0x18007e359
mov qword [rsp + 0x1e8], rbp
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1b8], r12
mov qword [rsp + 0x1b0], r13
xor r13d, r13d
cmp dword [rsp + 0xc4], r13d
jbe 0x18007de78
nop
mov rax, qword [rbx]
mov edx, r13d
mov rcx, rbx
call qword [rax + 0x48]
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx]
test eax, eax
je 0x18007de42
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
mov rcx, rax
mov rdi, rax
mov rdx, qword [rax]
call qword [rdx]
test eax, eax
je 0x18007de66
mov r8, qword [rdi]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [r8 + 8]
mov esi, eax
test eax, eax
js 0x18007e339
mov rax, qword [rbx]
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [rax + 0x10]
mov esi, eax
test eax, eax
js 0x18007e339
mov eax, dword [rsp + 0x64]
cmp eax, 0xf
jl 0x18007de42
cmp eax, 0x10
jle 0x18007dc4a
cmp eax, 0x15
jne 0x18007de42
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x90]
mov rcx, rax
mov rbp, rax
mov rdx, qword [rax]
call qword [rdx]
test eax, eax
je 0x18007de5c
mov eax, dword [rsp + 0x68]
test eax, eax
jne 0x18007dc91
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x58]
lea rdx, [0x180037208]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
jmp 0x18007dcb3
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x58]
lea rdx, [0x180037218]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.180247d3c
mov eax, dword [rsp + 0x68]
mov ecx, 1
cmp eax, 1
mov r12d, eax
cmovb r12d, ecx
xor ebx, ebx
mov edi, ebx
test r12d, r12d
je 0x18007de1c
nop word [rax + rax]
mov rax, qword [rbp]
lea r8, [rsp + 0xd0]
mov edx, edi
mov rcx, rbp
call qword [rax + 0xc8]
mov esi, eax
test eax, eax
js 0x18007e339
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x18007dde2
mov rcx, qword [rsp + 0xe0]
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call fcn.18007d790
mov esi, eax
test eax, eax
js 0x18007e297
cmp dword [rsp + 0x68], 0
jbe 0x18007dd8c
lea rdx, [0x180037228]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 4]
mov rdx, rax
call fcn.180247a68
lea rdx, [0x180037238]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
jmp 0x18007ddd0
lea rdx, [0x180037248]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 4]
mov rdx, rax
call fcn.180247a68
lea rdx, [0x180037250]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
jmp 0x18007de0d
cmp dword [rsp + 0x68], 0
jbe 0x18007ddfc
lea rdx, [0x180037258]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
jmp 0x18007de0d
lea rdx, [0x180037264]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
inc edi
cmp edi, r12d
jb 0x18007dce0
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18007de31
lea rdx, [0x180037250]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdx, [0x18003726c]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
inc r13d
cmp r13d, dword [rsp + 0xc4]
jae 0x18007de70
mov rbx, qword [rsp + 0x1e0]
jmp 0x18007dbc0
mov esi, 0x80004005
jmp 0x18007e339
mov esi, 0x80004005
jmp 0x18007e339
mov rbx, qword [rsp + 0x1e0]
xor ecx, ecx
mov dword [rsp + 0x1f8], ecx
cmp dword [rsp + 0xcc], ecx
jbe 0x18007e251
lea rdi, [0x180034d18]
lea rbp, [0x180034d28]
lea r12, [0x180034d08]
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x60]
lea rdx, [rsp + 0x88]
mov r8, qword [rax]
mov rcx, rax
mov r15, rax
call qword [r8 + 8]
mov esi, eax
test eax, eax
js 0x18007e339
lea rdx, [0x180037270]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x18007defc
lea rdx, [0x1800344c4]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdx, [0x180037280]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
xor r13d, r13d
cmp dword [rsp + 0x90], r13d
jbe 0x18007e21b
nop
mov rax, qword [r15]
mov edx, r13d
mov rcx, r15
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], r12
call qword [rax + 0x20]
mov rcx, rax
mov rbx, rax
mov rdx, qword [rax]
call qword [rdx]
test eax, eax
je 0x18007e202
mov r8, qword [rbx]
lea rdx, [rsp + 0x160]
mov rcx, rbx
call qword [r8 + 8]
mov esi, eax
test eax, eax
js 0x18007e339
lea rdx, [0x180037288]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov r8, qword [rsp + 0x160]
test r8, r8
je 0x18007dfa2
lea rdx, [0x1800344c4]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdx, [0x180037298]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov r11, qword [rbx]
lea rdx, [rsp + 0x100]
mov rcx, rbx
call qword [r11 + 0x10]
mov esi, eax
test eax, eax
js 0x18007e339
mov rax, qword [rbx]
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [rax + 0x18]
mov esi, eax
test eax, eax
js 0x18007e339
mov rax, qword [rbx]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call qword [rax + 0x20]
mov esi, eax
test eax, eax
js 0x18007e339
xor ebx, ebx
lea rbp, [rsp + 0x98]
lea rdi, [rsp + 0x100]
mov r12d, ebx
nop word [rax + rax]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x18007e046
mov r8, qword [rbp]
lea rdx, [0x1800372a0]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
jmp 0x18007e1c7
mov rcx, qword [rdi]
mov edx, dword [rdi + 8]
lea r8, [rsp + 0xd0]
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov esi, eax
test eax, eax
js 0x18007e339
cmp dword [rsp + 0xd8], 0
jne 0x18007e101
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x130]
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 8]
mov esi, eax
test eax, eax
js 0x18007e339
mov rcx, qword [rdi]
lea rdx, [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, eax
test eax, eax
js 0x18007e339
cmp dword [rsp + 0x140], 0
jbe 0x18007e0e2
mov eax, dword [rdi + 8]
mov r9, qword [rsp + 0x58]
mov r8, qword [rbp]
lea rdx, [0x1800372c0]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.180247d3c
jmp 0x18007e1c7
mov r9, qword [rsp + 0x58]
mov r8, qword [rbp]
lea rdx, [0x1800372d8]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
jmp 0x18007e1c7
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x18007e1b2
mov rcx, qword [rsp + 0xe0]
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call fcn.18007d790
mov esi, eax
test eax, eax
js 0x18007e297
mov r8, qword [rbp]
lea rdx, [0x1800372f0]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 0xc]
mov rdx, rax
call fcn.180247a68
xor r9d, r9d
lea rdx, [0x180037308]
lea r8d, [r9 + 8]
lea rcx, [rsp + 0x30]
call fcn.180247a68
lea rdx, [0x180034e20]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x10]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
jmp 0x18007e1c7
mov r8, qword [rbp]
lea rdx, [0x180037310]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
inc r12d
add rdi, 0x10
add rbp, 8
cmp r12d, 3
jb 0x18007e020
lea rdx, [0x180037324]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
lea rdi, [0x180034d18]
lea rbp, [0x180034d28]
lea r12, [0x180034d08]
inc r13d
cmp r13d, dword [rsp + 0x90]
jb 0x18007df20
mov rbx, qword [rsp + 0x1e0]
lea rdx, [0x18003732c]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov ecx, dword [rsp + 0x1f8]
inc ecx
mov dword [rsp + 0x1f8], ecx
cmp ecx, dword [rsp + 0xcc]
jb 0x18007dea3
mov r15, qword [rsp + 0x1f0]
cmp byte [rsp + 0x48], 0
je 0x18007e285
dec dword [rsp + 0x4c]
lea rdx, [0x180068558]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
cmp byte [rsp + 0x48], 0
je 0x18007e285
lea rdx, [0x1800371fc]
lea rcx, [rsp + 0x30]
call fcn.180247d3c
mov edi, dword [rsp + 0x30]
inc edi
test r15, r15
jne 0x18007e2b0
mov edi, 0x8876086c
jmp 0x18007e30d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18007e339
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18007e339
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18007e308
lea rax, [0x180067cb0]
mov ebp, 1
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x10], 0
mov qword [rbx], rax
mov dword [rbx + 8], ebp
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jns 0x18007e301
mov r8, qword [rbx]
mov edx, ebp
mov rcx, rbx
call qword [r8 + 0x28]
jmp 0x18007e30d
mov qword [r15], rbx
xor edi, edi
jmp 0x18007e30d
mov edi, 0x8007000e
test edi, edi
js 0x18007e337
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov r8, rbx
mov rcx, rax
mov rdi, rax
call sub.msvcrt.dll_memcpy
mov byte [rbx + rdi], 0
mov edi, esi
mov esi, edi
mov r12, qword [rsp + 0x1b8]
mov rdi, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1e8]
mov r13, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x1a0]
mov r14, qword [rsp + 0x1a8]
test rbx, rbx
je 0x18007e388
mov rdx, rbx
mov ecx, 4
call sub.msvcrt.dll_setlocale
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x1c8
pop rsi
pop rbx
ret