Function at 0x5198c0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x519c8b
push rbp
mov rbp, rsp
sub rsp, 0xa8
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0x100], r9
mov rdx, qword [rsp + 0xc0]
lea r12, [rdx - 1]
mov r13, r10
sub r10, rdx
cmp rdx, r12
jbe 0x519c7f
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x80], r13
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x100], r9
mov qword [rsp + 0xf8], r8
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0x110], r11
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rcx
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rdx*8 - 8]
call fcn.0050d260
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
call fcn.00514120
mov qword [rsp + 0x90], rax
mov rcx, qword [rax]
mov qword [rsp + 0x88], rcx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x58], rdx
mov rbx, qword [rax + 0x10]
mov qword [rsp + 0x60], 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 + 0x50]
mov qword [rsp + 0x30], rdi
call fcn.0051bac0
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdi, qword [rsp + 0x80]
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.00510b80
mov rdx, qword [rsp + 0x80]
cmp rcx, rdx
jb 0x519c71
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
mov rbx, qword [rsp + 0x100]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdx
mov rbx, qword [rsp + 0x110]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbx
call fcn.0051bac0
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x80]
cmp rcx, rax
jbe 0x519c6c
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0xa0]
mov qword [rdi + rax*8], rdx
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov rsi, rcx
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xe0]
call fcn.00512840
movzx edx, al
mov rdi, qword [rsp + 0x48]
inc rdi
test rdx, rdx
mov rbx, qword [rsp + 0xd8]
mov edx, 0
cmovne rbx, rdx
mov rcx, qword [rsp + 0xe0]
cmovne rcx, rdx
mov rax, qword [rsp + 0xd0]
mov edx, 0
cmovne rax, rdx
call fcn.00510b80
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0xc0]
cmp rdx, 0x64
jge 0x519b74
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x60]
call fcn.00519d00
jmp 0x519b9d
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x60]
call fcn.0051a420
mov rax, qword [rsp + 0x90]
call fcn.00514220
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
nop
call fcn.00510b40
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp], rdx
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x30], r8
call fcn.0051bb20
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
nop dword [rax]
call fcn.00510b40
mov rdi, rax
mov rsi, rbx
mov r8, rcx
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
add rsp, 0xa8
pop rbp
ret
call fcn.0047a0e0
mov rax, rcx
mov rcx, rdx
mov rdx, rax
call fcn.0047a160
mov rax, r12
mov rcx, rdx
call fcn.0047a0e0
nop
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.00477e00
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]
jmp fcn.005198c0