Function at 0x89d030
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, 0xe8
mov eax, 0xffffffff
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x138], rdx
movzx edx, byte [rbx + 0x10]
mov r13, rcx
mov word [rsp + 0x6a], ax
mov rax, qword [rcx]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x58], rax
lea rax, [rdx*8]
sub rax, rdx
shl rax, 4
lea r12, [rcx + rax + 8]
mov rax, qword [r12 + 0x20]
movzx edx, byte [r12 + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x38], rax
test dl, 2
je 0x89d530
mov rdi, qword [r12 + 0x68]
test rdi, rdi
setne bpl
xor eax, eax
cmp qword [r13 + 0x18], 0
je 0x89d557
test bpl, bpl
je 0x89d2bc
mov r9, qword [rdi + 0x48]
mov dword [rsp + 0x30], 1
test r9, r9
je 0x89d0f8
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x38]
shr dl, 5
and edx, 1
call fcn.0089ab10
test eax, eax
je 0x89d3c8
movzx eax, byte [rdi + 0x65]
and eax, 1
mov byte [rsp + 0x28], al
jne 0x89d3c8
mov rax, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x138]
xor r8d, r8d
xor r9d, r9d
movzx eax, word [rax]
mov dword [rbx + 0x3c], 0
mov byte [rbx + 0x11], 0
mov word [rsp + 0x36], ax
mov word [rbx + 0x16], ax
movzx eax, byte [rdi + 0x64]
mov dword [rbx + 0x18], 0
mov word [rbx + 0x1c], r8w
mov word [rbx + 0x12], r9w
mov qword [rbx], rcx
mov qword [rbx + 0x20], rdi
test al, 4
jne 0x89d420
mov rdx, qword [r13]
mov r14, qword [rdx + 0x10]
test r14, r14
je 0x89d420
mov ecx, dword [r14]
test ecx, ecx
jle 0x89d1e0
mov r8d, dword [r12 + 0x44]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov qword [rsp + 0x50], r12
mov r12, r14
mov ebx, r8d
nop dword [rax]
mov rax, rbp
shl rax, 5
mov rsi, qword [r12 + rax + 8]
nop dword [rax]
test rsi, rsi
je 0x89d1c8
mov eax, dword [rsi + 4]
test eax, 0x41000
je 0x89d2e0
test eax, 0x40000
je 0x89d2d0
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x89d19d
nop dword [rax + rax]
add rbp, 1
cmp dword [r12], ebp
jg 0x89d188
mov rbx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
movzx eax, byte [rdi + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x89d81c
xor ecx, ecx
test al, 0x20
je 0x89d450
mov dword [rbx + 0x38], 0x240
xor r8d, r8d
test ecx, ecx
jne 0x89d440
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x30], 0x80
jne 0x89d220
cmp qword [rdi + 0x48], 0
je 0x89d6d0
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov byte [rbx + 0x11], al
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rcx + 0x3c]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x36]
lea eax, [rcx + rax + 1]
mov word [rbx + 0x14], ax
test r8, r8
jne 0x89d470
movsx r8d, word [rsp + 0x36]
mov esi, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.0086ed90
mov rdx, rbx
mov rcx, r13
call fcn.008805b0
mov word [rbx + 0x16], si
test eax, eax
jne 0x89d2bc
mov byte [r13 + 0x20], 0
xor r9d, r9d
mov r8, rdi
mov rdx, r12
mov rcx, r13
call fcn.0089c530
cmp byte [r13 + 0x20], 1
jne 0x89d2b0
mov rcx, qword [rsp + 0x40]
or dword [rcx + 0x30], 0x100
nop word [rax + rax]
test byte [r12 + 0x40], 2
je 0x89d3a0
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsi + 0x10]
jmp 0x89d198
cmp byte [rsi], 0xa7
je 0x89d3d0
mov r14, qword [rdi + 0x50]
test r14, r14
je 0x89d1c8
cmp word [rdi + 0x5e], 0
je 0x89d1c8
xor r15d, r15d
jmp 0x89d321
movzx eax, word [rdi + 0x5e]
add r15, 1
cmp eax, r15d
jle 0x89d1c8
mov rax, qword [rdi + 8]
cmp word [rax + r15*2], 0xfffe
jne 0x89d310
mov rax, r15
mov r8d, ebx
mov rcx, rsi
shl rax, 5
mov rdx, qword [r14 + rax + 8]
call fcn.0089be70
test eax, eax
jne 0x89d310
movzx eax, byte [rdi + 0x64]
mov rbx, qword [rsp + 0x48]
mov ecx, 1
mov r12, qword [rsp + 0x50]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x89d1f0
movzx eax, byte [rsp + 0x30]
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
movsx r8d, word [rsp + 0x36]
mov byte [rbx + 0x11], al
lea eax, [r8 + 0x10]
mov esi, r8d
mov word [rbx + 0x14], ax
jmp 0x89d25e
add dword [rsp + 0x30], 1
mov rdi, qword [rdi + 0x28]
test eax, eax
jne 0x89d2bc
test rdi, rdi
je 0x89d2bc
mov r9, qword [rdi + 0x48]
jmp 0x89d0d0
xor eax, eax
jmp 0x89d2b0
cmp ebx, dword [rsi + 0x2c]
jne 0x89d2e9
movzx edx, word [rsi + 0x30]
test dx, dx
js 0x89d348
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x89d1c8
mov rax, qword [rdi + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x89d415
add rax, 2
cmp rax, rcx
je 0x89d1c8
cmp dx, word [rax]
jne 0x89d408
jmp 0x89d348
mov edx, eax
xor ecx, ecx
and edx, 3
cmp dl, 3
jne 0x89d1f0
mov dword [rbx + 0x38], 0x100
jmp 0x89d379
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x28], al
jmp 0x89d220
mov r8, qword [r12 + 0x58]
and r8, qword [rdi + 0x68]
cmp r8, 1
sbb edx, edx
and edx, 0x40
add edx, 0x200
mov dword [rbx + 0x38], edx
jmp 0x89d202
lea esi, [rcx + 0x10]
mov rcx, qword [rsp + 0x58]
mov r15d, dword [r12 + 0x44]
mov edx, dword [rcx + 0x8c]
test edx, edx
jle 0x89d519
xor ebp, ebp
xor r10d, r10d
mov qword [rsp + 0x28], rbx
mov ebx, r15d
mov qword [rsp + 0x48], r12
mov r15, rcx
mov r12, rdi
mov edi, ebp
mov rbp, r10
jmp 0x89d4ce
lea eax, [rsi - 1]
sub esi, 0x14
test byte [r14 + 0x14], 0x82
cmove esi, eax
add edi, 1
add rbp, 0x38
cmp dword [r15 + 0x8c], edi
jle 0x89d508
mov r14, qword [r15 + 0x98]
mov r8, r12
mov edx, ebx
add r14, rbp
mov rcx, qword [r14]
call fcn.0086e620
test eax, eax
je 0x89d508
movzx eax, word [r14 + 0x10]
test ax, ax
jg 0x89d4b0
add esi, eax
add edi, 1
add rbp, 0x38
cmp dword [r15 + 0x8c], edi
jg 0x89d4ce
nop dword [rax]
mov rbx, qword [rsp + 0x28]
mov rdi, r12
mov r12, qword [rsp + 0x48]
movzx eax, word [rbx + 0x14]
movsx edx, si
movsx ecx, ax
call fcn.0086c5b0
mov word [rbx + 0x14], ax
jmp 0x89d255
mov rax, qword [rsp + 0x40]
test byte [rax + 0x30], 0x80
je 0x89d750
mov rdi, qword [rax + 0x10]
test rdi, rdi
setne bpl
xor eax, eax
cmp qword [r13 + 0x18], 0
jne 0x89d0bb
mov rcx, qword [rsp + 0x40]
movzx r14d, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x58]
test byte [rcx + 0x44], 0x20
jne 0x89d0bb
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x89d0bb
test dl, 3
jne 0x89d815
mov rax, qword [rsp + 0x40]
test byte [rax + 0x30], 0x80
jne 0x89d815
and edx, 0x28
jne 0x89d815
mov rax, qword [rsp + 0x38]
movsxd rdx, dword [rax + 0x14]
mov r15, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rsi, [r15 + rax*8]
xor eax, eax
mov word [rsp + 0x28], ax
cmp r14w, 0xa
jle 0x89d5de
movsx ecx, r14w
call fcn.00877800
mov word [rsp + 0x28], ax
cmp r15, rsi
jae 0x89d815
add r14w, word [rsp + 0x28]
lea eax, [r14 - 0xa]
mov word [rsp + 0x30], ax
jmp 0x89d6b7
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call fcn.00870b30
test eax, eax
je 0x89d6c5
mov rax, qword [rbx + 0x48]
mov r11d, 1
mov qword [rbx + 0x20], 0
mov word [rbx + 0x18], r11w
mov dword [rbx + 0x3c], 1
mov qword [rax], r15
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x3f], 2
je 0x89d83a
test byte [rax + 0x31], 0x40
jne 0x89d83a
lea eax, [r14 + 0x1c]
test ax, ax
mov ecx, 0
mov r10d, 0x2b
mov edx, 0x2b
cmovs eax, ecx
mov word [rbx + 0x16], r10w
movsx ecx, word [rsp + 0x28]
mov word [rbx + 0x12], ax
call fcn.0086c5b0
mov dword [rbx + 0x38], 0x4000
mov rdx, rbx
mov rcx, r13
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x138]
or rax, qword [r15 + 0x28]
mov qword [rbx], rax
call fcn.008805b0
test eax, eax
sete dl
add r15, 0x38
cmp rsi, r15
jbe 0x89d82d
test dl, dl
je 0x89d2bc
mov rax, qword [r15 + 0x28]
test qword [rbx + 8], rax
je 0x89d5fb
mov edx, 1
xor eax, eax
jmp 0x89d6a2
test byte [r12 + 0x40], 2
jne 0x89d220
test r8, r8
jne 0x89d27e
test al, 4
jne 0x89d27e
movzx eax, word [rdi + 0x5c]
movzx edx, word [rcx + 0x3c]
cmp ax, dx
jge 0x89d27e
mov rcx, qword [rsp + 0x58]
test byte [rcx + 0x44], 4
jne 0x89d27e
cmp byte [0x00986de7], 0
je 0x89d27e
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x60], 0x20
jne 0x89d27e
movsx ecx, ax
mov byte [rbx + 0x11], 0
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, dx
cdq
idiv ecx
movzx ecx, word [rsp + 0x36]
lea eax, [rcx + rax + 1]
mov word [rbx + 0x14], ax
jmp 0x89d255
lea r8, [rsp + 0x70]
xor eax, eax
mov ecx, 0xe
mov rdi, r8
rep stosq qword [rdi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x6a]
mov byte [rsp + 0xd2], 5
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x80], rax
movzx edx, byte [r12 + 0x40]
mov dword [rsp + 0xce], 0x10001
mov qword [rsp + 0x88], rcx
movzx eax, word [rcx + 0x3c]
or byte [rsp + 0xd4], 3
movzx r14d, word [rcx + 0x3a]
mov word [rsp + 0xcc], ax
xor eax, eax
mov word [rsp + 0x6c], r14w
mov word [rsp + 0x6e], ax
test dl, 1
jne 0x89d7db
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
xor r9d, r9d
cmp qword [r13 + 0x18], 0
mov rdi, r8
jne 0x89d0c8
mov rax, qword [rsp + 0x58]
test byte [rax + 0x44], 0x20
jne 0x89d0c4
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
je 0x89d0c4
mov ebp, 1
jmp 0x89d585
xor eax, eax
jmp 0x89d0bb
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x28], 0
jmp 0x89d379
test dl, dl
jne 0x89d0bb
jmp 0x89d2bc
movzx eax, word [rsp + 0x30]
jmp 0x89d64f