Function at 0x4a0720
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x4a0a8f
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xf8], r9
mov rdx, qword [rsp + 0xc0]
nop word [rax + rax]
cmp rsi, rdx
jne 0x4a0a7b
cmp r10, rdx
jne 0x4a0a7b
mov r10, qword [rsp + 0xa8]
nop word [rax + rax]
cmp r10, rdx
jne 0x4a0a7b
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xf8], r9
mov rdi, rdx
shl rdi, 1
call fcn.0049fc40
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rbx
call fcn.0049fbc0
xor eax, eax
xor ecx, ecx
jmp 0x4a07db
lea rdx, [rdi + 1]
mov rcx, rax
mov rax, rdx
mov rbx, qword [rsp + 0xc0]
cmp rbx, rax
jle 0x4a0965
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rcx
mov rcx, rax
shl rax, 3
mov rdx, qword [rsp + 0xf8]
mov rsi, qword [rdx + rcx*8]
mov rdi, qword [rsp + 0x78]
sub rdi, rcx
mov qword [rsp + 0x68], rdi
mov r9, rdi
neg rdi
sar rdi, 0x3f
and rax, rdi
mov rdi, qword [rsp + 0x88]
add rax, rdi
mov qword [rsp + 0x80], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r9
mov r10, qword [rsp + 0xe0]
mov qword [rsp + 0x18], r10
mov r11, qword [rsp + 0xe8]
mov qword [rsp + 0x20], r11
mov r12, qword [rsp + 0xf0]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rsi
call fcn.004a8ee0
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx + rcx*8]
mov rsi, qword [rsp + 0x80]
mov qword [rsp], rsi
mov rsi, qword [rsp + 0xc0]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x10], rdi
mov rdi, qword [rsp + 0xa0]
mov qword [rsp + 0x18], rdi
mov r8, qword [rsp + 0xa8]
mov qword [rsp + 0x20], r8
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x28], r9
mov r10, qword [rsp + 0xb8]
imul rbx, r10
mov qword [rsp + 0x30], rbx
nop dword [rax]
call fcn.004a8ee0
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
lea rbx, [rdx + rax]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x50]
lea r8, [rdi + rsi]
mov r9, qword [rsp + 0x88]
mov qword [r9 + r8*8], rbx
cmp rcx, rdx
ja 0x4a0954
cmp rax, rbx
jbe 0x4a095e
mov eax, 1
jmp 0x4a07d1
xor eax, eax
jmp 0x4a07d1
test rcx, rcx
jne 0x4a09d3
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
sub rdx, rcx
mov rsi, rbx
shl rsi, 3
sar rdx, 0x3f
and rdx, rsi
mov rsi, qword [rsp + 0x70]
sub rsi, rbx
mov rax, qword [rsp + 0x88]
lea rdi, [rax + rdx]
cmp rbx, rsi
mov r8, rbx
cmovg r8, rsi
test rdx, rdx
je 0x4a0a72
shl r8, 3
mov rbx, rdi
mov rcx, r8
call fcn.00466940
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xc0]
jmp 0x4a0a72
mov rax, qword [rsp + 0x88]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x10], rcx
sub rcx, rbx
mov rsi, rcx
neg rcx
mov rdi, rbx
shl rbx, 3
sar rcx, 0x3f
and rcx, rbx
add rcx, rax
mov qword [rsp + 0x18], rcx
mov rcx, qword [rsp + 0x70]
sub rcx, rdi
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
call fcn.004a8b60
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rbp
ret
lea rax, [0x004d9580]
lea rbx, [0x0051ec40]
call fcn.004395a0
nop
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x70], r11
nop dword [rax]
call fcn.00463e80
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
jmp fcn.004a0720