Function at 0x14001c0c0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov edi, edx
mov rbx, rcx
call fcn.14001bc10
mov r9, rax
mov r8, rbx
mov edx, edi
lea rcx, str._INIT_LIB____0x_X_at__s_n__s_n
call fcn.14001c670
test rbx, rbx
je 0x14001c64d
cmp byte [rbx], 0
je 0x14001c64d
test dil, 8
je 0x14001c123
mov eax, 0x14
jmp 0x14001c652
call fcn.14001bab0
mov ecx, 0x1fd8
call fcn.140024e0c
mov qword [rsp + 0x100], rax
xor r15d, r15d
test rax, rax
je 0x14001c14c
mov rcx, rax
call fcn.14001acb0
jmp 0x14001c14f
mov rax, r15
mov qword [0x140036908], rax
mov edx, edi
mov rcx, rbx
call fcn.14001d120
mov rcx, rbx
call fcn.14001cdb0
mov esi, eax
lea rcx, str.R3DSDKPATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14001c189
cmp byte [rax], 0
je 0x14001c189
mov rcx, rax
call fcn.14001cdb0
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov edx, r15d
mov rcx, qword [0x140036908]
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
test eax, eax
jle 0x14001c1fd
lea r8, [rsp + 0x80]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
shl rax, 6
add rax, qword [rcx + 0x1a78]
mov qword [r8], rax
inc edx
lea r8, [r8 + 8]
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
cmp edx, eax
jl 0x14001c1d0
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
cmp eax, 1
jle 0x14001c244
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
movsxd rdx, eax
lea r9, [0x14001d310]
mov r8d, 8
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
lea rcx, str._______________________n
call fcn.14001c670
mov edi, r15d
mov rax, qword [0x140036908]
mov rcx, qword [rax + 0x1a80]
sub rcx, qword [rax + 0x1a78]
sar rcx, 6
test ecx, ecx
jle 0x14001c2f2
lea rbx, [rsp + 0x80]
nop dword [rax]
mov rax, qword [rbx]
mov r9d, dword [rax + 4]
mov r8d, dword [rax]
mov edx, edi
lea rcx, str._d:_idx___u__status___d__version_
call fcn.14001c670
mov rax, qword [rbx]
mov r9d, dword [rax + 0x10]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
lea rcx, str._u._u._u
call fcn.14001c670
mov rdx, qword [rbx]
add rdx, 0x20
cmp qword [rdx + 0x18], 0x10
jb 0x14001c2c3
mov rdx, qword [rdx]
lea rcx, str.:__s_n
call fcn.14001c670
inc edi
add rbx, 8
mov rax, qword [0x140036908]
mov rdx, qword [rax + 0x1a80]
sub rdx, qword [rax + 0x1a78]
sar rdx, 6
cmp edi, edx
jl 0x14001c280
lea rcx, str._______________________n
call fcn.14001c670
mov ebp, r15d
mov rcx, qword [0x140036908]
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
test eax, eax
jle 0x14001c629
lea r14, [rsp + 0x80]
mov r12d, 2
mov rax, qword [r14]
mov edx, dword [rax + 4]
test edx, edx
jne 0x14001c5c0
lea rsi, [rcx + 0x30]
mov ebx, dword [rsi + 0x1a40]
sub ebx, 1
js 0x14001c374
movsxd rax, ebx
imul rdi, rax, 0x148
add rdi, rsi
nop word [rax + rax]
mov rcx, rdi
call fcn.140021ca0
sub rdi, 0x148
sub ebx, 1
jns 0x14001c360
mov dword [rsi + 0x1a40], r15d
lea rcx, [rsi + 0x19a0]
xor edx, edx
mov r8d, 0xa0
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [r14]
add rdx, 0x20
lea r8, str.REDR3D_x64.dll
lea rcx, [rsp + 0x58]
call fcn.14001a060
mov rsi, rax
mov rbx, qword [0x140036908]
add rbx, 0x30
cmp qword [rax + 0x10], 0
jne 0x14001c3c6
mov edi, 0xf
jmp 0x14001c4aa
mov eax, dword [rbx + 0x1a40]
cmp eax, 0x14
jne 0x14001c3e7
lea rcx, str._FAIL_INT.___loading_too_many_libraries
call fcn.14001c670
mov edi, 0x10
jmp 0x14001c4aa
imul rcx, rax, 0x148
add rcx, rbx
mov r8, qword [0x140036980]
mov rdx, rsi
call fcn.140020800
mov edi, eax
test eax, eax
je 0x14001c434
cmp qword [rsi + 0x18], 0x10
jb 0x14001c410
mov rsi, qword [rsi]
mov r8d, eax
cmp eax, 1
cmove r8d, r12d
mov r9, rsi
mov edx, eax
lea rcx, str._FAIL_LOAD____d_____d____s_n
call fcn.14001c670
cmp edi, 1
cmove edi, r12d
jmp 0x14001c4aa
mov eax, dword [rbx + 0x1a40]
imul rcx, rax, 0x148
mov edx, dword [rcx + rbx]
cmp edx, 0x52334410
je 0x14001c474
lea rcx, str._FAIL_ID______08X_n
call fcn.14001c670
mov eax, dword [rbx + 0x1a40]
imul rcx, rax, 0x148
add rcx, rbx
call fcn.140021ca0
mov edi, 7
jmp 0x14001c4aa
lea rcx, str._OK_LOAD_____n
call fcn.14001c670
mov edx, dword [rbx + 0x1a40]
imul rax, rdx, 0x148
mov rcx, qword [rax + rbx + 0x138]
mov rax, qword [rcx + 8]
mov qword [rbx + rdx*8 + 0x19a0], rax
inc dword [rbx + 0x1a40]
mov edi, r15d
mov rax, qword [r14]
mov dword [rax + 4], edi
mov r8, qword [rsp + 0x70]
cmp r8, 0x10
jb 0x14001c4cd
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140019da0
mov rax, qword [r14]
cmp dword [rax + 4], 0
jne 0x14001c5b1
mov rbx, qword [0x140036908]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001f610
nop
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rdx, rax
lea rcx, [rbx + 0x30]
call fcn.140020290
test eax, eax
je 0x14001c51d
mov edx, eax
lea rcx, str._WARN_INT.___unknown_options:__X_n
call fcn.14001c670
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea r8, [rsp + 0x20]
add r8, rcx
mov rdx, qword [r14]
add rdx, 0x20
mov rcx, qword [0x140036908]
add rcx, 0x30
call fcn.14001c720
mov ebx, eax
test eax, eax
je 0x14001c559
lea rcx, str._FAIL_LOAD___n
call fcn.14001c670
jmp 0x14001c58e
mov rcx, qword [0x140036908]
add rcx, 0x30
mov r8d, 9
lea rdx, [0x140036910]
call fcn.14001cb00
mov ebx, eax
test eax, eax
jne 0x14001c58e
mov rcx, qword [0x140036908]
add rcx, 0x30
call fcn.14001bdd0
mov ebx, eax
mov rcx, qword [r14]
mov dword [rcx + 4], ebx
mov rax, qword [r14]
cmp dword [rax + 4], 0
je 0x14001c5e6
lea rcx, [rsp + 0x48]
call fcn.14001f980
lea rcx, [rsp + 0x48]
call fcn.14001f900
mov rax, qword [r14]
mov esi, dword [rax + 4]
mov rcx, qword [0x140036908]
jmp 0x14001c5c5
test esi, esi
cmove esi, edx
inc ebp
add r14, 8
mov rax, qword [rcx + 0x1a80]
sub rax, qword [rcx + 0x1a78]
sar rax, 6
cmp ebp, eax
jge 0x14001c629
jmp 0x14001c330
mov rax, qword [0x140036908]
mov dword [rax], ebp
lea rcx, [rsp + 0x80]
call fcn.14001b9e0
call fcn.14001bc10
mov rdx, rax
lea rcx, str.__s_n_OK_INIT_____n
call fcn.14001c670
nop
lea rcx, [rsp + 0x48]
call fcn.14001f980
lea rcx, [rsp + 0x48]
call fcn.14001f900
xor eax, eax
jmp 0x14001c652
lea rcx, [rsp + 0x80]
call fcn.14001b9e0
call fcn.14001bab0
mov edx, esi
lea rcx, str._FAIL_INIT___error__d_n
call fcn.14001c670
mov eax, esi
jmp 0x14001c652
mov eax, 0xf
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret