Function at 0x1000634f8
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x390
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov r12, rdx
mov edi, ecx
mov ebx, 0x104
mov r8, rbx
xor edx, edx
lea rcx, [r11 - 0x248]
call sub.msvcrt.dll_memset
xor r8d, r8d
mov edx, edi
lea rcx, [rsp + 0x140]
call fcn.10009ea40
nop
lea rcx, [rsp + 0x148]
cmp qword [rsp + 0x160], 8
cmovae rcx, qword [rsp + 0x148]
mov r8d, ebx
lea rdx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
xor r13d, r13d
cmp eax, r13d
je 0x100063920
cmp esi, ebx
jae 0x100063920
lea ebx, [r13 + 7]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
lea rdi, [rsp + 0x170]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
call fcn.10002cf94
nop
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
mov r9, r15
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.10002cd2c
nop
lea rcx, [rsp + 0x20]
call fcn.10009ed4c
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.10009ed4c
mov r9, qword [rdi + 0x18]
cmp qword [rdi + 0x20], 8
jb 0x10006362d
mov rdx, qword [rdi + 8]
jmp 0x100063631
lea rdx, [rdi + 8]
xor r8d, r8d
mov rcx, rax
call fcn.1000481a8
mov rbp, rax
cmp qword [rsp + 0x68], 8
jb 0x100063656
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x100063656
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp qword [rsp + 0x40], 8
jb 0x10006367d
mov rcx, qword [rsp + 0x28]
cmp rcx, r13
je 0x10006367d
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
cmp rbp, r15
jne 0x1000636cf
cmp qword [rsp + 0x160], 8
jb 0x1000636af
mov rcx, qword [rsp + 0x148]
cmp rcx, r13
je 0x1000636af
call sub.msvcrt.dll_free
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x158], r13
mov word [rsp + 0x148], r13w
xor al, al
jmp 0x10006395d
lea r8, [rbp + rsi]
mov r9, r15
lea rdx, [rsp + 0x110]
mov rcx, r12
call fcn.100039c78
mov rdi, rax
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0xe8]
mov rcx, r12
call fcn.100039c78
nop
lea r8, [0x100007540]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.100039e4c
nop
lea r8, [rsp + 0x140]
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.10004845c
nop
lea r8, [0x100007540]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.100039e4c
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10004845c
nop
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
mov r9, r15
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10002cd2c
nop
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.10002cd2c
nop
cmp qword [rsp + 0x40], 8
jb 0x1000637a7
mov rcx, qword [rsp + 0x28]
cmp rcx, r13
je 0x1000637a7
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
cmp qword [rsp + 0x68], 8
jb 0x1000637ce
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x1000637ce
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp qword [rsp + 0x90], 8
jb 0x1000637f8
mov rcx, qword [rsp + 0x78]
cmp rcx, r13
je 0x1000637f8
call sub.msvcrt.dll_free
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], r13w
cmp qword [rsp + 0xe0], 8
jb 0x10006382b
mov rcx, qword [rsp + 0xc8]
cmp rcx, r13
je 0x10006382b
call sub.msvcrt.dll_free
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xd8], r13
mov word [rsp + 0xc8], r13w
cmp qword [rsp + 0xb8], 8
jb 0x100063861
mov rcx, qword [rsp + 0xa0]
cmp rcx, r13
je 0x100063861
call sub.msvcrt.dll_free
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xb0], r13
mov word [rsp + 0xa0], r13w
cmp qword [rsp + 0x108], 8
jb 0x100063897
mov rcx, qword [rsp + 0xf0]
cmp rcx, r13
je 0x100063897
call sub.msvcrt.dll_free
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x100], r13
mov word [rsp + 0xf0], r13w
cmp qword [rsp + 0x130], 8
jb 0x1000638cd
mov rcx, qword [rsp + 0x118]
cmp rcx, r13
je 0x1000638cd
call sub.msvcrt.dll_free
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x128], r13
mov word [rsp + 0x118], r13w
cmp qword [rsp + 0x160], 8
jb 0x100063903
mov rcx, qword [rsp + 0x148]
cmp rcx, r13
je 0x100063903
call sub.msvcrt.dll_free
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x158], r13
mov word [rsp + 0x148], r13w
mov al, 1
jmp 0x10006395d
cmp qword [rsp + 0x160], 8
jb 0x10006393d
mov rcx, qword [rsp + 0x148]
cmp rcx, r13
je 0x10006393d
call sub.msvcrt.dll_free
mov ebx, 7
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x158], r13
mov word [rsp + 0x148], r13w
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret