Function at 0x18004a970
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, qword [rdx]
mov r12, rdx
mov ecx, dword [0x180231750]
mov rbp, r9
mov rax, qword gs:[0x58]
mov rsi, r14
mov qword [r8], r14
mov r13d, 2
movzx r15d, byte [r14]
lea rdx, [rax + rcx*8]
mov qword [rsp + 0x60], rdx
mov r9d, 4
movabs r8, 0x100002600
test rbp, rbp
jne 0x18004aa7f
movzx ecx, byte [rsi]
cmp cl, 0x3b
je 0x18004aa7f
cmp cl, 0x23
je 0x18004aa7f
cmp byte [rsp + 0x80], bpl
je 0x18004abe3
xor edx, edx
cmp cl, 0x20
ja 0x18004aa3d
movsx rax, cl
bt r8, rax
jae 0x18004aa3d
cmp cl, 0xa
je 0x18004aa2e
cmp cl, 0xd
jne 0x18004aa30
inc edx
cmp byte [rsi + 1], 0xa
jne 0x18004aa30
mov rax, r13
add rsi, rax
movzx ecx, byte [rsi]
jmp 0x18004aa02
inc edx
mov eax, 1
add rsi, rax
movzx ecx, byte [rsi]
jmp 0x18004aa02
cmp cl, 0x3b
je 0x18004aa4b
cmp cl, 0x23
jne 0x18004abe3
test edx, edx
jle 0x18004aa71
mov ebx, edx
mov rcx, r14
mov r8d, edx
mov dl, 0xa
call fcn.18018a540
add r14, rbx
mov r9d, 4
movabs r8, 0x100002600
mov rdx, qword [rsp + 0x60]
mov qword [r12], rsi
jmp 0x18004a9d4
movzx eax, byte [rsi]
mov rdi, rsi
test al, al
je 0x18004aaa7
nop dword [rax]
cmp al, 0xa
je 0x18004aaa7
cmp al, 0xd
je 0x18004aaa7
movzx eax, byte [rdi + 1]
inc rdi
mov qword [r12], rdi
test al, al
jne 0x18004aa90
cmp r14, rsi
jae 0x18004aada
mov rbx, rdi
mov rdx, rsi
sub rbx, rsi
mov rcx, r14
mov r8, rbx
call fcn.180189ea0
mov rdx, qword [rsp + 0x60]
movabs r8, 0x100002600
mov r9d, 4
mov byte [rbx + r14], 0
movzx r15d, byte [rdi]
mov byte [rdi], 0
test rbp, rbp
je 0x18004ab98
lea rbx, [rdi - 1]
cmp rbx, r14
jbe 0x18004ab09
movsx rax, byte [rbx]
cmp al, 0x20
ja 0x18004ab09
bt r8, rax
jae 0x18004ab09
dec rbx
cmp rbx, r14
ja 0x18004aaf3
movzx ebp, byte [rbx + 1]
mov edi, r9d
add rdi, qword [rdx]
mov byte [rbx + 1], 0
mov eax, dword [rdi]
cmp dword [0x180233300], eax
jle 0x18004ab42
lea rcx, [0x180233300]
call fcn.1800c1898
cmp dword [0x180233300], 0xffffffff
jne 0x18004ab42
lea rcx, [0x180233300]
call fcn.1800c182c
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.1800db960
test eax, eax
js 0x18004ab8f
mov eax, dword [rdi]
cmp dword [0x180233300], eax
jle 0x18004ab7e
lea rcx, [0x180233300]
call fcn.1800c1898
cmp dword [0x180233300], 0xffffffff
jne 0x18004ab7e
lea rcx, [0x180233300]
call fcn.1800c182c
mov rcx, qword [rsp + 0x78]
mov rdx, r14
call fcn.1800db960
test eax, eax
jns 0x18004abde
mov byte [rbx + 1], bpl
mov rbp, qword [rsp + 0x78]
test r15b, r15b
je 0x18004ac27
mov rcx, qword [r12]
mov rax, rcx
sub rax, rsi
add r14, rax
mov byte [rcx], r15b
cmp r15b, 0xd
jne 0x18004abc0
cmp byte [rcx + 1], 0xa
mov rax, r13
je 0x18004abc5
mov eax, 1
mov rdx, qword [rsp + 0x60]
lea rsi, [rcx + rax]
mov byte [r14], 0xa
inc r14
mov qword [r12], rsi
jmp 0x18004a9c4
mov rbp, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rax, qword [r12]
cmp qword [r8], rax
jne 0x18004abfc
mov qword [r8], 0
xor al, al
jmp 0x18004ac29
mov byte [r14 - 1], 0
test rbp, rbp
je 0x18004ac27
test r15b, r15b
je 0x18004ac27
mov byte [rax], r15b
cmp r15b, 0xd
jne 0x18004ac1a
cmp byte [rax + 1], 0xa
je 0x18004ac20
mov r13d, 1
add rax, r13
mov qword [r12], rax
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret