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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov r12d, 7
mov rax, qword [rcx]
mov rax, qword [rax]
mov word [rsp + 0x58], r9w
mov r13, rcx
mov r14, rdx
mov r15, r8
mov qword [rsp + 0x90], rax
mov rax, qword [rax]
mov dword [rsp + 0x9c], r9d
cmp byte [rax + 0x67], 0
mov qword [rsp + 0x78], rax
jne 0x89c964
mov rbx, qword [rcx + 0x10]
lea rbp, [rsp + 0xa0]
mov eax, dword [rbx + 0x38]
movzx ecx, word [rbx + 0x1a]
movzx edi, word [rbx + 0x1c]
movzx esi, word [rbx + 0x18]
mov dword [rsp + 0x54], eax
and eax, 0x20
cmp eax, 1
mov word [rsp + 0x5a], cx
mov rcx, qword [rbx + 0x16]
mov r9d, esi
sbb eax, eax
mov word [rsp + 0x98], di
movzx edi, word [rbx + 0x3e]
and eax, 0x1a7
mov qword [rsp + 0x80], rcx
mov rcx, qword [rbx + 0x38]
add eax, 0x18
mov word [rsp + 0x9a], di
movzx edi, word [rbx + 0x3c]
mov edx, eax
mov qword [rsp + 0x88], rcx
mov rcx, qword [rbx]
and edx, 0xffffffc3
test byte [r8 + 0x64], 4
mov word [rsp + 0x52], di
cmovne eax, edx
movzx edi, word [rbx + 0x16]
mov qword [rsp + 0x28], r8
mov rdx, qword [r13 + 8]
mov r8d, dword [r14 + 0x44]
mov qword [rsp + 0x48], rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
mov word [rsp + 0x50], si
mov dword [rsp + 0x6c], esi
mov word [rsp + 0x44], di
call fcn.0089c390
xor r8d, r8d
xor r9d, r9d
mov rsi, rax
mov rax, qword [r15 + 0x10]
mov word [rbx + 0x12], r8w
mov word [rsp + 0x46], r9w
movsx ecx, word [rax]
mov dword [rsp + 0x68], ecx
cmp cx, 0xa
jg 0x89cc40
test rsi, rsi
je 0x89cf20
mov qword [rsp + 0x60], 0
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x70], 0
add rax, rax
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x52]
add eax, 1
mov dword [rsp + 0x5c], eax
nop dword [rax]
movzx r12d, word [rsi + 0x14]
cmp r12w, 0x100
je 0x89c6a3
test byte [rsi + 0x12], 0x80
je 0x89c6c5
mov rax, qword [r15 + 8]
mov rdi, qword [rsp + 0x38]
movsx rdx, word [rax + rdi]
mov rax, rdx
test edx, edx
jns 0x89c980
cmp edx, 0xffffffff
je 0x89c9a0
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x89c9a0
cmp r12w, 0x10
sete dil
and dil, byte [rsi + 0x13]
jne 0x89c9a5
test byte [r14 + 0x3c], 8
je 0x89c6fd
mov rax, qword [rsi]
test byte [rax + 4], 1
je 0x89c9a0
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x20]
je 0x89c71b
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x89cb30
or eax, 1
movzx r9d, word [rsp + 0x52]
mov edi, dword [rsp + 0x5c]
mov byte [r13 + 0x20], al
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x3c], r9w
mov dword [rbx + 0x38], eax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x5a]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x98]
mov word [rbx + 0x1c], ax
movzx eax, word [rbx + 0x40]
cmp edi, eax
jle 0x89c783
mov rcx, qword [rsp + 0x78]
mov r8d, edi
mov rdx, rbx
call fcn.00880530
test eax, eax
jne 0x89cf20
movzx r9d, word [rbx + 0x3c]
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
mov rax, qword [rbx + 0x48]
or rdx, qword [rsp + 0x48]
not r8
lea ecx, [r9 + 1]
and rdx, r8
mov edi, r12d
mov word [rbx + 0x3c], cx
mov qword [rax + r9*8], rsi
mov qword [rbx], rdx
and di, 1
je 0x89c9b0
movzx edx, byte [r15 + 0x64]
mov r8, qword [rsi]
shr dl, 7
cmp word [rsp + 0x46], 9
setg r9b
and edx, r9d
test byte [r8 + 5], 8
jne 0x89ccd0
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x89c7e5
movsxd rax, dword [rax]
test eax, eax
jne 0x89cb40
test dl, dl
jne 0x89cf30
mov r8d, dword [rbx + 0x38]
xor edi, edi
mov r10d, r8d
or r10d, 4
mov dword [rbx + 0x38], r10d
movzx r11d, word [rbx + 0x16]
test r10b, 2
jne 0x89ca30
movzx eax, word [rbx + 0x18]
movzx edx, word [rsi + 0x10]
add eax, 1
mov word [rbx + 0x18], ax
test dx, dx
jle 0x89cae0
mov rdx, qword [r15 + 0x10]
movzx eax, ax
add r11w, word [rdx + rax*2]
sub r11w, word [rdx + rax*2 - 2]
test r12w, 0x100
je 0x89c843
add r11d, 0xa
mov word [rbx + 0x16], r11w
mov esi, r11d
movsx edx, word [r15 + 0x5c]
mov eax, edx
shl eax, 4
sub eax, edx
mov rdx, qword [r14 + 0x20]
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
movsx ecx, word [rsp + 0x46]
lea eax, [r11 + rax + 1]
movsx edx, ax
call fcn.0086c5b0
and r10d, 0x140
jne 0x89c88c
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.0086c5b0
add di, word [rsp + 0x58]
mov rcx, qword [r13 + 8]
mov rdx, rbx
add eax, edi
add r11d, edi
mov r8d, dword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov word [rbx + 0x16], r11w
call fcn.0086ed90
mov rdx, rbx
mov rcx, r13
call fcn.008805b0
mov r12d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne si, word [rsp + 0x44]
mov word [rbx + 0x16], si
test al, 0x10
jne 0x89c908
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x89c908
cmp ax, word [r15 + 0x5e]
jb 0x89c8ef
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x89c908
movsx r9d, di
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.0089c530
nop dword [rax]
movzx eax, word [rsp + 0x44]
test r12d, r12d
sete dil
mov word [rbx + 0x16], ax
mov rcx, rbp
call fcn.0089c040
mov rsi, rax
test rax, rax
je 0x89c931
test dil, dil
jne 0x89c690
mov rax, qword [rsp + 0x48]
movzx esi, word [rsp + 0x9a]
mov qword [rbx], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x38], rax
cmp word [rsp + 0x50], si
je 0x89cd40
mov eax, r12d
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r15 + 0x18]
lea rax, [rax + rax*2]
mov rcx, qword [rdx + 8]
lea rax, [rcx + rax*8]
test byte [rax + 8], 0xf
je 0x89c6c5
nop word [rax + rax]
mov edi, 1
xor r12d, r12d
jmp 0x89c918
mov eax, dword [rbx + 0x38]
test r12b, 0x82
je 0x89cb10
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
mov r10d, eax
or r10d, 1
movsx edx, word [rdx + rcx]
mov dword [rbx + 0x38], r10d
cmp edx, 0xffffffff
je 0x89ccb0
test edx, edx
js 0x89c9fe
cmp word [rsp + 0x58], 0
jne 0x89c9fe
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
je 0x89cc6d
cmp byte [rsp + 0xc9], 1
jbe 0x89c7fe
or r10d, 0x200000
movzx r11d, word [rbx + 0x16]
mov dword [rbx + 0x38], r10d
test r10b, 2
je 0x89c80d
nop word cs:[rax + rax]
xor edx, edx
cmp qword [rsp + 0x60], 0
movsx eax, r11w
je 0x89ca64
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x89cc60
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
jne 0x89ca64
sub r11d, 0x14
cmp qword [rsp + 0x70], 0
je 0x89caae
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x89cc50
mov rsi, qword [rsp + 0x70]
lea r9d, [r11 - 0x14]
test byte [rsi + 0x12], 0x80
cmove r11d, r9d
mov rsi, qword [rsp + 0x60]
add edx, 1
test rsi, rsi
je 0x89caae
cmp word [rsi + 0x10], 0
jle 0x89caae
lea r9d, [r11 - 0x14]
test cx, cx
cmovg r11d, r9d
sub eax, edx
cmp r11w, 0xa
mov edx, 0xa
cmovl r11d, edx
movsx r11d, r11w
cmp r11d, eax
cmovg r11d, eax
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x89c84b
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x89c825
sub r11d, edi
add r11d, edx
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x89c84b
mov edi, r12d
and di, 0x100
je 0x89cba0
or eax, 8
xor edi, edi
mov dword [rbx + 0x38], eax
mov r10d, eax
jmp 0x89c7fe
or eax, 2
jmp 0x89c71e
cmp rax, 7
ja 0x89ce80
mov ecx, 0x1e
cmp rax, 1
je 0x89cefa
nop dword [rax]
add rax, rax
mov edi, ecx
sub ecx, 0xa
cmp rax, 7
jbe 0x89cb60
and eax, 7
lea rcx, [0x010e56e0]
movzx r9d, word [rcx + rax*2]
lea edi, [rdi + r9 - 0xa]
movsx r9d, di
test dl, dl
jne 0x89cd13
mov r8d, dword [rbx + 0x38]
jmp 0x89c7f3
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x89cea0
or eax, 0x22
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], rsi
call fcn.00896060
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x89cfa0
movzx r8d, word [rbx + 0x3c]
lea rax, [rsi + 0x38]
movzx edx, word [rbx + 0x40]
mov qword [rsp + 0x70], rax
mov rax, r8
add r8d, 1
cmp r8d, edx
jg 0x89cfc0
lea ecx, [rax + 1]
mov r10d, dword [rbx + 0x38]
mov rdx, qword [rbx + 0x48]
mov word [rbx + 0x3c], cx
lea rcx, [rsi + 0x38]
mov qword [rdx + rax*8], rcx
or r10d, 0x10
mov eax, 1
mov dword [rbx + 0x38], r10d
mov word [rbx + 0x1c], ax
movzx r11d, word [rbx + 0x16]
test r10b, 2
jne 0x89cfb2
mov qword [rsp + 0x60], rsi
jmp 0x89c80d
call fcn.00877800
mov word [rsp + 0x46], ax
jmp 0x89c655
add r11d, ecx
jmp 0x89ca8f
add r11d, edx
mov edx, 1
jmp 0x89ca64
test byte [r15 + 0x64], 8
jne 0x89ccb0
cmp cx, 1
je 0x89cc98
or eax, 0x10001
cmp byte [rsp + 0xc9], 1
mov dword [rbx + 0x38], eax
mov r10d, eax
ja 0x89ca0c
jmp 0x89c7fe
cmp byte [r15 + 0x62], 0
je 0x89cc7a
cmp r12w, 2
jne 0x89cc7a
nop word cs:[rax + rax]
or eax, 0x1001
cmp byte [rsp + 0xc9], 1
mov dword [rbx + 0x38], eax
mov r10d, eax
ja 0x89ca0c
jmp 0x89c7fe
cmp cx, 1
jbe 0x89cfde
movzx ecx, cx
mov r9d, 0x2e
xor edi, edi
sub ecx, 2
lea r11, [rax + rcx*8 + 8]
nop dword [rax]
mov rcx, qword [rax]
test rcx, rcx
je 0x89ccff
cmp qword [rcx], r8
cmove r9d, edi
add rax, 8
cmp r11, rax
jne 0x89ccf0
mov edi, r9d
test dl, dl
je 0x89cb8e
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
movzx r8d, word [rax + rcx]
cmp r9d, 0xa
jle 0x89d00e
mov ecx, r9d
call fcn.00877800
jmp 0x89cf42
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x89c964
movzx esi, word [rsp + 0x52]
cmp word [rsp + 0x50], si
jne 0x89c964
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x89c964
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x61], 0x40
jne 0x89c964
movzx edx, word [rsp + 0x50]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x89c964
movzx r8d, word [rsp + 0x52]
movzx edx, word [rbx + 0x40]
add r8d, 1
cmp r8d, edx
jle 0x89d015
mov rdx, rbx
call fcn.00880530
mov r12d, eax
test eax, eax
jne 0x89c964
movzx eax, word [rbx + 0x3c]
movzx ecx, word [rbx + 0x18]
movzx edx, word [rbx + 0x3e]
mov r8d, dword [rbx + 0x38]
mov word [rsp + 0x52], ax
mov rax, qword [r15 + 0x10]
movzx r11d, word [rbx + 0x16]
lea r9, [rax + rsi]
movzx edi, word [rsp + 0x52]
add ecx, 1
add edx, 1
xor r12d, r12d
mov word [rbx + 0x18], cx
mov rcx, qword [rbx + 0x48]
or r8d, 0x8000
mov word [rbx + 0x3e], dx
lea edx, [rdi + 1]
mov word [rbx + 0x3c], dx
movzx edx, di
movzx eax, word [rax + rsi - 2]
mov qword [rcx + rdx*8], 0
movzx ecx, word [r9]
movzx esi, word [rsp + 0x9c]
mov dword [rbx + 0x38], r8d
mov r8, r15
lea edx, [r11 + rcx]
sub edx, eax
lea eax, [rax + rsi + 5]
mov word [rbx + 0x16], dx
sub eax, ecx
mov rdx, r14
mov rcx, r13
movsx r9d, ax
call fcn.0089c530
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x9a]
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x38], eax
jmp 0x89c964
bsr r8, rax
mov ecx, 0x3c
xor r8, 0x3f
sub ecx, r8d
lea edi, [rcx + rcx*4]
shr rax, cl
lea edi, [rdi + rdi + 0x28]
jmp 0x89cb6e
or eax, 0x12
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], rsi
call fcn.00896060
mov r10d, dword [rbx + 0x38]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x89cf80
movzx r11d, word [rbx + 0x16]
mov qword [rsp + 0x70], rsi
xor edx, edx
mov qword [rsp + 0x60], 0
movsx eax, r11w
test r10b, 2
je 0x89c80d
jmp 0x89ca6c
xor edi, edi
test dl, dl
je 0x89cb8e
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
movzx r8d, word [rax + rcx]
xor eax, eax
jmp 0x89cf42
xor r12d, r12d
jmp 0x89c931
mov rax, qword [r15 + 0x10]
mov rdi, qword [rsp + 0x38]
movzx r8d, word [rax + rdi]
xor edi, edi
xor eax, eax
sub ax, word [rsp + 0x46]
lea eax, [r8 + rax + 0xa]
cmp ax, di
jns 0x89cb8e
cmp word [rsp + 0x58], 1
jg 0x89c9a0
mov rax, qword [rsp + 0x78]
test byte [rax + 0x62], 2
jne 0x89c9a0
mov r8d, dword [rbx + 0x38]
or r8d, 0x100000
jmp 0x89c7f3
movzx edx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x70], rsi
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x60], rax
jmp 0x89c7fe
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x38]
jmp 0x89cc26
mov qword [rsp + 0x60], rsi
movsx eax, r11w
jmp 0x89ca3e
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.00880530
test eax, eax
jne 0x89cf20
movzx eax, word [rbx + 0x3c]
jmp 0x89cbfe
test dl, dl
jne 0x89cff0
mov r8d, dword [rbx + 0x38]
mov edi, 0x2e
jmp 0x89c7f3
mov rdi, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov r9d, 0x2e
movzx r8d, word [rax + rdi]
mov edi, 0x2e
jmp 0x89cd2b
xor eax, eax
jmp 0x89cf42
movzx ecx, word [rsp + 0x50]
movzx r11d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x89cdec