Function at 0x1800ad430
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rax - 0x80], 0
mov r15d, r8d
mov dword [rax - 0x78], 0xffffffff
mov r12, rdx
mov qword [rax - 0x74], 0
mov r14, rcx
mov qword [rax - 0x6c], 0
mov qword [rax - 0x64], 0
lea eax, [r8 + 0x3a8]
mov dword [rsp + 0x48], eax
cmp r8d, eax
jae case.0x1800ad4fa.55
mov r8d, dword [rsp + 0xf0]
lea rdx, [0x18003c2d0]
mov r13, qword [rsp + 0x50]
mov ebx, dword [rsp + 0xf0]
mov edi, dword [rsp + 0xf0]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x38], r8
lea r10, [0x180000000]
cmp r15d, 0x131
ja 0x1800ad7f4
je case.0x1800ad4fa.55
lea eax, [r15 - 0x2f]
cmp eax, 0xf1
ja case.0x1800ad4fa.57
movzx eax, byte [r10 + rax + 0xad868]
mov ecx, dword [r10 + rax*4 + 0xad83c]
add rcx, r10
jmp rcx
mov rax, qword [r14]
mov r13, qword [rsp + 0x100]
cmp dword [rax], 0x7f2bb70f
jne 0x1800ad808
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
jmp case.0x1800ad4fa.57
mov esi, 0xe2
mov eax, esi
sub eax, 0xe2
je 0x1800ad54f
sub eax, 4
je 0x1800ad564
sub eax, 1
je 0x1800ad55a
sub eax, 4
je 0x1800ad58c
cmp eax, 1
jne 0x1800ad55a
lea rax, [rsp + 0x58]
mov qword [rsp + 0x80], rax
jmp 0x1800ad55a
lea rcx, [rsp + 0x58]
call qword [0x1800e21e8]
dec esi
cmp esi, 0xdd
ja 0x1800ad523
mov r9, qword [rsp + 0xf8]
lea rdx, [0x18003c2d0]
add r15d, 0x48
cmp r15d, dword [rsp + 0x48]
jae case.0x1800ad4fa.55
mov r8, qword [rsp + 0x38]
jmp 0x1800ad4bd
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call fcn.180052730
jmp 0x1800ad564
xor ebx, ebx
mov dword [rsp + 0xf0], ebx
jmp case.0x1800ad4fa.57
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x6c], rdx
mov rax, qword [rcx]
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 8]
mov dword [rsp + 0x60], eax
lea rax, [rcx + 0xc]
mov qword [rsp + 0x64], rax
jmp case.0x1800ad4fa.57
mov qword [rsp + 0x88], r14
jmp case.0x1800ad4fa.57
mov dword [rsp + 0x30], 0
jmp case.0x1800ad4fa.57
mov rdx, qword [r14]
mov ecx, dword [rdx + 0x80]
mov eax, dword [rdx + 0x18]
shl rcx, 0x20
or rcx, rax
cmp qword [rdx + 0x98], rcx
jae 0x1800ad769
cmp dword [r12], 0
jbe 0x1800ad761
mov esi, 5
cmp esi, 5
ja case.default.0x1800ad62b
mov eax, esi
mov ecx, dword [r10 + rax*4 + 0xad95c]
add rcx, r10
jmp rcx
mov rax, qword [r14]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov edx, 0xf3
call fcn.1800b0190
mov rbx, rax
test eax, eax
jne 0x1800ad761
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x90]
mov rax, qword [r14]
lea rcx, [rsp + 0x40]
mov edx, 0x52
mov qword [rsp + 0x90], rax
call fcn.18009e7d0
mov ebx, eax
test eax, eax
jne 0x1800ad761
jmp 0x1800ad722
sub dword [r12], edi
jmp case.default.0x1800ad62b
mov rcx, qword [r14]
mov edx, dword [r12]
mov ebp, dword [rcx + 0x80]
mov eax, dword [rcx + 0x18]
shl rbp, 0x20
or rbp, rax
sub rbp, qword [rcx + 0x98]
cmp edi, edx
cmovbe edx, edi
mov edi, edx
jmp case.default.0x1800ad62b
mov eax, edi
add r13, rax
add dword [rsp + 0xf0], edi
jmp case.default.0x1800ad62b
mov rax, qword [rsp + 0x50]
xor edx, edx
mov edi, dword [rax + 0x28]
mov rax, qword [r14]
mov rax, qword [rax + 0x98]
div rdi
mov r8, rdx
mov qword [rsp + 0x38], rdx
sub edi, edx
jmp case.default.0x1800ad62b
mov eax, edi
mov ecx, ebp
cmp rax, rbp
mov edx, r8d
mov rax, qword [r14]
cmovbe ecx, edi
mov edi, ecx
mov r8d, ecx
mov rcx, r13
add rdx, qword [rax + 0xb0]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [r14]
add qword [rax + 0x98], rdi
mov r8, qword [rsp + 0x38]
lea r10, [0x180000000]
dec esi
lea eax, [rsi + 0x10c]
cmp eax, 0x10b
ja 0x1800ad615
mov rdx, qword [r14]
mov ecx, dword [rdx + 0x80]
mov eax, dword [rdx + 0x18]
shl rcx, 0x20
or rcx, rax
cmp qword [rdx + 0x98], rcx
jb 0x1800ad605
mov r9, qword [rsp + 0xf8]
mov r15d, 0xbf
test r9, r9
je 0x1800ad77e
mov eax, dword [rsp + 0xf0]
mov dword [r9], eax
mov dword [rsp + 0x30], ebx
jmp 0x1800ad56c
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rax
jmp 0x1800ad564
mov r8, qword [r14]
mov rax, qword [r8 + 0xe0]
test rax, rax
je 0x1800ad812
xor edx, edx
cmp dword [rax + 0x10], edx
jle 0x1800ad7d9
xor ecx, ecx
mov rax, qword [rax + 0x18]
lea rcx, [rcx + 0x84]
inc edx
mov dword [rcx + rax - 0x84], 0
mov r8, qword [r14]
mov rax, qword [r8 + 0xe0]
cmp edx, dword [rax + 0x10]
jl 0x1800ad7b2
mov rax, qword [r8 + 0xe0]
mov dword [rsp + 0x30], 0
mov dword [rax + 8], 0
jmp 0x1800ad56c
mov eax, r15d
sub eax, 0x14b
je case.0x1800ad4fa.55
cmp eax, 0x1d
je case.0x1800ad4fa.55
jmp case.0x1800ad4fa.57
mov dword [rsp + 0x30], 0x7f2bb70f
jmp case.0x1800ad4fa.55
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret