Function at 0x522960
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x522c0f
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
nop dword [rax]
test rbx, rbx
je 0x5229f5
movzx ecx, byte [rax]
cmp cl, 0x5c
je 0x522992
cmp cl, 0x2f
jne 0x52299e
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403280
xorps xmm15, xmm15
mov r14, qword [0x009485a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jge 0x5229e9
mov rbx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, rax
mov rdx, rbx
xor esi, esi
jmp 0x522a20
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
movzx esi, byte [rsp + 0x27]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
nop word [rax + rax]
test rbx, rbx
je 0x522b05
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x27], sil
xor edi, edi
jmp 0x522b6d
sub rbx, rdi
lea r8, [rbx - 1]
mov r9, r8
neg r8
sar r8, 0x3f
lea r10, [rdi + 1]
and r10, r8
lea r8, [rax + r10]
jmp 0x522a66
mov rdi, rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x48], r8
cmp rdi, 1
jne 0x522a80
cmp byte [rax], 0x2e
je 0x522a8d
nop dword [rax + rax]
cmp rdi, 2
jne 0x522a92
cmp word [rax], 0x2e2e
jne 0x522a92
mov esi, 1
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x27], sil
mov rbx, rdi
lea rcx, [0x0074d6b8]
mov edi, 1
call fcn.004d8de0
mov byte [rsp + 0x26], sil
call fcn.00522780
nop word [rax + rax]
test al, al
je 0x522a01
movzx ecx, byte [rsp + 0x26]
test cl, cl
je 0x522bf7
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
nop
call fcn.00472040
cmp rbx, 4
jl 0x522a01
cmp dword [rax], 0x5c2e5c5c
jne 0x522a01
nop dword [rax + rax]
jmp 0x522beb
test sil, sil
je 0x522b20
mov rax, rcx
mov rbx, rdx
call fcn.00521520
mov rdx, rbx
mov rcx, rax
nop dword [rax + rax]
cmp rdx, 2
jne 0x522b2d
cmp word [rcx], 0x2e2e
je 0x522b4f
cmp rdx, 3
jge 0x522b37
xor eax, eax
jmp 0x522b4b
mov rax, rcx
lea rbx, [0x006d6328]
mov ecx, 3
call fcn.00402d80
test al, al
je 0x522b5b
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov eax, 1
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rdi, r8
cmp rdi, rbx
jge 0x522a5d
movzx r8d, byte [rax + rdi]
nop dword [rax + rax]
cmp r8d, 0x80
jge 0x522b92
lea r8, [rdi + 1]
cmp rdi, rbx
jmp 0x522bcd
mov qword [rsp + 0x38], rdi
mov rcx, rdi
call fcn.0045d0c0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rax, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
movzx esi, byte [rsp + 0x27]
mov rdi, qword [rsp + 0x38]
mov r8, rbx
mov rbx, qword [rsp + 0x30]
jae 0x522c03
movzx r9d, byte [rax + rdi]
cmp r9b, 0x5c
je 0x522a3f
nop
cmp r9b, 0x2f
jne 0x522b6a
jmp 0x522a3f
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rax, rdi
mov rcx, rbx
call fcn.00465a20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004633c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00522960