Function at 0x854c40
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
movups xmmword [rsp + 0xd0], xmm6
mov r15, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov rbx, qword [rcx + 8]
mov rax, qword [r15]
mov r13, qword [r15 + 8]
mov qword [rsp + 0x48], rax
movzx eax, byte [rsi + 0x10]
mov r14, rdx
mov qword [rsp + 0x130], rcx
lea rdx, [rax + rax*2]
mov rdi, rax
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x9c], 0
lea rax, [rax + rdx*4]
lea r12, [r13 + rax*8 + 8]
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x58], rax
lea rax, [rdi + rdx*4]
mov edx, dword [rbx + 0x14]
lea r11, [r13 + rax*8]
mov rax, qword [r11 + 0x28]
mov qword [rsp + 0x78], rax
mov rax, qword [rbx + 0x20]
test edx, edx
jle 0x85575b
sub edx, 1
mov r9d, dword [r11 + 0x4c]
xor ebp, ebp
add rdx, 1
lea rcx, [rdx*8]
sub rcx, rdx
lea r10, [rax + rcx*8]
nop word [rax + rax]
movzx ecx, word [rax + 0x12]
mov edx, ecx
and edx, 0xffffffbf
mov word [rax + 0x12], dx
cmp dword [rax + 0x1c], r9d
jne 0x854d58
test qword [rax + 0x28], r8
jne 0x854d58
movzx ebx, word [rax + 0x14]
and ebx, 0xf7ff
je 0x854d58
and ecx, 0x80
jne 0x854d58
test byte [r11 + 0x44], 0x58
je 0x854d48
mov rcx, qword [rax]
mov ebx, dword [rcx + 4]
test bl, 3
je 0x854d58
cmp r9d, dword [rcx + 0x34]
jne 0x854d58
test byte [r12 + 0x3c], 0x18
je 0x854d48
and ebx, 2
jne 0x854d58
nop word [rax + rax]
or edx, 0x40
add ebp, 1
mov word [rax + 0x12], dx
nop word [rax + rax]
add rax, 0x38
cmp rax, r10
jne 0x854cf0
movsxd rbp, ebp
lea rax, [rbp*8]
sub rax, rbp
lea rax, [rax*4 + 0x88]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x855508
mov ebx, dword [rax]
test ebx, ebx
jle 0x855567
lea r12, [rax + 8]
lea rax, [0x007f7840]
mov qword [rsp + 0x80], rsi
xor r11d, r11d
mov qword [rsp + 0x50], rax
lea rax, [0x006f5c30]
movq xmm6, rax
lea rax, [rdi + rdi*2]
mov qword [rsp + 0x88], r15
mov r15d, r11d
shl rax, 2
mov qword [rsp + 0x68], rax
mov rsi, qword [r12]
movdqu xmm0, xmm6
mov ecx, 1
mov dword [rsp + 0xc8], 0
movhps xmm0, qword [rsp + 0x50]
mov word [rsp + 0xc4], cx
movups xmmword [rsp + 0xa8], xmm0
test rsi, rsi
je 0x854f08
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.008173a0
cmp word [rsp + 0xc4], 0
jne 0x854f08
test byte [r12 + 0x10], 2
jne 0x854f62
movzx eax, byte [rsi]
cmp al, 0xa7
je 0x854f50
cmp al, 0x71
jne 0x854f62
mov rax, qword [rsi + 0x10]
cmp byte [rax], 0xa7
jne 0x854f62
mov rcx, qword [rsp + 0x68]
add rcx, rdi
mov ecx, dword [r13 + rcx*8 + 0x4c]
cmp dword [rax + 0x2c], ecx
jne 0x854f62
movzx ecx, word [rax + 0x30]
mov word [rsi + 0x30], cx
movsx rax, word [rax + 0x30]
test ax, ax
js 0x854f08
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x78]
lea r10, str.BINARY
mov rax, qword [rax + 8]
lea rcx, [rax + rcx*8]
mov rax, qword [rcx]
movzx ecx, word [rcx + 0x12]
test ch, 2
jne 0x854eb4
jmp 0x854ec2
add rax, 1
cmp byte [rax], 0
jne 0x854eb0
and ecx, 4
jne 0x854f30
lea r10, [rax + 1]
mov r9, qword [rsi + 8]
test r9, r9
je 0x854f62
xor ecx, ecx
lea r8, [0x00998440]
jmp 0x854eef
movzx esi, byte [r8 + rdx]
cmp byte [r8 + rax], sil
jne 0x854f62
add rcx, 1
movzx eax, byte [r9 + rcx]
movzx edx, byte [r10 + rcx]
cmp eax, edx
jne 0x854ee0
test eax, eax
jne 0x854eeb
nop dword [rax]
add r15d, 1
add r12, 0x20
cmp ebx, r15d
jne 0x854dd3
mov r15, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
jmp 0x855569
add rax, 1
cmp byte [rax], 0
je 0x854ebe
add rax, 1
cmp byte [rax], 0
jne 0x854f30
jmp 0x854ebe
mov rax, qword [rsp + 0x68]
add rax, rdi
mov eax, dword [r13 + rax*8 + 0x4c]
cmp dword [rsi + 0x2c], eax
je 0x854f08
mov rsi, qword [rsp + 0x80]
xor edi, edi
xor r13d, r13d
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rax]
call fcn.007ae150
mov r12, rax
test rax, rax
je 0x855829
lea r10, [rax + rbp*8 + 0x80]
lea rax, [rbp + rbp*2]
xor edx, edx
mov dword [r12 + 0x70], r13d
lea rbp, [r10 + rax*4]
mov qword [r12 + 8], r10
add rdi, rbp
mov qword [r12 + 0x18], rbp
mov qword [r12 + 0x20], rdi
mov rdi, qword [rsp + 0x70]
mov dword [r12 + 0x74], 0
movq xmm0, rdi
mov word [rsp + 0x60], dx
movhps xmm0, qword [rsp + 0x48]
movups xmmword [r12 + 0x60], xmm0
mov r11d, dword [rdi + 0x14]
mov rax, qword [rdi + 0x20]
test r11d, r11d
jle 0x85576b
mov dword [rsp + 0x50], ebx
xor edx, edx
xor r15d, r15d
mov r13d, 1
jmp 0x85503a
cmp r9w, 0x40
je 0x8550a0
test di, 0x180
je 0x8550b0
cmp r9w, 0x100
setne cl
add ecx, 0x47
mov byte [r8 + 4], cl
add r15d, 1
add edx, 1
add rax, 0x38
cmp edx, r11d
je 0x855138
movzx ecx, word [rax + 0x12]
test cl, 0x40
je 0x85502a
movsxd r8, r15d
mov r9d, dword [rax + 0x20]
movzx edi, word [rax + 0x14]
lea r8, [r8 + r8*2]
lea r8, [r10 + r8*4]
mov dword [r8], r9d
mov r9d, edi
and r9w, 0x3fff
mov dword [r8 + 8], edx
cmp r9w, 1
jne 0x855000
test cx, cx
js 0x855092
mov r9d, dword [r12 + 0x74]
mov ebx, r13d
mov ecx, r15d
shl ebx, cl
mov edi, r9d
or r9d, ebx
cmp r15d, 0x20
cmovge r9d, edi
mov dword [r12 + 0x74], r9d
mov byte [r8 + 4], 2
jmp 0x855026
movzx ecx, byte [rax + 0x17]
mov byte [r8 + 4], cl
jmp 0x855026
and edi, 0x3c
mov byte [r8 + 4], r9b
je 0x855026
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
movzx ecx, byte [rdi]
cmp cl, 0xb0
jne 0x8550d0
movzx ecx, byte [rdi + 2]
cmp cl, 0xb1
je 0x85559b
cmp cl, 0x8a
jne 0x855026
mov rcx, qword [rdi + 0x20]
mov rcx, qword [rcx + 0x20]
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x855026
mov ecx, r15d
mov ebx, r13d
movzx edi, word [rsp + 0x60]
shl ebx, cl
mov ecx, ebx
or ecx, edi
cmp r15d, 0x10
cmovl edi, ecx
mov word [rsp + 0x60], di
cmp r9w, 0x10
je 0x85572a
cmp r9w, 4
jne 0x855026
mov byte [r8 + 4], 0x20
jmp 0x855026
mov ebx, dword [rsp + 0x50]
mov dword [r12], r15d
test ebx, ebx
je 0x855206
mov rdi, qword [rsp + 0x58]
lea eax, [rbx - 1]
lea r13, [rsp + 0xa0]
xor ebx, ebx
shl rax, 5
lea rax, [rdi + rax + 0x28]
lea r15, [rdi + 8]
lea rdi, [0x007f7840]
mov qword [rsp + 0x50], rdi
lea rdi, [0x006f5c30]
movq xmm6, rdi
movhps xmm6, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov esi, ebx
mov rbx, r13
mov r13, rbp
mov rbp, rax
nop dword [rax]
mov rdi, qword [r15]
mov eax, 1
movups xmmword [rsp + 0xa8], xmm6
mov word [rsp + 0xc4], ax
mov dword [rsp + 0xc8], 0
test rdi, rdi
je 0x8551f2
mov rdx, rdi
mov rcx, rbx
call fcn.008173a0
cmp word [rsp + 0xc4], 0
jne 0x8551f2
movsxd rax, esi
add esi, 1
lea rdx, [r13 + rax*8]
movsx eax, word [rdi + 0x30]
mov dword [rdx], eax
movzx eax, byte [r15 + 0x10]
and eax, 1
mov byte [rdx + 4], al
add r15, 0x20
cmp rbp, r15
jne 0x855198
mov ebx, esi
mov r15d, dword [r12]
mov rsi, qword [rsp + 0x50]
movzx eax, word [rsi + 0x40]
xor edi, edi
xor ebp, ebp
mov dword [r12 + 0x10], ebx
mov word [rsi + 0x12], di
and byte [rsi + 0x1c], 0xfe
mov dword [rsi + 0x38], 0x400
mov word [rsi + 0x3c], bp
cmp eax, r15d
jl 0x8553d0
movzx edi, word [rsp + 0x60]
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rdx, r14
lea rax, [rsp + 0x9c]
lea rbp, [rsp + 0xa0]
mov rcx, qword [rsp + 0x130]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], edi
call fcn.00855850
mov ebx, dword [rsp + 0x9c]
mov r13d, eax
test ebx, ebx
jne 0x855518
test r13d, r13d
je 0x855438
mov edx, dword [r12 + 0x38]
test edx, edx
jne 0x855558
mov rax, qword [rsp + 0x48]
xor ebx, ebx
mov r15, qword [rax]
mov eax, dword [r12]
test eax, eax
jg 0x8552d0
jmp 0x855340
mov rcx, r14
call fcn.0082d7e0
mov eax, dword [r12]
mov qword [r12 + rbx*8 + 0x80], 0
add rbx, 1
cmp eax, ebx
jle 0x855340
mov r14, qword [r12 + rbx*8 + 0x80]
test r14, r14
je 0x8552bc
test word [r14 + 0x14], 0x9000
jne 0x8552ee
mov eax, dword [r14 + 0x20]
test eax, eax
je 0x8552f6
mov rcx, r14
call fcn.00848830
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x8552b0
cmp qword [rcx + 0x1f0], r14
jbe 0x85531e
cmp qword [rcx + 0x1e0], r14
jbe 0x855390
cmp qword [rcx + 0x1e8], r14
jbe 0x8553b0
cmp qword [rcx + 0x308], 0
je 0x8552b0
mov rdx, r14
call fcn.007595e0
mov eax, dword [r12]
jmp 0x8552bc
test r15, r15
je 0x855360
cmp qword [r15 + 0x1f0], r12
ja 0x8554d0
cmp qword [r15 + 0x308], 0
jne 0x855734
mov rcx, r12
call fcn.0082d7e0
nop
movups xmm6, xmmword [rsp + 0xd0]
mov eax, r13d
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rcx + 0x1d8]
mov qword [r14], rax
mov eax, dword [r12]
mov qword [rcx + 0x1d8], r14
jmp 0x8552bc
mov rax, qword [rcx + 0x1c8]
mov qword [r14], rax
mov eax, dword [r12]
mov qword [rcx + 0x1c8], r14
jmp 0x8552bc
mov rax, qword [rsp + 0x48]
lea ebx, [r15 + 7]
and ebx, 0xfffffff8
mov r13, qword [rax]
movsxd rdx, ebx
shl rdx, 3
mov rcx, r13
call fcn.007ae070
mov rdi, rax
test rax, rax
je 0x8557dc
movzx r8d, word [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
mov rcx, rax
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsi + 0x48]
lea rax, [rsi + 0x58]
cmp rdx, rax
je 0x855424
mov rcx, r13
call fcn.007adee0
mov qword [rsi + 0x48], rdi
mov word [rsi + 0x40], bx
jmp 0x85522f
mov r10, r14
mov ebx, dword [rsp + 0xa0]
not r10
mov rax, r10
and rax, qword [rsi]
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x50], rax
jne 0x8555a6
test ebx, ebx
je 0x85528c
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x130]
mov rdx, r14
mov r9d, 1
mov qword [rsp + 0x38], 0
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x58], r10
call fcn.00855850
mov r10, qword [rsp + 0x58]
mov rbx, r10
and rbx, qword [rsi]
sete dl
mov qword [rsp + 0x58], rbx
movzx edx, dl
mov dword [rsp + 0x78], edx
test eax, eax
jne 0x8556d4
mov dword [rsp + 0x80], edx
mov ebx, edx
jmp 0x8555c0
cmp qword [r15 + 0x1e0], r12
jbe 0x855744
cmp qword [r15 + 0x1e8], r12
ja 0x855352
mov rax, qword [r15 + 0x1c8]
mov qword [r12], rax
mov qword [r15 + 0x1c8], r12
jmp 0x855369
xor edi, edi
xor r13d, r13d
xor ebx, ebx
jmp 0x854f71
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x130]
xor r9d, r9d
mov rdx, r14
mov qword [rsp + 0x30], rbp
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
call fcn.00855850
mov r13d, eax
jmp 0x855283
mov rcx, qword [r12 + 0x30]
call fcn.0082d7e0
jmp 0x855299
jne 0x855508
movzx r13d, word [r15 + 0x3c]
movsxd rdi, ebx
shl rdi, 3
add qword [rsp + 0x60], rdi
test r13b, 0x80
je 0x85571c
test r13w, 0x200
setne r13b
movzx r13d, r13b
add r13d, 2
jmp 0x854f71
mov rcx, qword [rdi + 0x20]
mov ecx, dword [rcx]
jmp 0x8550ec
mov r11d, dword [rsp + 0x80]
test r11d, r11d
jne 0x855465
mov qword [rsp + 0x58], 0
lea eax, [r15 - 1]
mov dword [rsp + 0x88], r13d
mov r13, qword [rsp + 0x70]
lea rax, [rax + rax*2]
mov dword [rsp + 0x78], ebx
xor ebx, ebx
shl rax, 2
mov dword [rsp + 0x60], edi
mov rdi, r14
mov r14d, r15d
mov qword [rsp + 0x68], rsi
mov r15, rax
mov rsi, r10
nop dword [rax]
mov r11, rbx
test r14d, r14d
jle 0x855778
mov rdx, qword [r12 + 8]
mov r8, qword [r13 + 0x20]
mov rbx, 0xffffffffffffffff
lea rax, [rdx + 8]
lea rcx, [rdx + r15 + 0x14]
nop dword [rax]
movsxd r9, dword [rax]
lea rdx, [r9*8]
sub rdx, r9
mov r10, qword [r8 + rdx*8 + 0x28]
and r10, rsi
cmp r10, rbx
jae 0x855642
cmp r11, r10
cmovb rbx, r10
add rax, 0xc
cmp rax, rcx
jne 0x855620
cmp rbx, 0xffffffffffffffff
je 0x855778
cmp qword [rsp + 0x50], rbx
je 0x8555f8
cmp qword [rsp + 0x58], rbx
je 0x8555f8
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov r8, rdi
xor r9d, r9d
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x130]
or r8, rbx
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
call fcn.00855850
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rdi
jne 0x8556c5
mov r9d, dword [rsp + 0xa0]
mov ecx, 1
mov dword [rsp + 0x80], 1
test r9d, r9d
cmovne ecx, dword [rsp + 0x78]
mov dword [rsp + 0x78], ecx
test eax, eax
je 0x8555f8
mov r14, rdi
mov edi, dword [rsp + 0x60]
mov r13d, eax
mov eax, dword [rsp + 0x78]
or eax, r13d
jne 0x85528c
mov dword [rsp + 0x28], edi
mov r9d, 1
mov r8, r14
mov rdx, r14
mov qword [rsp + 0x30], rbp
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], r12
call fcn.00855850
mov r13d, eax
jmp 0x85528c
shr r13w, 6
and r13d, 1
jmp 0x854f71
mov byte [r8 + 4], 8
jmp 0x855026
mov rdx, r12
mov rcx, r15
call fcn.007595e0
jmp 0x855369
mov rax, qword [r15 + 0x1d8]
mov qword [r12], rax
mov qword [r15 + 0x1d8], r12
jmp 0x855369
mov qword [rsp + 0x60], 0x88
xor ebp, ebp
jmp 0x854d7c
xor r15d, r15d
jmp 0x85513c
mov r8d, dword [rsp + 0x80]
mov r14, rdi
mov r13d, dword [rsp + 0x88]
mov edi, dword [rsp + 0x60]
test r8d, r8d
jne 0x8556d7
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov r8, r14
mov rdx, r14
mov dword [rsp + 0x28], edi
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], r12
call fcn.00855850
mov ecx, dword [rsp + 0xa0]
mov r13d, eax
test ecx, ecx
je 0x85528c
jmp 0x8556d7
mov rax, qword [rsp + 0x48]
mov esi, dword [r12]
xor ebx, ebx
mov r13, qword [rax]
test esi, esi
jle 0x855813
nop
mov rcx, qword [r12 + rbx*8 + 0x80]
call fcn.007ff040
mov qword [r12 + rbx*8 + 0x80], 0
add rbx, 1
cmp dword [r12], ebx
jg 0x8557f0
mov rcx, r13
mov rdx, r12
mov r13d, 7
call fcn.007adee0
jmp 0x855369
mov rcx, qword [rsp + 0x48]
lea rdx, [0x009576c4]
mov r13d, 7
call fcn.007b2d40
jmp 0x855369