Function at 0x180089164
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 0x180089b42
test r12, r12
je 0x180089b42
test r15d, r15d
je 0x18008922a
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 0x180089200
xor edx, edx
cmp r9d, dword [r12 + 0x78]
jae 0x180089b3e
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 0x180089b3e
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x39], rax
test r14d, r14d
jne 0x180089b03
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x69], rax
test r14d, r14d
jne 0x180089b03
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x61], rax
test r14d, r14d
jne 0x180089b03
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.180047e5c
mov r14d, eax
test eax, eax
jne 0x180089b03
mov edx, ebx
mov rcx, rsi
call fcn.180047ff0
mov dword [rbp + 0x7f], eax
mov r14d, eax
test eax, eax
jne 0x180089b03
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x71], rax
test r14d, r14d
jne 0x180089ac5
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x49], rax
test r14d, r14d
jne 0x180089ac5
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.180048918
mov r14d, dword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
test r14d, r14d
jne 0x180089ac5
mov rcx, rsi
call fcn.180048110
movzx r10d, ax
call fcn.180048110
movzx ecx, ax
cmp ecx, ebx
ja 0x180089abf
mov eax, r10d
and eax, 0xfff
mov dword [rsp + 0x44], eax
shl eax, 2
cmp eax, ebx
ja 0x180089abf
add ecx, r13d
mov dword [rsp + 0x30], ecx
bt r10d, 0xf
jae 0x180089461
mov ebx, dword [rsi + 0x38]
mov eax, dword [rsi + 0x40]
sub ebx, dword [rsi]
sub eax, dword [rsi]
cmp ecx, eax
jae 0x18008941a
mov eax, ecx
add rax, qword [rsi]
jmp 0x18008941e
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
lea r8, [rsp + 0x34]
mov edx, dword [r12 + 0x88]
mov rcx, rsi
call fcn.1800857b8
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 0x180089457
mov ecx, ebx
add rcx, qword [rsi]
jmp 0x18008945b
mov rcx, qword [rsi + 0x40]
mov qword [rsi + 0x38], rcx
jmp 0x180089464
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.180048918
mov r14d, dword [rbp + 0x7f]
mov rbx, rax
mov qword [rbp - 0x51], rax
test r14d, r14d
jne 0x180089a81
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.180048918
mov r14d, dword [rbp + 0x7f]
mov r10, rax
mov qword [rbp - 0x79], rax
test r14d, r14d
jne 0x180089a81
test r15d, r15d
je 0x180089508
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 0x1800894e0
and dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 0
jbe 0x180089916
mov rcx, rsi
call fcn.180048110
mov word [rbp + 0x7f], ax
call fcn.180048110
movzx ebx, ax
bt ebx, 0xf
jae 0x18008955c
mov r11, qword [rbp - 0x71]
xor r10d, r10d
cmp dword [r12], r10d
jbe 0x180089593
mov rcx, rsi
call fcn.180048110
movsx ecx, ax
shl ecx, 2
mov dword [r11 + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x18008953f
jmp 0x180089593
mov ecx, ebx
and ecx, 0xfff
cmp ecx, dword [r12 + 0x68]
jae 0x180089942
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 fcn.18009cffa
mov r11, qword [rbp - 0x71]
bt ebx, 0xe
jae 0x1800895f4
mov eax, dword [r12]
xor r10d, r10d
test eax, eax
je 0x1800895ca
mov rdi, qword [rbp - 0x49]
mov rcx, rsi
call fcn.180048110
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
mov eax, dword [r12]
cmp r10d, eax
jb 0x1800895a8
mov rdi, qword [rbp - 0x59]
xor r10d, r10d
test eax, eax
je 0x1800895f4
mov rdi, qword [rbp - 0x41]
mov rcx, rsi
call fcn.180048110
movsx ecx, ax
shl ecx, 2
mov dword [rdi + r10*4], ecx
inc r10d
cmp r10d, dword [r12]
jb 0x1800895d5
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.1800874d4
mov dword [rsp + 0x3c], eax
test eax, eax
je 0x1800898ea
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 0x180089635
mov eax, r13d
add rax, qword [rsi]
jmp 0x180089639
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x38], rax
bt ebx, 0xd
jae 0x180089666
mov edx, dword [r12 + 0x88]
lea r8, [rsp + 0x38]
mov rcx, rsi
call fcn.1800857b8
mov r13d, dword [rsp + 0x38]
mov rcx, rax
mov qword [rbp - 0x29], rax
jmp 0x180089674
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.180085950
mov edx, dword [r12 + 0x88]
mov r8d, ebx
mov rcx, rsi
mov qword [rbp - 0x21], rax
call fcn.180085950
mov r9, qword [rbp - 0x11]
mov qword [rbp - 9], rax
test r9, r9
je 0x18008988b
test rax, rax
je 0x18008988b
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x18008988b
cmp r9, 0xffffffffffffffff
jne 0x180089766
test r15d, r15d
je 0x18008988b
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 0x180089708
mov rdi, qword [rbp - 0x59]
jmp 0x18008988b
test r15d, r15d
je 0x18008979c
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 0x18008977d
mov rax, qword [rbp - 9]
mov rcx, qword [rbp - 0x21]
test r13d, r13d
je 0x180089828
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 0x180089812
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 0x1800897be
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.180088f5c
test r15d, r15d
je 0x18008988b
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 0x180089860
mov rcx, qword [rbp - 0x29]
cmp rcx, 0xffffffffffffffff
je 0x1800898a9
test rcx, rcx
je 0x1800898a3
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 0x1800898bb
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x1800898ca
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 0x1800898dd
mov eax, ecx
add rax, qword [rsi]
jmp 0x1800898e1
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 0x180089518
mov rbx, qword [rbp - 0x51]
mov r10, qword [rbp - 0x79]
mov r13, qword [rbp + 7]
test byte [r13 + 0x418], 2
je 0x18008994d
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 0x180089952
mov r14d, 8
jmp 0x180089a81
mov r12d, dword [rsp + 0x48]
test byte [r13 + 0x418], 0x10
je 0x180089976
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 0x1800899e7
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 0x180089991
jmp 0x1800899eb
mov rbx, qword [rbp + 0x77]
test byte [r13 + 0x418], 2
mov r9, qword [rbp + 0x67]
jne 0x180089a32
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 0x180089a81
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 0x180089a93
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x180089aa5
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x19]
cmp rax, 0xffffffffffffffff
je 0x180089ac5
test rax, rax
je 0x180089ac5
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
jmp 0x180089ac5
mov r14d, 8
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x180089ad7
mov rdx, rbx
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x180089ae9
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x180089afb
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rcx, rsi
call fcn.1800480d8
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x180089b15
mov rdx, rbx
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x180089b27
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x180089b39
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x10]
mov eax, r14d
jmp 0x180089b47
xor eax, eax
jmp 0x180089b47
mov eax, 6
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret