Function at 0x8a4560
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 0x8a4994
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.008a43c0
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 0x8a4c70
test rsi, rsi
je 0x8a4f50
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 0x8a46d3
test byte [rsi + 0x12], 0x80
je 0x8a46f5
mov rax, qword [r15 + 8]
mov rdi, qword [rsp + 0x38]
movsx rdx, word [rax + rdi]
mov rax, rdx
test edx, edx
jns 0x8a49b0
cmp edx, 0xffffffff
je 0x8a49d0
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x8a49d0
cmp r12w, 0x10
sete dil
and dil, byte [rsi + 0x13]
jne 0x8a49d5
test byte [r14 + 0x3c], 8
je 0x8a472d
mov rax, qword [rsi]
test byte [rax + 4], 1
je 0x8a49d0
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x20]
je 0x8a474b
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x8a4b60
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 0x8a47b3
mov rcx, qword [rsp + 0x78]
mov r8d, edi
mov rdx, rbx
call fcn.00888530
test eax, eax
jne 0x8a4f50
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 0x8a49e0
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 0x8a4d00
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x8a4815
movsxd rax, dword [rax]
test eax, eax
jne 0x8a4b70
test dl, dl
jne 0x8a4f60
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 0x8a4a60
movzx eax, word [rbx + 0x18]
movzx edx, word [rsi + 0x10]
add eax, 1
mov word [rbx + 0x18], ax
test dx, dx
jle 0x8a4b10
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 0x8a4873
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.00874510
and r10d, 0x140
jne 0x8a48bc
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.00874510
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.00876d70
mov rdx, rbx
mov rcx, r13
call fcn.008885b0
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 0x8a4938
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x8a4938
cmp ax, word [r15 + 0x5e]
jb 0x8a491f
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x8a4938
movsx r9d, di
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.008a4560
nop dword [rax]
movzx eax, word [rsp + 0x44]
test r12d, r12d
sete dil
mov word [rbx + 0x16], ax
mov rcx, rbp
call fcn.008a4070
mov rsi, rax
test rax, rax
je 0x8a4961
test dil, dil
jne 0x8a46c0
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 0x8a4d70
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 0x8a46f5
nop word [rax + rax]
mov edi, 1
xor r12d, r12d
jmp 0x8a4948
mov eax, dword [rbx + 0x38]
test r12b, 0x82
je 0x8a4b40
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 0x8a4ce0
test edx, edx
js 0x8a4a2e
cmp word [rsp + 0x58], 0
jne 0x8a4a2e
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
je 0x8a4c9d
cmp byte [rsp + 0xc9], 1
jbe 0x8a482e
or r10d, 0x200000
movzx r11d, word [rbx + 0x16]
mov dword [rbx + 0x38], r10d
test r10b, 2
je 0x8a483d
nop word cs:[rax + rax]
xor edx, edx
cmp qword [rsp + 0x60], 0
movsx eax, r11w
je 0x8a4a94
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x8a4c90
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
jne 0x8a4a94
sub r11d, 0x14
cmp qword [rsp + 0x70], 0
je 0x8a4ade
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x8a4c80
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 0x8a4ade
cmp word [rsi + 0x10], 0
jle 0x8a4ade
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 0x8a487b
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x8a4855
sub r11d, edi
add r11d, edx
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x8a487b
mov edi, r12d
and di, 0x100
je 0x8a4bd0
or eax, 8
xor edi, edi
mov dword [rbx + 0x38], eax
mov r10d, eax
jmp 0x8a482e
or eax, 2
jmp 0x8a474e
cmp rax, 7
ja 0x8a4eb0
mov ecx, 0x1e
cmp rax, 1
je 0x8a4f2a
nop dword [rax]
add rax, rax
mov edi, ecx
sub ecx, 0xa
cmp rax, 7
jbe 0x8a4b90
and eax, 7
lea rcx, [0x0112c980]
movzx r9d, word [rcx + rax*2]
lea edi, [rdi + r9 - 0xa]
movsx r9d, di
test dl, dl
jne 0x8a4d43
mov r8d, dword [rbx + 0x38]
jmp 0x8a4823
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x8a4ed0
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.0089e090
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x8a4fd0
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 0x8a4ff0
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 0x8a4fe2
mov qword [rsp + 0x60], rsi
jmp 0x8a483d
call fcn.0087f810
mov word [rsp + 0x46], ax
jmp 0x8a4685
add r11d, ecx
jmp 0x8a4abf
add r11d, edx
mov edx, 1
jmp 0x8a4a94
test byte [r15 + 0x64], 8
jne 0x8a4ce0
cmp cx, 1
je 0x8a4cc8
or eax, 0x10001
cmp byte [rsp + 0xc9], 1
mov dword [rbx + 0x38], eax
mov r10d, eax
ja 0x8a4a3c
jmp 0x8a482e
cmp byte [r15 + 0x62], 0
je 0x8a4caa
cmp r12w, 2
jne 0x8a4caa
nop word cs:[rax + rax]
or eax, 0x1001
cmp byte [rsp + 0xc9], 1
mov dword [rbx + 0x38], eax
mov r10d, eax
ja 0x8a4a3c
jmp 0x8a482e
cmp cx, 1
jbe 0x8a500e
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 0x8a4d2f
cmp qword [rcx], r8
cmove r9d, edi
add rax, 8
cmp r11, rax
jne 0x8a4d20
mov edi, r9d
test dl, dl
je 0x8a4bbe
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
movzx r8d, word [rax + rcx]
cmp r9d, 0xa
jle 0x8a503e
mov ecx, r9d
call fcn.0087f810
jmp 0x8a4f72
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x8a4994
movzx esi, word [rsp + 0x52]
cmp word [rsp + 0x50], si
jne 0x8a4994
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x8a4994
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x61], 0x40
jne 0x8a4994
movzx edx, word [rsp + 0x50]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x8a4994
movzx r8d, word [rsp + 0x52]
movzx edx, word [rbx + 0x40]
add r8d, 1
cmp r8d, edx
jle 0x8a5045
mov rdx, rbx
call fcn.00888530
mov r12d, eax
test eax, eax
jne 0x8a4994
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.008a4560
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 0x8a4994
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 0x8a4b9e
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.0089e090
mov r10d, dword [rbx + 0x38]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x8a4fb0
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 0x8a483d
jmp 0x8a4a9c
xor edi, edi
test dl, dl
je 0x8a4bbe
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
movzx r8d, word [rax + rcx]
xor eax, eax
jmp 0x8a4f72
xor r12d, r12d
jmp 0x8a4961
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 0x8a4bbe
cmp word [rsp + 0x58], 1
jg 0x8a49d0
mov rax, qword [rsp + 0x78]
test byte [rax + 0x62], 2
jne 0x8a49d0
mov r8d, dword [rbx + 0x38]
or r8d, 0x100000
jmp 0x8a4823
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 0x8a482e
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x38]
jmp 0x8a4c56
mov qword [rsp + 0x60], rsi
movsx eax, r11w
jmp 0x8a4a6e
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.00888530
test eax, eax
jne 0x8a4f50
movzx eax, word [rbx + 0x3c]
jmp 0x8a4c2e
test dl, dl
jne 0x8a5020
mov r8d, dword [rbx + 0x38]
mov edi, 0x2e
jmp 0x8a4823
mov rdi, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov r9d, 0x2e
movzx r8d, word [rax + rdi]
mov edi, 0x2e
jmp 0x8a4d5b
xor eax, eax
jmp 0x8a4f72
movzx ecx, word [rsp + 0x50]
movzx r11d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x8a4e1c