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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe8
mov rax, qword [rcx]
mov r10, rdx
mov r9d, dword [rcx + 0x24]
mov r11, r8
movsx ecx, word [rdx + 2]
xor edx, edx
mov qword [rbp + 7], rax
mov rsi, qword [rax + 0xa0]
mov r12, qword [rax + 0x410]
lea r15d, [rcx + 4]
mov dword [rsp + 0x48], ecx
mov qword [rbp - 0x69], rdx
mov rdi, qword [rsi + 0x30]
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x61], rdx
mov qword [rbp - 0x49], rdx
mov qword [rbp - 0x41], rdx
mov qword [rbp - 1], r12
mov dword [rsp + 0x34], edx
mov qword [rbp - 0x19], rdx
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x79], rdx
cmp byte [rax + 0x409], dl
je 0x180087146
test r12, r12
je 0x180087146
test r15d, r15d
je 0x18008682e
mov r8d, r15d
mov rax, qword [r10 + 8]
mov ecx, dword [rdx + rax]
shl ecx, 6
mov dword [rdx + r11], ecx
lea rdx, [rdx + 8]
mov rax, qword [r10 + 8]
mov ecx, dword [rdx + rax - 4]
shl ecx, 6
mov dword [rdx + r11 - 4], ecx
sub r8, 1
jne 0x180086804
xor edx, edx
cmp r9d, dword [r12 + 0x78]
jae 0x180087142
mov rcx, qword [r12 + 0x80]
lea eax, [r9 + 1]
mov ebx, eax
mov r13, r9
mov eax, dword [rcx + rax*4]
cmp dword [rcx + r9*4], eax
je 0x180087142
xor r8d, r8d
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov r9d, r15d
mov qword [rsp + 0x20], rdx
mov rcx, rdi
lea edx, [r8 + 8]
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x39], rax
test r14d, r14d
jne 0x180087107
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 8]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x69], rax
test r14d, r14d
jne 0x180087107
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 1]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x61], rax
test r14d, r14d
jne 0x180087107
mov rcx, qword [r12 + 0x80]
mov edx, dword [rcx + r13*4]
mov ebx, dword [rcx + rbx*4]
mov rcx, rsi
sub ebx, edx
call fcn.180045460
mov r14d, eax
test eax, eax
jne 0x180087107
mov edx, ebx
mov rcx, rsi
call fcn.1800455f4
mov dword [rbp + 0x7f], eax
mov r14d, eax
test eax, eax
jne 0x180087107
mov r13d, dword [rsi + 0x38]
lea rax, [rbp + 0x7f]
mov r9d, dword [r12]
lea edx, [r14 + 4]
sub r13d, dword [rsi]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
and qword [rsp + 0x20], 0
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x71], rax
test r14d, r14d
jne 0x1800870c9
mov r9d, dword [r12]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x49], rax
test r14d, r14d
jne 0x1800870c9
mov r9d, dword [r12]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
test r14d, r14d
jne 0x1800870c9
mov rcx, rsi
call fcn.180045714
movzx r10d, ax
call fcn.180045714
movzx ecx, ax
cmp ecx, ebx
ja 0x1800870c3
mov eax, r10d
and eax, 0xfff
mov dword [rsp + 0x44], eax
shl eax, 2
cmp eax, ebx
ja 0x1800870c3
add ecx, r13d
mov dword [rsp + 0x30], ecx
bt r10d, 0xf
jae 0x180086a65
mov ebx, dword [rsi + 0x38]
mov eax, dword [rsi + 0x40]
sub ebx, dword [rsi]
sub eax, dword [rsi]
cmp ecx, eax
jae 0x180086a1e
mov eax, ecx
add rax, qword [rsi]
jmp 0x180086a22
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
lea r8, [rsp + 0x34]
mov edx, dword [r12 + 0x88]
mov rcx, rsi
call fcn.180082dbc
mov ecx, dword [rsi + 0x40]
mov r13d, dword [rsi + 0x38]
sub r13d, dword [rsi]
sub ecx, dword [rsi]
mov qword [rbp - 0x19], rax
mov dword [rsp + 0x30], r13d
cmp ebx, ecx
jae 0x180086a5b
mov ecx, ebx
add rcx, qword [rsi]
jmp 0x180086a5f
mov rcx, qword [rsi + 0x40]
mov qword [rsi + 0x38], rcx
jmp 0x180086a68
mov r13d, ecx
xor r8d, r8d
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov r9d, r15d
and qword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov rbx, rax
mov qword [rbp - 0x51], rax
test r14d, r14d
jne 0x180087085
lea rax, [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea edx, [r14 + 4]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
call fcn.180045f1c
mov r14d, dword [rbp + 0x7f]
mov r10, rax
mov qword [rbp - 0x79], rax
test r14d, r14d
jne 0x180087085
test r15d, r15d
je 0x180086b0c
mov r9, qword [rbp + 0x6f]
xor edx, edx
mov r11, qword [rbp - 0x39]
mov r8d, r15d
mov rax, qword [r9 + 8]
mov ecx, dword [rdx + rax]
shl ecx, 0x10
mov dword [rdx + r11], ecx
lea rdx, [rdx + 8]
mov rax, qword [r9 + 8]
mov ecx, dword [rdx + rax - 4]
shl ecx, 0x10
mov dword [rdx + r11 - 4], ecx
sub r8, 1
jne 0x180086ae4
and dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 0
jbe 0x180086f1a
mov rcx, rsi
call fcn.180045714
mov word [rbp + 0x7f], ax
call fcn.180045714
movzx ebx, ax
bt ebx, 0xf
jae 0x180086b60
mov r11, qword [rbp - 0x71]
xor r10d, r10d
cmp dword [r12], r10d
jbe 0x180086b97
mov rcx, rsi
call fcn.180045714
movsx ecx, ax
shl ecx, 2
mov dword [r11 + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x180086b43
jmp 0x180086b97
mov ecx, ebx
and ecx, 0xfff
cmp ecx, dword [r12 + 0x68]
jae 0x180086f46
mov eax, dword [r12]
imul ecx, eax
mov r8d, eax
mov rax, qword [r12 + 0x70]
shl r8, 2
lea rdx, [rax + rcx*4]
mov rcx, qword [rbp - 0x71]
call sub.VCRUNTIME140.dll_memcpy
mov r11, qword [rbp - 0x71]
bt ebx, 0xe
jae 0x180086bf8
mov eax, dword [r12]
xor r10d, r10d
test eax, eax
je 0x180086bce
mov rdi, qword [rbp - 0x49]
mov rcx, rsi
call fcn.180045714
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
mov eax, dword [r12]
cmp r10d, eax
jb 0x180086bac
mov rdi, qword [rbp - 0x59]
xor r10d, r10d
test eax, eax
je 0x180086bf8
mov rdi, qword [rbp - 0x41]
mov rcx, rsi
call fcn.180045714
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x180086bd9
mov rdi, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov r8, r11
mov r9, qword [rbp - 0x49]
movzx edx, bx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.180084ad8
mov dword [rsp + 0x3c], eax
test eax, eax
je 0x180086eee
mov eax, dword [rsi + 0x38]
sub eax, dword [rsi]
mov ecx, dword [rsi + 0x40]
sub ecx, dword [rsi]
mov dword [rbp - 0x31], eax
cmp r13d, ecx
jae 0x180086c39
mov eax, r13d
add rax, qword [rsi]
jmp 0x180086c3d
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
bt ebx, 0xd
jae 0x180086c6a
mov edx, dword [r12 + 0x88]
lea r8, [rsp + 0x38]
mov rcx, rsi
call fcn.180082dbc
mov r13d, dword [rsp + 0x38]
mov rcx, rax
mov qword [rbp - 0x29], rax
jmp 0x180086c78
mov r13d, dword [rsp + 0x34]
mov rcx, qword [rbp - 0x19]
mov dword [rsp + 0x38], r13d
mov edx, dword [r12 + 0x88]
test r13d, r13d
mov qword [rbp - 0x11], rcx
mov ebx, r13d
cmove ebx, r15d
mov rcx, rsi
mov r8d, ebx
call fcn.180082f54
mov edx, dword [r12 + 0x88]
mov r8d, ebx
mov rcx, rsi
mov qword [rbp - 0x21], rax
call fcn.180082f54
mov r9, qword [rbp - 0x11]
mov qword [rbp - 9], rax
test r9, r9
je 0x180086e8f
test rax, rax
je 0x180086e8f
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180086e8f
cmp r9, 0xffffffffffffffff
jne 0x180086d6a
test r15d, r15d
je 0x180086e8f
mov rdx, qword [rbp - 0x51]
mov r11, rcx
mov r9, qword [rbp - 0x79]
mov rbx, rax
movsxd r13, dword [rsp + 0x3c]
sub r11, rax
sub rbx, rdx
mov edi, r15d
sub r9, rdx
mov r10, rdx
mov r8d, dword [r9 + r10]
lea rax, [rbx + r10]
movsxd rcx, dword [rax + r11]
movsxd rdx, dword [rax]
imul rdx, r13
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
mov rax, rdx
shr rax, 0x3f
add rcx, 0x8000
sub rdx, rax
sar rcx, 0x10
add dword [r10], ecx
add rdx, 0x8000
sar rdx, 0x10
add edx, r8d
mov dword [r9 + r10], edx
lea r10, [r10 + 4]
sub rdi, 1
jne 0x180086d0c
mov rdi, qword [rbp - 0x59]
jmp 0x180086e8f
test r15d, r15d
je 0x180086da0
mov rcx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x61]
sub r8, rcx
mov r10d, r15d
mov byte [rdx], 0
inc rdx
mov rax, qword [r8 + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub r10, 1
jne 0x180086d81
mov rax, qword [rbp - 9]
mov rcx, qword [rbp - 0x21]
test r13d, r13d
je 0x180086e2c
mov rdi, qword [rbp - 0x69]
mov r11, rcx
mov r12, qword [rbp - 0x61]
sub r11, rax
mov ebx, r13d
mov r10, rax
movsxd r13, dword [rsp + 0x3c]
movzx eax, word [r9]
cmp eax, r15d
jae 0x180086e16
movzx r8d, word [r9]
mov byte [r8 + r12], 1
movsxd rcx, dword [r10 + r11]
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
add rcx, 0x8000
sar rcx, 0x10
add dword [rdi + r8*8], ecx
movsxd rcx, dword [r10]
imul rcx, r13
mov rax, rcx
shr rax, 0x3f
sub rcx, rax
add rcx, 0x8000
sar rcx, 0x10
add dword [rdi + r8*8 + 4], ecx
add r9, 2
add r10, 4
sub rbx, 1
jne 0x180086dc2
mov rdi, qword [rbp - 0x59]
mov r12, qword [rbp - 1]
mov rbx, qword [rbp - 0x39]
mov r13, qword [rbp - 0x69]
mov r8, rbx
mov r9, qword [rbp - 0x61]
mov rdx, r13
mov rcx, qword [rbp + 0x6f]
call fcn.180086560
test r15d, r15d
je 0x180086e8f
mov r8, qword [rbp - 0x79]
lea r9, [rbx + 4]
mov r11, qword [rbp - 0x51]
mov r10, r13
sub r10, rbx
mov ebx, r15d
sub r11, r8
mov ecx, dword [r10 + r9]
sub ecx, dword [r9]
mov edx, dword [r8]
mov eax, dword [r10 + r9 - 4]
sub eax, dword [r9 - 4]
lea r9, [r9 + 8]
add dword [r11 + r8], eax
lea eax, [rcx + rdx]
mov dword [r8], eax
lea r8, [r8 + 4]
sub rbx, 1
jne 0x180086e64
mov rcx, qword [rbp - 0x29]
cmp rcx, 0xffffffffffffffff
je 0x180086ead
test rcx, rcx
je 0x180086ea7
mov rdx, rcx
mov rcx, rdi
call qword [rdi + 0x10]
xor ecx, ecx
mov qword [rbp - 0x29], rcx
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x180086ebf
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x180086ece
mov rcx, rdi
call qword [rdi + 0x10]
mov eax, dword [rsi + 0x40]
sub eax, dword [rsi]
mov ecx, dword [rbp - 0x31]
cmp ecx, eax
jae 0x180086ee1
mov eax, ecx
add rax, qword [rsi]
jmp 0x180086ee5
mov rax, qword [rsi + 0x40]
mov r13d, dword [rsp + 0x30]
mov qword [rsi + 0x38], rax
mov r11d, dword [rsp + 0x40]
movzx eax, word [rbp + 0x7f]
inc r11d
add r13d, eax
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x30], r13d
cmp r11d, dword [rsp + 0x44]
jb 0x180086b1c
mov rbx, qword [rbp - 0x51]
mov r10, qword [rbp - 0x79]
mov r13, qword [rbp + 7]
test byte [r13 + 0x418], 2
je 0x180086f51
mov r12d, dword [rsp + 0x48]
lea eax, [r15 - 3]
and dword [rbx + r12*4], 0
and dword [r10 + r12*4], 0
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
jmp 0x180086f56
mov r14d, 8
jmp 0x180087085
mov r12d, dword [rsp + 0x48]
test byte [r13 + 0x418], 0x10
je 0x180086f7a
lea eax, [r15 - 2]
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
lea eax, [r15 - 1]
and dword [rbx + rax*4], 0
and dword [r10 + rax*4], 0
mov r11, qword [rbp + 0x6f]
test r15d, r15d
je 0x180086feb
mov r9, rbx
xor edx, edx
mov rbx, qword [rbp + 0x77]
sub r9, r10
mov r8, r10
mov r10d, r15d
mov eax, dword [r9 + r8]
add eax, 0x200
sar eax, 0xa
add dword [rdx + rbx], eax
mov eax, dword [r8]
add eax, 0x200
sar eax, 0xa
add dword [rdx + rbx + 4], eax
mov eax, dword [r9 + r8]
mov rcx, qword [r11 + 8]
add eax, 0x8000
shr eax, 0x10
cwde
add dword [rdx + rcx], eax
lea rdx, [rdx + 8]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov rcx, qword [r11 + 8]
add eax, 0x8000
shr eax, 0x10
cwde
add dword [rdx + rcx - 4], eax
sub r10, 1
jne 0x180086f95
jmp 0x180086fef
mov rbx, qword [rbp + 0x77]
test byte [r13 + 0x418], 2
mov r9, qword [rbp + 0x67]
jne 0x180087036
mov rax, qword [r11 + 8]
lea edx, [r15 - 3]
mov r8d, r12d
mov rcx, qword [rax + r8*8]
mov qword [r9 + 0x58], rcx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + rdx*8]
mov qword [r9 + 0x60], rcx
mov eax, dword [rbx + rdx*8]
sub eax, dword [rbx + r8*8]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [r9 + 0x50], eax
test byte [r13 + 0x418], 0x10
jne 0x180087085
mov rax, qword [r11 + 8]
lea edx, [r15 - 1]
lea r8d, [r15 - 2]
mov rcx, qword [rax + r8*8]
mov qword [r9 + 0x110], rcx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + rdx*8]
mov qword [r9 + 0x118], rcx
mov eax, dword [rbx + rdx*8 + 4]
sub eax, dword [rbx + r8*8 + 4]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [r9 + 0x10c], eax
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x180087097
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x1800870a9
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x19]
cmp rax, 0xffffffffffffffff
je 0x1800870c9
test rax, rax
je 0x1800870c9
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
jmp 0x1800870c9
mov r14d, 8
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x1800870db
mov rdx, rbx
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x1800870ed
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x1800870ff
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rcx, rsi
call fcn.1800456dc
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x180087119
mov rdx, rbx
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x18008712b
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x18008713d
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov eax, r14d
jmp 0x18008714b
xor eax, eax
jmp 0x18008714b
mov eax, 6
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret