Function at 0x4d2080
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x58]
cmp r12, qword [r14 + 0x10]
jbe 0x4d2525
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf8], rdi
bt esi, 0
jb 0x4d20bf
cmp qword [0x007162b8], rsi
jg 0x4d20bf
cmp rsi, 2
jge 0x4d20d3
mov rbx, rsi
shl rbx, 1
call fcn.004d1da0
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 + 0x60], rdx
mov rsi, rdx
call fcn.004d2080
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x60]
mov r9, r8
sub r9, rdx
mov qword [rsp + 0x88], r9
mov rsi, qword [rsp + 0x100]
mov r10, rsi
sub r10, rdx
mov qword [rsp + 0x80], 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 + 0xc0], 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.004d2080
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 + 0x68], 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 + 0x60]
mov qword [rsp + 8], r15
mov qword [rsp + 0x10], r13
mov r9, qword [rsp + 0xc0]
mov qword [rsp + 0x18], r9
mov r9, qword [rsp + 0x80]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x88]
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.004d8e80
xorps xmm15, xmm15
mov r14, qword [0x007c9d40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x48], 0
je 0x4d2317
mov rax, qword [rsp + 0xb0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x68]
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 + 0xc0]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x40], rbx
nop
call fcn.004d8e80
xorps xmm15, xmm15
mov r14, qword [0x007c9d40]
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 + 0x78], r10
mov rbx, qword [rsp + 0xe8]
mov r11, rbx
sub r11, r9
mov qword [rsp + 0x70], 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 + 0xb8], rax
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rbx, r11
mov rcx, r12
call fcn.004d2080
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 + 0x50], rsi
mov r8, qword [rsp + 0xf0]
mov r11, r8
sub r11, r10
mov qword [rsp + 0x58], r11
mov r10, r11
neg r11
sar r11, 0x3f
and rdx, r11
mov rbx, qword [rsp + 0xe0]
lea rdi, [rbx + rdx]
mov qword [rsp + 0xa8], rdi
mov r11, qword [rsp + 0x98]
cmp r11, rsi
mov r12, rsi
cmovl r12, r11
test rdx, rdx
je 0x4d2440
shl r12, 3
mov rax, rdi
mov rcx, r12
call fcn.0046fde0
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xf0]
mov r9, qword [rsp + 0x100]
mov r10, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
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.004d0a60
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x100]
sub r8, r9
mov rsi, qword [rsp + 0x50]
sub rsi, r9
mov rdx, r8
neg rdx
sar rdx, 0x3f
mov r10, qword [rsp + 0x90]
and rdx, r10
mov r10, qword [rsp + 0xa8]
lea rdi, [r10 + rdx]
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
nop dword [rax + rax]
call fcn.004d0a60
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x100]
call fcn.004d0bc0
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.0046d2c0
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.004d2080