Function at 0x8a5060
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 0x8a5560
mov rdi, qword [r12 + 0x68]
test rdi, rdi
setne bpl
xor eax, eax
cmp qword [r13 + 0x18], 0
je 0x8a5587
test bpl, bpl
je 0x8a52ec
mov r9, qword [rdi + 0x48]
mov dword [rsp + 0x30], 1
test r9, r9
je 0x8a5128
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x38]
shr dl, 5
and edx, 1
call fcn.008a2b40
test eax, eax
je 0x8a53f8
movzx eax, byte [rdi + 0x65]
and eax, 1
mov byte [rsp + 0x28], al
jne 0x8a53f8
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 0x8a5450
mov rdx, qword [r13]
mov r14, qword [rdx + 0x10]
test r14, r14
je 0x8a5450
mov ecx, dword [r14]
test ecx, ecx
jle 0x8a5210
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 0x8a51f8
mov eax, dword [rsi + 4]
test eax, 0x41000
je 0x8a5310
test eax, 0x40000
je 0x8a5300
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x8a51cd
nop dword [rax + rax]
add rbp, 1
cmp dword [r12], ebp
jg 0x8a51b8
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 0x8a584c
xor ecx, ecx
test al, 0x20
je 0x8a5480
mov dword [rbx + 0x38], 0x240
xor r8d, r8d
test ecx, ecx
jne 0x8a5470
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x30], 0x80
jne 0x8a5250
cmp qword [rdi + 0x48], 0
je 0x8a5700
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 0x8a54a0
movsx r8d, word [rsp + 0x36]
mov esi, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.00876d70
mov rdx, rbx
mov rcx, r13
call fcn.008885b0
mov word [rbx + 0x16], si
test eax, eax
jne 0x8a52ec
mov byte [r13 + 0x20], 0
xor r9d, r9d
mov r8, rdi
mov rdx, r12
mov rcx, r13
call fcn.008a4560
cmp byte [r13 + 0x20], 1
jne 0x8a52e0
mov rcx, qword [rsp + 0x40]
or dword [rcx + 0x30], 0x100
nop word [rax + rax]
test byte [r12 + 0x40], 2
je 0x8a53d0
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 0x8a51c8
cmp byte [rsi], 0xa7
je 0x8a5400
mov r14, qword [rdi + 0x50]
test r14, r14
je 0x8a51f8
cmp word [rdi + 0x5e], 0
je 0x8a51f8
xor r15d, r15d
jmp 0x8a5351
movzx eax, word [rdi + 0x5e]
add r15, 1
cmp eax, r15d
jle 0x8a51f8
mov rax, qword [rdi + 8]
cmp word [rax + r15*2], 0xfffe
jne 0x8a5340
mov rax, r15
mov r8d, ebx
mov rcx, rsi
shl rax, 5
mov rdx, qword [r14 + rax + 8]
call fcn.008a3ea0
test eax, eax
jne 0x8a5340
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 0x8a5220
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 0x8a528e
add dword [rsp + 0x30], 1
mov rdi, qword [rdi + 0x28]
test eax, eax
jne 0x8a52ec
test rdi, rdi
je 0x8a52ec
mov r9, qword [rdi + 0x48]
jmp 0x8a5100
xor eax, eax
jmp 0x8a52e0
cmp ebx, dword [rsi + 0x2c]
jne 0x8a5319
movzx edx, word [rsi + 0x30]
test dx, dx
js 0x8a5378
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x8a51f8
mov rax, qword [rdi + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x8a5445
add rax, 2
cmp rax, rcx
je 0x8a51f8
cmp dx, word [rax]
jne 0x8a5438
jmp 0x8a5378
mov edx, eax
xor ecx, ecx
and edx, 3
cmp dl, 3
jne 0x8a5220
mov dword [rbx + 0x38], 0x100
jmp 0x8a53a9
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x28], al
jmp 0x8a5250
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 0x8a5232
lea esi, [rcx + 0x10]
mov rcx, qword [rsp + 0x58]
mov r15d, dword [r12 + 0x44]
mov edx, dword [rcx + 0x8c]
test edx, edx
jle 0x8a5549
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 0x8a54fe
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 0x8a5538
mov r14, qword [r15 + 0x98]
mov r8, r12
mov edx, ebx
add r14, rbp
mov rcx, qword [r14]
call fcn.00876580
test eax, eax
je 0x8a5538
movzx eax, word [r14 + 0x10]
test ax, ax
jg 0x8a54e0
add esi, eax
add edi, 1
add rbp, 0x38
cmp dword [r15 + 0x8c], edi
jg 0x8a54fe
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.00874510
mov word [rbx + 0x14], ax
jmp 0x8a5285
mov rax, qword [rsp + 0x40]
test byte [rax + 0x30], 0x80
je 0x8a5780
mov rdi, qword [rax + 0x10]
test rdi, rdi
setne bpl
xor eax, eax
cmp qword [r13 + 0x18], 0
jne 0x8a50eb
mov rcx, qword [rsp + 0x40]
movzx r14d, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x58]
test byte [rcx + 0x44], 0x20
jne 0x8a50eb
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x8a50eb
test dl, 3
jne 0x8a5845
mov rax, qword [rsp + 0x40]
test byte [rax + 0x30], 0x80
jne 0x8a5845
and edx, 0x28
jne 0x8a5845
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 0x8a560e
movsx ecx, r14w
call fcn.0087f810
mov word [rsp + 0x28], ax
cmp r15, rsi
jae 0x8a5845
add r14w, word [rsp + 0x28]
lea eax, [r14 - 0xa]
mov word [rsp + 0x30], ax
jmp 0x8a56e7
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call fcn.00878b40
test eax, eax
je 0x8a56f5
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 0x8a586a
test byte [rax + 0x31], 0x40
jne 0x8a586a
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.00874510
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.008885b0
test eax, eax
sete dl
add r15, 0x38
cmp rsi, r15
jbe 0x8a585d
test dl, dl
je 0x8a52ec
mov rax, qword [r15 + 0x28]
test qword [rbx + 8], rax
je 0x8a562b
mov edx, 1
xor eax, eax
jmp 0x8a56d2
test byte [r12 + 0x40], 2
jne 0x8a5250
test r8, r8
jne 0x8a52ae
test al, 4
jne 0x8a52ae
movzx eax, word [rdi + 0x5c]
movzx edx, word [rcx + 0x3c]
cmp ax, dx
jge 0x8a52ae
mov rcx, qword [rsp + 0x58]
test byte [rcx + 0x44], 4
jne 0x8a52ae
cmp byte [0x0098ec67], 0
je 0x8a52ae
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x60], 0x20
jne 0x8a52ae
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 0x8a5285
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 0x8a580b
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 0x8a50f8
mov rax, qword [rsp + 0x58]
test byte [rax + 0x44], 0x20
jne 0x8a50f4
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
je 0x8a50f4
mov ebp, 1
jmp 0x8a55b5
xor eax, eax
jmp 0x8a50eb
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x28], 0
jmp 0x8a53a9
test dl, dl
jne 0x8a50eb
jmp 0x8a52ec
movzx eax, word [rsp + 0x30]
jmp 0x8a567f