Function at 0x52bdc0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x58]
cmp r12, qword [r14 + 0x10]
jbe 0x52c255
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf8], rdi
bt esi, 0
jb 0x52bdff
cmp qword [0x008ab348], rsi
jg 0x52bdff
cmp rsi, 2
jge 0x52be13
mov rbx, rsi
shl rbx, 1
call fcn.0052bac0
add rsp, 0xd0
pop rbp
ret
mov qword [rsp + 0x108], r8
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xe0], rax
mov rdx, rsi
sar rdx, 1
mov qword [rsp + 0x68], rdx
mov rsi, rdx
call fcn.0052bdc0
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x68]
mov r9, r8
sub r9, rdx
mov qword [rsp + 0x58], r9
mov rsi, qword [rsp + 0x100]
mov r10, rsi
sub r10, rdx
mov qword [rsp + 0x50], r10
shl rdx, 3
mov qword [rsp + 0xa0], rdx
mov r12, r9
neg r9
sar r9, 0x3f
and r9, rdx
mov r13, qword [rsp + 0xf8]
lea rdi, [r13 + r9]
mov qword [rsp + 0xa8], rdi
mov rcx, qword [rsp + 0xf0]
mov r9, rcx
sub r9, rsi
mov qword [rsp + 0x98], r9
mov rbx, qword [rsp + 0xe8]
mov r15, rbx
sub r15, rsi
shl rsi, 3
mov qword [rsp + 0x90], rsi
neg r9
sar r9, 0x3f
and r9, rsi
mov rdx, qword [rsp + 0xe0]
add r9, rdx
mov rax, r9
mov rbx, r15
mov rcx, qword [rsp + 0x98]
mov rsi, r10
mov r8, r12
call fcn.0052bdc0
mov rdx, qword [rsp + 0x100]
mov r9, rdx
shl rdx, 4
shl r9, 1
mov qword [rsp + 0x98], r9
mov r11, qword [rsp + 0xf0]
sub r11, r9
mov qword [rsp + 0x60], r11
mov r13, r11
neg r11
sar r11, 0x3f
and rdx, r11
mov r11, qword [rsp + 0xe0]
add rdx, r11
mov qword [rsp + 0xb0], rdx
mov qword [rsp], rdx
mov r15, qword [rsp + 0x68]
mov qword [rsp + 8], r15
mov qword [rsp + 0x10], r13
mov r9, qword [rsp + 0xa8]
mov qword [rsp + 0x18], r9
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x58]
mov qword [rsp + 0x28], r9
mov r9, qword [rsp + 0xf8]
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r15
mov r9, qword [rsp + 0x108]
mov qword [rsp + 0x40], r9
call fcn.00534ac0
xorps xmm15, xmm15
mov r14, qword [0x00c4bbb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x48], 0
je 0x52c040
mov rax, qword [rsp + 0xb0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0xf8]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rcx
mov rbx, qword [rsp + 0x108]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rbx
call fcn.00534ac0
xorps xmm15, xmm15
mov r14, qword [0x00c4bbb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x100]
lea r9, [rdx + rdx*2]
mov rcx, qword [rsp + 0xf0]
mov r10, rcx
sub r10, r9
mov qword [rsp + 0x88], r10
mov rbx, qword [rsp + 0xe8]
mov r11, rbx
sub r11, r9
mov qword [rsp + 0x80], r11
mov r12, r10
neg r10
shl r9, 3
sar r10, 0x3f
and r10, r9
mov r9, qword [rsp + 0xe0]
lea rax, [r9 + r10]
mov qword [rsp + 0xc0], rax
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rbx, r11
mov rcx, r12
call fcn.0052bdc0
mov r9, qword [rsp + 0x100]
mov rdx, r9
shl rdx, 5
mov r10, r9
shl r10, 2
mov rcx, qword [rsp + 0xe8]
mov rsi, rcx
sub rsi, r10
mov qword [rsp + 0x70], rsi
mov r8, qword [rsp + 0xf0]
mov r11, r8
sub r11, r10
mov qword [rsp + 0x78], r11
mov r10, r11
neg r11
sar r11, 0x3f
and rdx, r11
mov rbx, qword [rsp + 0xe0]
lea rdi, [rbx + rdx]
mov qword [rsp + 0xb8], rdi
mov r11, qword [rsp + 0x98]
cmp r11, rsi
mov r12, rsi
cmovl r12, r11
test rdx, rdx
je 0x52c16f
shl r12, 3
mov rax, rdi
mov rcx, r12
call fcn.0045cbe0
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xf0]
mov r9, qword [rsp + 0x100]
mov r10, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
sub r8, rdx
mov qword [rsp + 0x98], r8
mov r11, r8
neg r8
sar r8, 0x3f
mov r12, qword [rsp + 0xa0]
and r12, r8
lea rax, [rbx + r12]
mov qword [rsp + 0xc8], rax
sub rcx, rdx
mov qword [rsp + 0xa0], rcx
mov rbx, rcx
mov rcx, r11
mov r8, r10
call fcn.0052a6e0
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x100]
sub r8, r9
mov rsi, qword [rsp + 0x70]
sub rsi, r9
mov rdx, r8
neg rdx
sar rdx, 0x3f
mov r10, qword [rsp + 0x90]
and rdx, r10
mov r10, qword [rsp + 0xb8]
lea rdi, [r10 + rdx]
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.0052a6e0
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x100]
call fcn.0052a840
add rsp, 0xd0
pop rbp
ret
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
call fcn.0045a0c0
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]
jmp fcn.0052bdc0