Function at 0x857310
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, 0x158
movups xmmword [rsp + 0x140], xmm6
mov qword [rsp + 0x1a8], rdx
mov edx, dword [rsp + 0x1c0]
mov qword [rsp + 0x1b0], r8
mov qword [rsp + 0x1a0], rcx
mov r8d, edx
mov dword [rsp + 0xbc], r9d
mov word [rsp + 0x2e], r9w
test dx, dx
je 0x857370
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x60], 0x40
jne 0x8577f1
mov rax, qword [rsp + 0x1a8]
mov esi, dword [rax]
mov dword [rsp + 0xcc], esi
cmp si, 0x3f
ja 0x8577f1
movzx eax, si
mov ecx, esi
mov dword [rsp + 0x98], eax
mov eax, 1
shl rax, cl
movzx ecx, word [rsp + 0xbc]
and cx, 0x803
cmp cx, 1
sbb edi, edi
add edi, 0x183
cmp cx, 1
sbb esi, esi
mov dword [rsp + 0xb8], edi
mov ecx, esi
add cx, 0x183
sub rax, 1
mov word [rsp + 0x86], cx
mov qword [rsp + 0x90], rax
je 0x85785e
movzx eax, dx
xor r15d, r15d
mov qword [rsp + 0x78], 0
lea r14, [0x00998440]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xbc]
mov r13, r15
mov qword [rsp + 0xa8], 0
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x88], 0
mov ecx, eax
mov esi, eax
and eax, 0x40
and si, 0x80
mov word [rsp + 0x9e], ax
movzx eax, r8w
and cx, 0x800
mov word [rsp + 0x9c], si
lea rsi, [0x006f5c30]
mov qword [rsp + 0xa0], rax
lea rax, [0x007f7840]
movq xmm6, rsi
movq xmm1, rax
mov word [rsp + 0xb6], cx
punpcklqdq xmm6, xmm1
jmp 0x8574bb
cmp r13, qword [rsp + 0x90]
jae 0x857feb
mov rsi, qword [rsp + 0x78]
lea rax, [rsi + 1]
cmp qword [rsp + 0xa0], rsi
je 0x857ff1
mov rsi, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov rdi, rax
mov rcx, qword [rsi + 8]
or qword [rsp + 0x88], rcx
mov dword [rsp + 0x68], edi
cmp dword [rsp + 0xb0], edi
jle 0x857822
mov rax, qword [rsp + 0x1b0]
cmp word [rsp + 0xb6], 0
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rdi*8]
mov qword [rsp + 0x20], rax
jne 0x85747d
mov edx, dword [rax + 0x38]
test dh, 4
jne 0x85783b
cmp word [rsp + 0x9c], 0
je 0x85750b
xor r9d, r9d
mov word [rax + 0x1e], r9w
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x1a0]
movzx eax, byte [rax + 0x10]
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
shl rax, 3
add rax, qword [rsi + 8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x857f0e
sub eax, 1
xor r12d, r12d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov r15, r12
not rax
mov qword [rsp + 0x48], rax
jmp 0x85757a
lea rax, [r15 + 1]
cmp qword [rsp + 0x30], r15
je 0x857706
mov r15, rax
mov rbx, r13
mov ecx, r15d
mov ebp, r15d
shr rbx, cl
and ebx, 1
jne 0x857568
mov rcx, qword [rsp + 0x1a8]
mov rax, r15
shl rax, 5
mov rdi, qword [rcx + rax + 8]
mov qword [rsp + 0x40], rax
test rdi, rdi
je 0x857568
nop dword [rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x8575dc
test eax, 0x80000
je 0x857810
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x857568
mov eax, dword [rdi + 4]
test eax, 0x82000
jne 0x8575ba
movzx eax, byte [rdi]
add eax, 0x59
test al, 0xfd
jne 0x857568
mov eax, dword [rsp + 0x38]
cmp dword [rdi + 0x2c], eax
jne 0x857568
mov rcx, qword [rsp + 0x1a0]
movzx eax, word [rdi + 0x30]
mov r8d, 0x100
mov dword [rsp + 0xf0], 0
mov word [rsp + 0xf8], r8w
lea rsi, [rcx + 0x70]
mov ecx, dword [rsp + 0x38]
mov byte [rsp + 0xfa], 1
movq xmm0, rsi
mov esi, dword [rsp + 0xb8]
punpcklqdq xmm0, xmm0
mov dword [rsp + 0xfc], ecx
movups xmmword [rsp + 0xd0], xmm0
pxor xmm0, xmm0
mov dword [rsp + 0xf4], esi
movups xmmword [rsp + 0xe0], xmm0
cmp ax, 0xfffe
je 0x857568
lea rsi, [rsp + 0xd0]
mov word [rsp + 0x128], ax
mov rcx, rsi
call fcn.00859130
test rax, rax
je 0x857568
mov qword [rsp + 0x50], rdi
mov rdi, qword [rsp + 0x48]
xor r12d, r12d
nop dword [rax + rax]
mov rdx, qword [rax + 0x28]
test rdi, rdx
jne 0x8576b7
test rdx, rdx
jne 0x8576b0
test byte [rax + 0x14], 0x82
jne 0x857e28
test r12, r12
cmove r12, rax
mov rcx, rsi
call fcn.00859130
test rax, rax
jne 0x857698
mov rdi, qword [rsp + 0x50]
test r12, r12
je 0x857568
movzx eax, word [r12 + 0x14]
cmp ax, 1
je 0x857f9e
test al, 0x82
jne 0x857e30
mov eax, 1
mov ecx, ebp
shl rax, cl
or r13, rax
lea rax, [r15 + 1]
cmp qword [rsp + 0x30], r15
jne 0x857577
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x38]
test dh, 0x10
jne 0x857870
test dh, 1
jne 0x857964
mov rax, qword [rsp + 0x20]
mov r15, qword [rax + 0x20]
test r15, r15
je 0x8577f1
test byte [r15 + 0x64], 4
jne 0x8577f1
movzx eax, word [r15 + 0x5e]
movzx edi, byte [r15 + 0x62]
mov word [rsp + 0xca], ax
movzx eax, word [r15 + 0x60]
mov byte [rsp + 0x48], dil
mov dword [rsp + 0x50], eax
test dil, dil
je 0x857f2d
and dh, 0x80
je 0x857f46
test eax, eax
je 0x8577d2
mov byte [rsp + 0x48], 0
jmp 0x85797e
mov edx, eax
movzx ecx, byte [rsp + 0x85]
xor cl, byte [rsp + 0xc9]
and edx, 1
cmp cl, dl
je 0x857c87
nop dword [rax]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x857d5e
movzx eax, word [rsp + 0xca]
cmp eax, ecx
jg 0x857d5e
cmp byte [rsp + 0x40], 0
jne 0x857d69
cmp byte [rsp + 0x48], 0
jne 0x857d69
mov r15, r13
cmp qword [rsp + 0x90], r13
je 0x85785e
mov ecx, dword [rsp + 0x98]
sub ecx, 1
test ecx, ecx
jg 0x857f3a
xor eax, eax
movups xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x8575b0
jmp 0x857568
mov rax, qword [rsp + 0x1c8]
mov edx, dword [rax + 0x38]
mov qword [rsp + 0x20], rax
test dh, 4
je 0x8574f8
cmp byte [rax + 0x20], 0
mov r15, r13
je 0x857ffb
movzx eax, word [rsp + 0xbc]
and ax, 0x280
cmp ax, 0x80
je 0x857ffb
movzx eax, byte [rsp + 0xcc]
jmp 0x8577f3
mov rdi, qword [rax + 8]
or qword [rsp + 0xa8], rdi
mov esi, dword [rsp + 0x98]
mov rdi, qword [rsp + 0x1a0]
xor ebx, ebx
mov rbp, qword [rsp + 0x1a8]
jmp 0x8578ec
movabs rax, 0x20000000ff
and rax, qword [r12]
cmp rax, 0xa7
je 0x857eb9
test dword [r12 + 4], 0x810000
jne 0x857916
lea rcx, [rdi + 0x258]
mov rdx, r12
call fcn.0081e7b0
test rax, rax
je 0x857916
mov rdx, qword [rsp + 0xa8]
not rdx
test rdx, rax
je 0x857906
add rbx, 1
cmp esi, ebx
jle 0x85747d
bt r13, rbx
mov r15d, ebx
jb 0x8578e0
mov rax, rbx
shl rax, 5
mov r12, qword [rbp + rax + 8]
test r12, r12
jne 0x857897
mov eax, 1
mov ecx, r15d
shl rax, cl
or r13, rax
jmp 0x8578e0
mov eax, 1
mov rdx, r12
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0xf8], 0
mov word [rsp + 0xf4], ax
movups xmmword [rsp + 0xd8], xmm6
call fcn.008173a0
cmp word [rsp + 0xf4], 0
je 0x8578e0
mov eax, 1
mov ecx, r15d
shl rax, cl
or r13, rax
jmp 0x8578e0
xor ecx, ecx
mov dword [rsp + 0x50], 1
xor r15d, r15d
mov word [rsp + 0xca], cx
mov byte [rsp + 0x48], 1
movzx ecx, byte [rsp + 0x68]
mov eax, 1
xor r12d, r12d
mov r9d, dword [rsp + 0x38]
mov byte [rsp + 0x40], 0
mov r10d, dword [rsp + 0x98]
shl rax, cl
mov byte [rsp + 0xc9], 0
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0xb5], 0
mov qword [rsp + 0x38], r15
jmp 0x857a09
movzx edx, word [rcx + 0x3e]
cmp edx, r12d
jg 0x857a21
mov rcx, qword [rcx + 0x48]
mov r8, qword [rcx + r12*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x86], dx
je 0x857d90
movzx ecx, byte [rsp + 0x48]
test dx, 0x180
mov eax, 0
cmovne ecx, eax
mov byte [rsp + 0x48], cl
add r12, 1
cmp dword [rsp + 0x50], r12d
jle 0x8577bc
mov rcx, qword [rsp + 0x20]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x68], r12d
movzx eax, word [rcx + 0x18]
cmp eax, r12d
jg 0x8579c0
test r10d, r10d
setg r15b
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x857de6
mov rcx, qword [rsi + 0x38]
mov rdx, qword [rsi + 8]
mov r11d, 0xffffffff
movzx ecx, byte [rcx + r12]
movsx rdx, word [rdx + r12*2]
and ecx, 1
mov byte [rsp + 0x85], cl
mov rcx, qword [rsi + 0x18]
cmp dx, word [rcx + 0x34]
je 0x857a98
cmp byte [rsp + 0x48], 0
movsx r11d, dx
je 0x857a98
test r11d, r11d
js 0x857e05
cmp eax, dword [rsp + 0x68]
jg 0x857a98
lea rax, [rdx + rdx*2]
mov rdx, qword [rcx + 8]
lea rax, [rdx + rax*8]
test byte [rax + 8], 0xf
setne byte [rsp + 0x48]
nop dword [rax]
test r15b, r15b
je 0x8577a0
lea rax, [r12*8]
mov qword [rsp + 0x70], r12
xor esi, esi
mov r12d, r10d
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x1a8]
lea rbp, [rax + 8]
jmp 0x857ae9
add esi, 1
add rbp, 0x20
cmp r12d, esi
jle 0x8577a0
test dil, dil
je 0x8577a0
mov rbx, r13
mov ecx, esi
mov edi, r15d
shr rbx, cl
and ebx, 1
jne 0x857ad0
mov r8, qword [rbp]
mov rdx, r8
test r8, r8
je 0x857ad0
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x857b43
test eax, 0x80000
je 0x857b30
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x857b08
mov edi, r15d
jmp 0x857ad0
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x857b26
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x857b12
test byte [rsp + 0x2e], 0xc0
setne dil
cmp r11d, 0xffffffff
jl 0x857cd0
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x857ad0
cmp dword [rdx + 0x2c], r9d
jne 0x857ad0
movsx eax, word [rdx + 0x30]
cmp eax, r11d
jne 0x857ad0
cmp r11d, 0xffffffff
je 0x857c04
mov rax, qword [rsp + 0x1a0]
mov rdx, r8
mov dword [rsp + 0x6c], r9d
mov dword [rsp + 0x80], r11d
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
call fcn.007b7cf0
mov rcx, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x6c]
test rax, rax
mov r11d, dword [rsp + 0x80]
je 0x857df9
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x40]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x857bf3
movzx edx, byte [r14 + rdx]
cmp byte [r14 + rax], dl
jne 0x857ad0
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x857be0
test eax, eax
jne 0x857bef
cmp word [rsp + 0x9c], 0
mov r10d, r12d
mov r12, qword [rsp + 0x70]
je 0x857c25
mov rdi, qword [rsp + 0x20]
lea eax, [r12 + 1]
mov word [rdi + 0x1e], ax
mov rdi, qword [rsp + 0x1a8]
movsxd rax, esi
shl rax, 5
cmp word [rsp + 0x9e], 0
movzx eax, byte [rdi + rax + 0x18]
jne 0x857c87
cmp byte [rsp + 0xb5], 0
jne 0x85777d
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x85]
je 0x857e13
mov rcx, qword [rsp + 0x1d0]
mov rdi, qword [rsp + 0xc0]
mov byte [rsp + 0xc9], 1
mov byte [rsp + 0xb5], 1
or qword [rcx], rdi
test al, 2
je 0x857ca5
mov rdi, qword [rsp + 0x20]
movzx eax, word [rdi + 0x18]
cmp eax, dword [rsp + 0x68]
jne 0x8577a0
or dword [rdi + 0x38], 0x80000
movzx edi, byte [rsp + 0x40]
cmp r11d, 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x40], dil
or r13, rax
jmp 0x8579fa
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
shl rax, 5
add rax, qword [rcx + 0x50]
mov r8, qword [rax + 8]
test r8, r8
je 0x857ad0
nop
mov eax, dword [r8 + 4]
test eax, 0x82000
je 0x857d1e
test eax, 0x80000
je 0x857d50
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x857ad0
mov eax, dword [r8 + 4]
test eax, 0x82000
jne 0x857cfb
xor ecx, ecx
mov dword [rsp + 0x6c], r11d
mov dword [rsp + 0x60], r9d
call fcn.007b80f0
mov r9d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x6c]
test eax, eax
jne 0x857ad0
mov r8, qword [rbp]
jmp 0x857b85
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x857cf0
jmp 0x857ad0
cmp byte [rsp + 0x40], 0
je 0x8577d2
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsi + 8]
or qword [rsp + 0xa8], rcx
cmp dword [rsp + 0x98], 0
jne 0x85787c
jmp 0x85747d
test r10d, r10d
setg r15b
and edx, 1
je 0x857a28
lea edx, [r12 + 1]
mov r11, qword [r8]
cmp eax, edx
jle 0x857a28
lea rdx, [r12 + 1]
jmp 0x857dcc
add rdx, 1
cmp eax, edx
jle 0x857a28
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r11
jne 0x857dc0
mov rsi, qword [rsp + 0x38]
xor r15d, r15d
test rsi, rsi
jne 0x857a36
mov byte [rsp + 0x85], 0
mov r11d, 0xffffffff
jmp 0x857a98
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x857bc5
cmp r11d, 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x857a98
mov byte [rsp + 0xc9], 0
mov byte [rsp + 0xb5], 1
jmp 0x857c87
mov rdi, qword [rsp + 0x50]
mov r12, rax
cmp word [rdi + 0x30], 0
js 0x8576ea
mov rax, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rax]
mov rax, qword [rsp + 0x1a8]
mov rdx, qword [rax + rsi + 8]
mov rcx, rdi
call fcn.007b7cf0
mov rsi, rax
test rax, rax
je 0x857fdf
mov rdx, qword [r12]
mov rcx, rdi
call fcn.007b83d0
test rax, rax
je 0x857568
mov r9, qword [rax]
mov rcx, qword [rsi]
jmp 0x857ea3
movzx esi, byte [r14 + rdx]
cmp byte [r14 + rax], sil
jne 0x857568
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r9 + rbx]
cmp eax, edx
jne 0x857e90
test eax, eax
jne 0x857e9f
jmp 0x8576ea
mov r9d, dword [r12 + 0x2c]
cmp r9d, dword [rdi + 0x260]
je 0x857fd5
mov eax, dword [rdi + 0x25c]
cmp eax, 1
jle 0x857916
lea edx, [rax - 2]
mov eax, 1
add rdx, 2
jmp 0x857ef5
add rax, 1
cmp rax, rdx
je 0x857916
mov ecx, eax
cmp r9d, dword [rdi + rax*4 + 0x260]
jne 0x857ee8
mov eax, 1
shl rax, cl
jmp 0x8578cb
test dh, 0x10
je 0x857717
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rcx + 8]
or qword [rsp + 0xa8], rsi
jmp 0x85747d
test eax, eax
jne 0x85797e
jmp 0x8577d2
cmp ecx, 0x3f
jle 0x857f60
mov eax, ecx
jmp 0x8577f3
mov byte [rsp + 0x48], 1
test eax, eax
jne 0x85797e
jmp 0x857d69
mov eax, 1
mov rdx, r15
shl rax, cl
sub rax, 1
and rdx, rax
cmp rax, rdx
je 0x857f3f
mov r8d, 1
jmp 0x857f94
mov rax, r8
shl rax, cl
sub rax, 1
mov rdx, rax
and rdx, r15
cmp rdx, rax
je 0x857f3f
sub ecx, 1
jne 0x857f7f
jmp 0x8577f1
mov rax, qword [rsp + 0x20]
movzx edx, word [rax + 0x3c]
test dx, dx
je 0x857568
mov rax, qword [rax + 0x48]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
jmp 0x857fcb
add rax, 8
cmp rdx, rax
je 0x857568
cmp qword [rax], r12
jne 0x857fbe
jmp 0x8576ea
mov eax, 1
jmp 0x8578d0
mov rax, qword [rdi]
mov rsi, qword [rax + 0x10]
jmp 0x857e6c
je 0x85785e
mov eax, 0xffffffff
jmp 0x8577f3
cmp qword [rsp + 0x90], r15
je 0x85785e
jmp 0x857ff1