Function at 0x514a80
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x514dff
push rbp
mov rbp, rsp
sub rsp, 0xa8
mov qword [rsp + 0x108], r10
mov qword [rsp + 0x100], r9
mov qword [rsp + 0xf8], r8
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0x110], r11
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rbx
mov rdx, qword [rsp + 0xc0]
sub r10, rdx
mov qword [rsp + 0x60], r10
mov r13, qword [rsp + 0xb8]
mov r15, qword [r13 + rdx*8 - 8]
mov rax, r15
call fcn.00508f20
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
call fcn.0050f820
mov qword [rsp + 0x88], rax
mov rcx, qword [rax]
mov qword [rsp + 0x90], rcx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x48], rdx
mov rbx, qword [rax + 0x10]
mov qword [rsp + 0x50], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rbx
mov rsi, qword [rsp + 0xb8]
mov qword [rsp + 0x18], rsi
mov rsi, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rsi
mov rdi, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rdi
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x30], rdi
nop dword [rax]
call fcn.00516800
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdi, qword [rsp + 0x108]
lea rcx, [rdi + 1]
mov rax, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xf0]
mov rdx, rcx
mov rcx, qword [rsp + 0xf8]
mov rdi, rdx
call fcn.0050c860
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rbx
mov qword [rsp], rax
mov rdx, qword [rsp + 0x108]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
mov rsi, qword [rsp + 0x100]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rsi, qword [rsp + 0x110]
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
call fcn.00516800
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x108]
mov rdi, qword [rsp + 0xa0]
mov qword [rdi + rdx*8], rcx
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
call fcn.0050e1c0
movzx ecx, al
mov rdi, qword [rsp + 0x60]
inc rdi
test rcx, rcx
mov rbx, qword [rsp + 0xd8]
mov ecx, 0
cmovne rbx, rcx
mov rdx, qword [rsp + 0xe0]
cmovne rdx, rcx
mov rax, qword [rsp + 0xd0]
mov ecx, 0
cmovne rax, rcx
mov rcx, rdx
call fcn.0050c860
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0xc0]
cmp rdx, 0x64
jge 0x514d07
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x90]
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
nop
call fcn.00514e80
jmp 0x514d33
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x90]
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
call fcn.005153c0
mov rax, qword [rsp + 0x88]
nop dword [rax + rax]
call fcn.0050f900
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.0050c840
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp], rdx
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x30], r8
call fcn.00516860
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.0050c840
mov rdi, rax
mov rsi, rbx
mov r8, rcx
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x60], r11
call fcn.00474300
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x60]
nop
jmp fcn.00514a80