Function at 0x180053280
Capabilities:
Access peb ldr_data

Disassembly:
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 [0x180065730]
mov rbp, r9
mov rax, qword gs:[0x58]
mov rsi, r14
mov qword [r8], r14
mov rdi, r14
movzx r15d, byte [r14]
mov r13d, 2
mov qword [rsp + 0x68], rbx
lea rdx, [rax + rcx*8]
mov qword [rsp + 0x60], rdx
mov r9d, 4
movabs r8, 0x100002600
test rbp, rbp
jne 0x180053388
movzx eax, byte [rsi]
cmp al, 0x3b
je 0x180053388
cmp al, 0x23
je 0x180053388
cmp byte [rsp + 0x80], bpl
je 0x1800534ed
xor edx, edx
mov rdi, rsi
cmp al, 0x20
ja 0x180053348
movsx rcx, al
bt r8, rcx
jae 0x180053348
cmp al, 0xa
je 0x18005332c
cmp al, 0xd
jne 0x18005333b
inc edx
cmp al, 0xd
jne 0x18005333b
cmp byte [rsi + 1], 0xa
mov rax, r13
je 0x180053340
mov eax, 1
add rsi, rax
movzx eax, byte [rsi]
jmp 0x180053313
cmp al, 0x3b
je 0x180053354
cmp al, 0x23
jne 0x1800534ed
test edx, edx
jle 0x18005337a
mov ebx, edx
mov rcx, r14
mov r8d, edx
mov dl, 0xa
call sub.VCRUNTIME140.dll_memset
add r14, rbx
mov r9d, 4
movabs r8, 0x100002600
mov rdx, qword [rsp + 0x60]
mov qword [r12], rsi
jmp 0x1800532e7
movzx eax, byte [rsi]
test al, al
je 0x1800533ad
mov rcx, rsi
cmp al, 0xa
je 0x1800533ad
cmp al, 0xd
je 0x1800533ad
movzx eax, byte [rcx + 1]
lea rdi, [rcx + 1]
mov qword [r12], rdi
mov rcx, rdi
test al, al
jne 0x180053392
cmp r14, rsi
jae 0x1800533e0
mov rbx, rdi
mov rdx, rsi
sub rbx, rsi
mov rcx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
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 0x18005349f
dec rdi
cmp rdi, r14
jbe 0x18005340e
movsx rax, byte [rdi]
cmp al, 0x20
ja 0x18005340e
bt r8, rax
jae 0x18005340e
dec rdi
cmp rdi, r14
ja 0x1800533f8
movzx ebp, byte [rdi + 1]
mov ebx, r9d
add rbx, qword [rdx]
mov byte [rdi + 1], 0
mov eax, dword [rbx]
cmp dword [0x1800660f8], eax
jle 0x180053447
lea rcx, [0x1800660f8]
call fcn.180053fd0
cmp dword [0x1800660f8], 0xffffffff
jne 0x180053447
lea rcx, [0x1800660f8]
call fcn.180053f70
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
js 0x180053496
mov eax, dword [rbx]
cmp dword [0x1800660f8], eax
jle 0x180053484
lea rcx, [0x1800660f8]
call fcn.180053fd0
cmp dword [0x1800660f8], 0xffffffff
jne 0x180053484
lea rcx, [0x1800660f8]
call fcn.180053f70
mov rcx, qword [rsp + 0x78]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jns 0x1800534e8
mov byte [rdi + 1], bpl
mov rbp, qword [rsp + 0x78]
test r15b, r15b
je 0x180053531
mov rcx, qword [r12]
mov rax, rcx
sub rax, rsi
add r14, rax
mov byte [rcx], r15b
cmp r15b, 0xd
jne 0x1800534c7
cmp byte [rcx + 1], 0xa
mov rax, r13
je 0x1800534cc
mov eax, 1
mov rdx, qword [rsp + 0x60]
lea rsi, [rcx + rax]
mov byte [r14], 0xa
mov rdi, rsi
mov qword [r12], rsi
inc r14
jmp 0x1800532d7
mov rbp, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rax, qword [r12]
cmp qword [r8], rax
jne 0x180053506
mov qword [r8], 0
xor al, al
jmp 0x180053533
mov byte [r14 - 1], 0
test rbp, rbp
je 0x180053531
test r15b, r15b
je 0x180053531
mov byte [rax], r15b
cmp r15b, 0xd
jne 0x180053524
cmp byte [rax + 1], 0xa
je 0x18005352a
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