Function at 0x4ad142b0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x540
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov esi, dword [0x4ad2e128]
xor ebp, ebp
xor eax, eax
mov dword [rsp + 0x3c], ebp
mov word [rsp + 0x40], bp
mov word [rsp + 0x42], bp
mov qword [rsp + 0x48], rax
mov word [rsp + 0x50], bp
mov word [rsp + 0x52], bp
mov qword [rsp + 0x58], rax
mov word [rsp + 0x60], bp
mov word [rsp + 0x62], bp
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], bp
mov word [rsp + 0x72], bp
mov qword [rsp + 0x78], rax
mov word [rsp + 0x80], bp
mov word [rsp + 0x82], bp
mov qword [r11 - 0x4c0], rax
mov word [rsp + 0x90], bp
mov word [rsp + 0x92], bp
mov qword [r11 - 0x4b0], rax
mov qword [r11 - 0x4a8], rax
mov qword [r11 - 0x4a0], rax
mov qword [r11 - 0x490], rbp
mov qword [r11 - 0x488], rbp
mov byte [rsp + 0xc8], bpl
mov qword [r11 - 0x478], rbp
mov dword [rsp + 0xdc], ebp
mov qword [r11 - 0x468], rax
mov qword [r11 - 0x460], rax
mov rdi, rcx
mov ebx, 0x106
lea rdx, [r11 - 0x228]
lea rcx, str.DIRCMD
mov r8d, ebx
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], 0x8000
mov dword [rsp + 0xb0], ebp
mov dword [rsp + 0xd8], ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebp
jne 0x4ad1e020
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.4ad13060
cmp eax, 1
je 0x4ad1e04d
mov eax, dword [rsp + 0x30]
test al, 0x40
jne 0x4ad1e052
bt eax, 0xa
jb 0x4ad1e060
lea rcx, [rsp + 0x110]
xor r8d, r8d
mov edx, ebx
call fcn.4ad05410
cmp dword [rsp + 0xb0], ebp
je 0x4ad1e06e
mov ecx, 0x38
call fcn.4ad017b8
mov ecx, 1
mov qword [rax], rbp
mov rbx, rax
call fcn.4ad03380
cmp eax, ebp
jne 0x4ad1e0ab
mov rcx, qword [rbx]
lea rdx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
or rcx, 0xffffffffffffffff
lea rdi, [0x4ad3c300]
cmp eax, ebp
jne 0x4ad1e0da
xor eax, eax
repne scasw ax, word [rdi]
mov eax, 0x2000
not rcx
lea rdi, [rcx - 1]
add edi, eax
lea ecx, [rdi + rdi]
call fcn.4ad017b8
mov rcx, rbx
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x20], ebp
mov dword [rbx + 0xc], ebp
mov dword [rbx + 8], ebp
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x30], ebp
call fcn.4ad13010
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.4ad14534
lea rdx, [0x4ad3c0a0]
lea rdi, [rsp + 0x110]
mov ebx, eax
mov eax, 0x104
sub rdi, rdx
lea rcx, [rax + 0x7ffffefa]
cmp rcx, rbp
je 0x4ad144f0
movzx ecx, word [rdi + rdx]
cmp cx, bp
je 0x4ad144f0
mov word [rdx], cx
add rdx, 2
sub rax, 1
jne 0x4ad144ce
cmp rax, rbp
je 0x4ad1e102
mov ecx, esi
mov word [rdx], bp
call fcn.4ad017e0
mov eax, ebx
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x320]
call fcn.4ad13060
cmp eax, 1
jne 0x4ad143da
xor edx, edx
mov ecx, 0x2377
call fcn.4ad0b8b0
nop
jmp 0x4ad143da
jmp 0x4ad14505
and eax, 0xfffb79fb
mov dword [rsp + 0x30], eax
jmp 0x4ad143fc
and eax, 0xfffffdbb
mov dword [rsp + 0x30], eax
jmp 0x4ad14406
lea rcx, [rsp + 0x110]
mov dword [rsp + 0xb0], 1
call fcn.4ad07b58
mov byte [rsp + 0xc8], 1
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xd0], rbp
jmp 0x4ad14425
mov ecx, 1
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea rdx, [rsp + 0xf0]
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
cmp eax, ebp
jne 0x4ad14447
mov qword [rbx], rbp
jmp 0x4ad14447
xor eax, eax
repne scasw ax, word [rdi]
movsx rax, word [rsp + 0xf0]
not rcx
lea rdi, [rcx - 1]
add rdi, rax
mov eax, 0x2000
cmp rdi, rax
cmovb edi, eax
jmp 0x4ad1447e
sub rdx, 2
jmp 0x4ad144f9