Function at 0x515d7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2f8
mov r15, rdx
mov rbx, rcx
lea r12, [rsp + 0x30]
mov rcx, r12
call fcn.005171ad
mov r8d, dword [r12]
cmp r8d, 0x22
jne 0x515e12
lea rsi, [rsp + 0x38]
lea rax, [rsp + 0x204]
mov ecx, 0x1c
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
lea r13, [rsp + 0x160]
mov ecx, 0x1c
mov rdi, r13
mov rsi, rax
rep movsd dword [rdi], dword [rsi]
mov rcx, r15
call fcn.00512940
mov rax, qword [r15]
mov r14, qword [r15 + 0x10]
cmp qword [rax + 0xa0], r14
jne 0x515e63
mov rcx, rbx
mov rdx, r15
call fcn.00515cbf
mov dword [rbx + 0x98], 0x110008
lea rcx, [rsp + 0x160]
call fcn.00517374
jmp 0x515e4f
lea rax, [rsp + 0x34]
lea rdx, [rsp + 0x200]
mov ecx, 0x1d
mov rdi, rdx
mov rsi, rax
rep movsd dword [rdi], dword [rsi]
mov rax, qword [rax + 0x74]
lea rdi, [rbx + 4]
mov ecx, 0x1d
mov rsi, rdx
rep movsd dword [rdi], dword [rsi]
mov dword [rbx], r8d
mov qword [rbx + 0x78], rax
mov dword [rbx + 0x98], 0x110008
add rsp, 0x2f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.00512aea
cmp eax, 0x2d
jne 0x515e8e
mov rcx, r15
call fcn.00517210
cmp eax, 0x5d
je 0x515e8e
mov rcx, r15
call fcn.00517210
cmp eax, 0x2d
jne 0x515ff5
mov al, byte [rsp + 0x1c8]
lea edx, [rax - 2]
movzx r8d, dl
cmp r8b, 4
mov ecx, 4
cmovb ecx, r8d
test cl, cl
je 0x515f3a
movzx ecx, cl
cmp ecx, 3
je 0x515efc
lea r8, [rsp + 0x1c9]
lea rsi, [rsp + 0x160]
cmp ecx, 4
jne 0x515f78
mov ecx, 0xd
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov byte [rbx + 0x68], al
mov eax, dword [r8]
mov ecx, dword [r8 + 3]
mov dword [rbx + 0x69], eax
mov dword [rbx + 0x6c], ecx
mov dword [rbx + 0x98], 0x110004
jmp 0x515e4f
mov rax, qword [rsp + 0x190]
mov qword [rbx + 0x30], rax
movups xmm0, xmmword [rsp + 0x160]
movups xmm1, xmmword [rsp + 0x170]
movups xmm2, xmmword [rsp + 0x180]
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov dword [rbx + 0x98], 0x110005
jmp 0x515e4f
mov rax, qword [rsp + 0x190]
mov qword [rbx + 0x30], rax
movups xmm0, xmmword [rsp + 0x160]
movups xmm1, xmmword [rsp + 0x170]
movups xmm2, xmmword [rsp + 0x180]
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov dword [rbx + 0x98], 0x110001
jmp 0x515e4f
mov ecx, 0xd
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
lea rcx, [rsp + 0x68]
mov byte [rcx + 0x30], al
mov eax, dword [r8]
mov r8d, dword [r8 + 3]
mov dword [rcx + 0x31], eax
mov dword [rcx + 0x34], r8d
cmp dl, 4
cmovb rcx, r12
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
lea r9, [rsp + 0x280]
movaps xmmword [r9 + 0x20], xmm2
movaps xmmword [r9 + 0x10], xmm1
movaps xmmword [r9], xmm0
lea rax, [rsp + 0x200]
mov dword [rax], 1
mov rdx, qword [r15 + 8]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov r8, r14
call fcn.005158c3
mov dword [rbx + 0x98], 0x110008
mov rcx, r12
jmp 0x515e0b
mov rcx, r15
call fcn.0051591b
test al, al
je 0x515dee
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov rdx, r15
call fcn.005171ad
mov r8d, dword [rsi]
cmp r8d, 0x22
jne 0x5161ed
lea rsi, [rsp + 0x38]
lea rax, [rsp + 0x204]
mov ecx, 0x1c
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
lea rdx, [rsp + 0x280]
mov ecx, 0x1c
mov rdi, rdx
mov rsi, rax
rep movsd dword [rdi], dword [rsi]
lea rax, [rsp + 0x198]
mov cl, byte [rax + 0x30]
add cl, 0xfe
cmp cl, 4
cmovb rax, r13
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x130], xmm0
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x140], rax
mov al, byte [rdx + 0x68]
add al, 0xfe
cmp al, 4
lea rax, [rsp + 0x2b8]
cmovb rax, rdx
movups xmm0, xmmword [rax + 0x18]
movups xmmword [rsp + 0x148], xmm0
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x158], rax
mov rsi, qword [r15 + 8]
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, r13
mov r8, rsi
mov r9, r14
call fcn.00517382
mov eax, dword [rdi]
cmp eax, 0x22
jne 0x516225
lea rdi, [rsp + 0x30]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmm2, xmmword [rdi + 0x28]
movups xmmword [rsp + 0xd4], xmm2
movups xmmword [rsp + 0xc4], xmm1
movups xmmword [rsp + 0xb4], xmm0
mov ebp, dword [rdi + 0x38]
mov r15d, dword [rdi + 0x3c]
lea rdx, [rsp + 0x280]
mov rcx, rdi
mov r8, rsi
mov r9, r14
call fcn.00517382
mov eax, dword [rdi]
cmp eax, 0x22
jne 0x5162d4
lea rcx, [rsp + 0xb4]
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x114], xmm2
movups xmmword [rsp + 0x104], xmm1
movups xmmword [rsp + 0xf4], xmm0
mov eax, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6c]
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1e0], xmm1
movaps xmmword [rsp + 0x1f0], xmm2
movaps xmm0, xmmword [rsp + 0x130]
movaps xmm1, xmmword [rsp + 0x140]
movaps xmm2, xmmword [rsp + 0x150]
movaps xmmword [rsp + 0x220], xmm2
movaps xmmword [rsp + 0x210], xmm1
movaps xmmword [rsp + 0x200], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movaps xmmword [rsp + 0x250], xmm2
movaps xmmword [rsp + 0x240], xmm1
movaps xmmword [rsp + 0x230], xmm0
cmp ebp, eax
jbe 0x516371
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x200]
mov rcx, rbx
mov rdx, rsi
mov r8, r14
call fcn.005158c3
jmp 0x515e45
lea rax, [rsp + 0x34]
lea rdx, [rsp + 0x200]
mov ecx, 0x1d
mov rdi, rdx
mov rsi, rax
rep movsd dword [rdi], dword [rsi]
mov rax, qword [rax + 0x74]
lea rdi, [rbx + 4]
mov ecx, 0x1d
mov rsi, rdx
rep movsd dword [rdi], dword [rsi]
mov dword [rbx], r8d
mov qword [rbx + 0x78], rax
jmp 0x515df9
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0xe0], ecx
movups xmm0, xmmword [rsp + 0x34]
movups xmm1, xmmword [rsp + 0x44]
movups xmm2, xmmword [rsp + 0x54]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x40], xmm0
mov edx, dword [rsp + 0xe0]
mov dword [rbx + 0x34], edx
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movaps xmm2, xmmword [rsp + 0xd0]
movups xmmword [rbx + 0x24], xmm2
movups xmmword [rbx + 0x14], xmm1
movups xmmword [rbx + 4], xmm0
mov dword [rbx], eax
mov qword [rbx + 0x38], rcx
mov dword [rbx + 0x98], 0x110008
lea rcx, [rsp + 0x280]
jmp 0x515e0b
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x120], ecx
movups xmm0, xmmword [rsp + 0x34]
movups xmm1, xmmword [rsp + 0x44]
movups xmm2, xmmword [rsp + 0x54]
movaps xmmword [rsp + 0x110], xmm2
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0xf0], xmm0
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x40], xmm0
mov edx, dword [rsp + 0x120]
mov dword [rbx + 0x34], edx
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movaps xmm2, xmmword [rsp + 0x110]
movups xmmword [rbx + 0x24], xmm2
movups xmmword [rbx + 0x14], xmm1
movups xmmword [rbx + 4], xmm0
mov dword [rbx], eax
mov qword [rbx + 0x38], rcx
jmp 0x515e45
lea rsi, [rsp + 0x200]
mov ecx, 0xc
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
movaps xmm0, xmmword [rsp + 0x1d0]
movaps xmm1, xmmword [rsp + 0x1e0]
movaps xmm2, xmmword [rsp + 0x1f0]
movups xmmword [rbx + 0x88], xmm2
movups xmmword [rbx + 0x78], xmm1
movups xmmword [rbx + 0x68], xmm0
mov dword [rbx + 0x60], ebp
mov dword [rbx + 0x64], r15d
mov dword [rbx + 0x98], eax
mov dword [rbx + 0x9c], edx
jmp 0x515e4f