Function at 0x4c5100
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x98]
cmp r12, qword [r14 + 0x10]
jbe 0x4c582e
push rbp
mov rbp, rsp
sub rsp, 0x110
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x150], r9
bt r10d, 0
jb 0x4c514f
nop dword [rax]
cmp qword [0x007342a0], r10
jg 0x4c514f
cmp r10, 2
jge 0x4c515d
call fcn.004c48a0
add rsp, 0x110
pop rbp
ret
mov qword [rsp + 0x160], r11
mov qword [rsp + 0x158], r10
mov qword [rsp + 0x150], r9
mov qword [rsp + 0x148], r8
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0x120], rax
mov rsi, r10
sar rsi, 1
mov qword [rsp + 0x90], rsi
mov r10, rsi
call fcn.004c5100
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x90]
mov r12, r8
sub r12, rdx
mov qword [rsp + 0x60], r12
mov rsi, qword [rsp + 0x140]
sub rsi, rdx
mov qword [rsp + 0x58], rsi
neg r12
sar r12, 0x3f
mov r11, qword [rsp + 0x160]
mov r15, r11
sub r15, rdx
mov qword [rsp + 0x88], r15
mov r10, qword [rsp + 0x158]
mov rax, r10
sub rax, rdx
mov qword [rsp + 0x80], rax
shl rdx, 3
mov qword [rsp + 0xd0], rdx
and r12, rdx
mov r13, qword [rsp + 0x138]
lea rdi, [r13 + r12]
mov qword [rsp + 0xd8], rdi
neg r15
sar r15, 0x3f
and r15, rdx
mov rdx, qword [rsp + 0x150]
add r15, rdx
mov qword [rsp + 0xf0], r15
mov rdx, qword [rsp + 0x130]
sub rdx, r10
mov qword [rsp + 0xc8], rdx
mov r13, qword [rsp + 0x128]
sub r13, r10
shl r10, 3
mov qword [rsp + 0xc0], r10
neg rdx
sar rdx, 0x3f
and rdx, r10
mov r12, qword [rsp + 0x120]
add rdx, r12
mov rax, rdx
mov rbx, r13
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0x60]
mov r9, r15
mov r10, qword [rsp + 0x80]
mov r11, qword [rsp + 0x88]
nop
call fcn.004c5100
mov rdx, qword [rsp + 0x158]
mov r12, rdx
shl rdx, 4
shl r12, 1
mov qword [rsp + 0xc8], r12
mov r15, qword [rsp + 0x130]
sub r15, r12
mov qword [rsp + 0x78], r15
mov rcx, r15
neg r15
sar r15, 0x3f
and r15, rdx
mov rdx, qword [rsp + 0x120]
add r15, rdx
mov qword [rsp + 0xe8], r15
mov qword [rsp], r15
mov r12, qword [rsp + 0x90]
mov qword [rsp + 8], r12
mov qword [rsp + 0x10], rcx
mov r15, qword [rsp + 0xd8]
mov qword [rsp + 0x18], r15
mov r15, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x28], r15
mov r15, qword [rsp + 0x138]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov r15, qword [rsp + 0x148]
mov qword [rsp + 0x40], r15
call fcn.004ccd20
xorps xmm15, xmm15
mov r14, qword [0x007a71a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x158]
mov r12, qword [rsp + 0x90]
lea r13, [r12 + rdx*2]
cmp qword [rsp + 0x48], 0
jne 0x4c53a5
mov eax, 1
nop dword [rax]
jmp 0x4c543e
mov qword [rsp + 0xb8], r13
mov rax, qword [rsp + 0xe8]
mov qword [rsp], rax
mov qword [rsp + 8], r12
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x10], rcx
mov rdx, qword [rsp + 0x138]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r12
mov rdx, qword [rsp + 0x148]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rdx
call fcn.004ccd20
xorps xmm15, xmm15
mov r14, qword [0x007a71a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x158]
mov r12, qword [rsp + 0x90]
mov r13, qword [rsp + 0xb8]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x130]
sub rcx, r13
mov qword [rsp + 0xa0], rcx
mov rsi, r13
shl r13, 3
mov rdi, rcx
neg rcx
sar rcx, 0x3f
and rcx, r13
mov r8, qword [rsp + 0x120]
add rcx, r8
mov qword [rsp + 0xf8], rcx
mov qword [rsp], rcx
lea r9, [rdx + rdx*2]
mov qword [rsp + 0xb8], r9
sub r9, rsi
mov qword [rsp + 0x98], r9
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rdi
mov rsi, qword [rsp + 0x150]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r12
mov r11, qword [rsp + 0x160]
mov qword [rsp + 0x28], r11
mov r13, qword [rsp + 0xf0]
mov qword [rsp + 0x30], r13
mov r15, qword [rsp + 0x80]
mov qword [rsp + 0x38], r15
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x40], rdx
call fcn.004ccd20
xorps xmm15, xmm15
mov r14, qword [0x007a71a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x48], 0
jne 0x4c5511
mov rax, qword [rsp + 0x50]
jmp 0x4c55a4
mov rax, qword [rsp + 0xf8]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0xf0]
mov qword [rsp + 0x18], rbx
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0x150]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbx
mov rsi, qword [rsp + 0x160]
mov qword [rsp + 0x40], rsi
call fcn.004ccd20
xorps xmm15, xmm15
mov r14, qword [0x007a71a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
neg rax
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xb8]
mov r12, rcx
sub r12, rdx
mov qword [rsp + 0x70], r12
mov r13, r12
neg r12
mov r15, rdx
shl rdx, 3
sar r12, 0x3f
and r12, rdx
mov rdx, qword [rsp + 0x120]
add r12, rdx
mov qword [rsp + 0xe0], r12
mov rbx, qword [rsp + 0x128]
mov rsi, rbx
sub rsi, r15
mov qword [rsp + 0x68], rsi
mov rdi, qword [rsp + 0xe8]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0xf8]
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0xa0]
mov rax, r12
mov rbx, rsi
mov rcx, r13
mov rsi, qword [rsp + 0x90]
call fcn.004c5100
mov r9, qword [rsp + 0x158]
mov rdx, r9
shl rdx, 5
mov r12, r9
shl r12, 2
mov rcx, qword [rsp + 0x128]
mov rsi, rcx
sub rsi, r12
mov qword [rsp + 0xa8], rsi
mov r8, qword [rsp + 0x130]
mov r13, r8
sub r13, r12
mov qword [rsp + 0xb0], r13
mov r12, r13
neg r13
sar r13, 0x3f
and rdx, r13
mov rbx, qword [rsp + 0x120]
lea rdi, [rbx + rdx]
mov qword [rsp + 0x100], rdi
mov r13, qword [rsp + 0xc8]
cmp r13, rsi
mov r15, rsi
cmovl r15, r13
test rdx, rdx
je 0x4c56fd
shl r15, 3
mov rax, rdi
mov rcx, r15
nop dword [rax]
call fcn.004711e0
mov rcx, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x120]
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x100]
mov r8, qword [rsp + 0x130]
mov r9, qword [rsp + 0x158]
mov r12, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x90]
sub r8, rdx
mov qword [rsp + 0xc8], r8
mov r10, r8
neg r8
sar r8, 0x3f
mov r11, qword [rsp + 0xd0]
and r11, r8
lea rax, [rbx + r11]
mov qword [rsp + 0x108], rax
sub rcx, rdx
mov qword [rsp + 0xd0], rcx
mov rbx, rcx
mov rcx, r10
mov r8, r12
call fcn.004c4e40
mov r8, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x158]
sub r8, r9
mov rsi, qword [rsp + 0xa8]
sub rsi, r9
mov rdx, r8
neg rdx
sar rdx, 0x3f
mov r10, qword [rsp + 0xc0]
and rdx, r10
mov r10, qword [rsp + 0x100]
lea rdi, [r10 + rdx]
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call fcn.004c4e40
mov rdx, qword [rsp + 0x50]
test rdx, rdx
jle 0x4c57e9
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x158]
call fcn.004c4e40
jmp 0x4c5825
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x158]
nop dword [rax + rax]
call fcn.004c4fa0
add rsp, 0x110
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
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
nop dword [rax + rax]
call fcn.0046e7c0
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.004c5100