Function at 0x5202a0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x520646
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xd0], r9
cmp r10, rsi
jg 0x520630
nop dword [rax + rax]
test rsi, rsi
je 0x5205c9
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0x88], rdi
nop dword [rax]
test r10, r10
je 0x52050d
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xd8], r10
cmp rsi, rcx
jg 0x520326
mov rdx, rsi
jmp 0x5203dd
mov qword [rsp + 0xd0], r9
mov qword [rsp + 0xe0], r11
cmp rsi, 1
jne 0x52038c
lea rax, [0x00603d40]
mov ebx, 1
mov rcx, rbx
call fcn.00447660
mov rdx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rsp + 0xc8]
mov r9, qword [rsp + 0xd0]
mov r10, qword [rsp + 0xd8]
mov r11, qword [rsp + 0xe0]
mov ecx, 1
mov esi, 1
jmp 0x5203dd
lea rcx, [rsi + 4]
mov qword [rsp + 0x50], rcx
lea rax, [0x00603d40]
mov rbx, rsi
nop
call fcn.00447660
mov rdx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rsp + 0xc8]
mov r9, qword [rsp + 0xd0]
mov r10, qword [rsp + 0xd8]
mov r11, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
mov rsi, rdx
nop dword [rax]
cmp r10, rcx
ja 0x520625
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x78], rax
mov qword [rsp], rax
mov qword [rsp + 8], r10
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
call fcn.0052bce0
xorps xmm15, xmm15
mov r14, qword [0x00917770]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc0]
cmp rcx, rdx
jge 0x5204f4
mov rbx, qword [rsp + 0x60]
nop
cmp rcx, rbx
ja 0x52061a
mov rsi, qword [rsp + 0x50]
sub rsi, rcx
sub rbx, rcx
mov r9, rcx
shl rcx, 3
mov r10, rsi
neg rsi
sar rsi, 0x3f
and rsi, rcx
mov r11, qword [rsp + 0x78]
add rsi, r11
mov qword [rsp], rsi
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r10
mov rbx, qword [rsp + 0xc8]
sub rbx, r9
sub rdx, r9
mov rsi, rbx
neg rbx
sar rbx, 0x3f
and rbx, rcx
mov rcx, qword [rsp + 0x88]
add rcx, rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
call fcn.0052be20
xorps xmm15, xmm15
mov r14, qword [0x00917770]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x520607
nop
mov rax, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x60]
jmp 0x5205d7
nop
cmp rsi, rcx
jg 0x520518
mov rdx, rsi
jmp 0x52057e
cmp rsi, 1
jne 0x52054e
lea rax, [0x00603d40]
mov ebx, 1
mov rcx, rbx
call fcn.00447660
mov rdx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x88]
mov esi, 1
mov ecx, 1
jmp 0x52057e
lea rcx, [rsi + 4]
mov qword [rsp + 0x58], rcx
lea rax, [0x00603d40]
mov rbx, rsi
call fcn.00447660
mov rdx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x88]
mov rsi, rdx
mov rcx, qword [rsp + 0x58]
cmp rdx, rsi
mov rbx, rsi
cmovl rsi, rdx
cmp rdi, rax
je 0x5205c0
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rax
shl rsi, 3
mov rbx, rdi
mov rcx, rsi
call fcn.00461c60
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x90
pop rbp
ret
xor ebx, ebx
add rsp, 0x90
pop rbp
ret
dec rsi
test rsi, rsi
jle 0x5205e6
mov rdi, qword [rax + rsi*8 - 8]
test rdi, rdi
je 0x5205d4
mov rdx, qword [rsp + 0x50]
cmp rsi, rdx
ja 0x5205ff
mov rbx, rsi
mov rcx, rdx
add rsp, 0x90
pop rbp
ret
mov rcx, rsi
call fcn.004612e0
lea rax, [0x00602e80]
lea rbx, [0x0075aec0]
call fcn.00433c40
mov rax, rcx
mov rcx, rbx
call fcn.00461320
mov rdx, rcx
mov rcx, r10
call fcn.004612e0
lea rax, [0x00602e80]
lea rbx, [0x0075aec0]
nop
call fcn.00433c40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
call fcn.0045efa0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
jmp fcn.005202a0