Function at 0x18008c5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x108
mov rax, qword [rcx]
xor r15d, r15d
mov r10, qword [rcx + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov edi, r15d
movsxd rax, dword [rcx + 0x2c]
mov ebx, r15d
movsxd r9, edx
imul r14, r9, 0x898
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xc0], xmm0
lea r11, [r10 + rax*8]
mov dword [rsp + 0x4c], r15d
mov rax, qword [rcx + 0x1170]
add r14, rcx
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x88], r11
mov dword [rsp + 0xc0], 0x7d00
mov r8d, dword [rax + 0x38]
mov eax, 0x24924925
mul r8d
xor eax, eax
mov dword [r14 + 0x38], r15d
sub r8d, edx
mov byte [rsp + 0x90], al
mov eax, dword [r14 + 0x58]
shr r8d, 1
add r8d, edx
cdq
shr r8d, 3
xor eax, edx
sub eax, edx
mov dword [rsp + 0x60], r8d
mov rdx, qword [rcx + 0x20]
movsxd rcx, dword [rcx + 0x1c]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x64], eax
lea r8, [rcx + rcx*2]
add r8, r8
lea rcx, [rdx + r8*8]
test r9d, r9d
jne 0x18008c689
cmp rdx, rcx
jae 0x18008c6a7
nop dword [rax + rax]
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x18008c670
jmp 0x18008c6a7
cmp rdx, rcx
jae 0x18008c6a7
nop
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x18008c690
mov qword [rsp + 0x100], rbp
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe8], r13
cmp r10, r11
jae 0x18008ce4a
mov rdi, qword [r10]
xor eax, eax
mov r12d, 0xffff8300
mov word [rsp + 0x140], ax
movzx r13d, ax
mov word [rsp + 0x148], ax
movzx r11d, ax
mov word [rsp + 0x30], ax
mov esi, eax
mov dword [rsp + 0x40], r15d
mov rax, qword [rdi + 0x28]
mov r15d, 0x7d00
mov dword [rsp + 0x34], r15d
mov r9d, r15d
mov r8d, r12d
mov dword [rsp + 0x38], r15d
mov ebp, r12d
mov dword [rsp + 0x3c], r12d
movsx ecx, byte [rax + 3]
mov r10d, r15d
mov eax, ecx
mov dword [rsp + 0x44], r15d
neg eax
mov dword [rsp + 0x48], r12d
test cl, cl
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x54], r12d
cmovns eax, ecx
cmp eax, dword [rsp + 0x5c]
jne 0x18008c797
movsx ecx, byte [rdi + 3]
mov eax, ecx
neg eax
test cl, cl
cmovns eax, ecx
cmp eax, dword [rsp + 0x5c]
jne 0x18008c797
mov qword [rsp + 0x130], rdi
nop word [rax + rax]
mov rdi, qword [rdi + 0x28]
movsx ecx, byte [rdi + 3]
mov eax, ecx
neg eax
test cl, cl
cmovns eax, ecx
cmp eax, dword [rsp + 0x5c]
jne 0x18008c793
cmp rdi, qword [rsp + 0x130]
jne 0x18008c770
jmp 0x18008c797
mov rdi, qword [rdi + 0x20]
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x138], sil
nop dword [rax + rax]
mov word [rsp + 0x130], r13w
mov dword [rsp + 0x68], r9d
test eax, eax
je 0x18008cb5c
mov ecx, dword [rdi + 0x18]
mov eax, ecx
mov edx, dword [rdi + 0x1c]
cmp ecx, r15d
cmovge eax, r15d
cmp ecx, r12d
mov dword [rsp + 0x34], eax
mov r11d, eax
cmovle ecx, r12d
cmp edx, r9d
mov r9d, edx
mov r12d, ecx
cmovge r9d, dword [rsp + 0x68]
mov r15d, ecx
movzx ecx, word [rdi]
movzx eax, cx
movzx r13d, cx
cmovge r13w, word [rsp + 0x130]
cmp edx, r8d
cmovle ax, word [rsp + 0x140]
movzx edx, ax
mov word [rsp + 0x140], ax
mov eax, dword [rdi + 0x1c]
cmp eax, r8d
cmovle eax, r8d
mov r8d, eax
test cl, 3
jne 0x18008c847
mov ecx, dword [rdi + 0x1c]
cmp ecx, r10d
mov eax, ecx
cmovge eax, r10d
mov r10d, eax
cmp ecx, ebp
jle 0x18008c847
mov ebp, ecx
movsx eax, byte [rdi + 3]
cmp eax, dword [rsp + 0x64]
jne 0x18008c85c
cmp rdi, qword [rsp + 0x70]
jne 0x18008ce09
test rsi, rsi
je 0x18008cac4
mov rcx, qword [rsi + 0x40]
cmp qword [rbx + 0x38], rcx
jne 0x18008cac4
movzx eax, byte [rdi + 2]
cmp byte [rcx + 2], al
jne 0x18008c964
mov ecx, dword [rsp + 0x38]
cmp ecx, r11d
mov r12d, dword [rsp + 0x3c]
movzx eax, word [rsp + 0x148]
cmovge ecx, r11d
cmp r12d, r15d
mov dword [rsp + 0x34], ecx
mov qword [rsi + 0x40], rdi
cmovle r12d, r15d
cmp dword [rsp + 0x44], r9d
cmovge ax, r13w
movzx r13d, ax
mov eax, dword [rsp + 0x44]
cmovge eax, r9d
cmp dword [rsp + 0x48], r8d
mov r9d, eax
movzx eax, word [rsp + 0x30]
cmovle ax, dx
movzx edx, ax
mov word [rsp + 0x140], ax
mov eax, dword [rsp + 0x48]
cmovle eax, r8d
mov r8d, eax
mov eax, dword [rsp + 0x50]
cmp eax, r10d
cmovge eax, r10d
mov r10d, eax
mov eax, dword [rsp + 0x54]
cmp eax, ebp
cmovle eax, ebp
mov ebp, eax
lea eax, [r12 + rcx]
sar eax, 1
mov word [rsi + 2], ax
mov eax, r12d
sub eax, ecx
sar eax, 1
mov word [rsi + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18008c92c
mov eax, ebp
sub eax, r10d
cmp eax, dword [rsp + 0x60]
jge 0x18008c92c
or byte [rsi], 1
jmp 0x18008c92f
and byte [rsi], 0xfe
movzx r11d, word [rsp + 0x140]
movzx eax, r8w
sub ax, r9w
mov word [rsi + 6], r9w
mov word [rsi + 0xa], ax
mov word [rsi + 8], r8w
dec dword [r14 + 0x38]
xor r15d, r15d
mov eax, r15d
mov ebx, r15d
mov dword [rsp + 0x40], eax
jmp 0x18008cb63
mov eax, r8d
sub eax, r9d
cdq
mov ecx, eax
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x44]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x18008c9e6
mov ebx, dword [rsp + 0x38]
cmp r11d, ebx
mov ecx, dword [rsp + 0x3c]
cmovl ebx, r11d
mov qword [rsi + 0x40], rdi
cmp r15d, ecx
mov dword [rsp + 0x38], ebx
cmovg ecx, r15d
mov dword [rsp + 0x3c], ecx
lea eax, [rcx + rbx]
sar eax, 1
mov word [rsi + 2], ax
mov eax, ecx
sub eax, ebx
mov ecx, r11d
movzx r11d, word [rsp + 0x140]
sar eax, 1
mov word [rsi + 4], ax
dec dword [r14 + 0x38]
xor r15d, r15d
mov dword [rsp + 0x34], ecx
mov eax, r15d
mov word [rsp + 0x140], r11w
mov dword [rsp + 0x40], eax
mov ebx, r15d
jmp 0x18008cb63
mov ecx, dword [rsp + 0x38]
cmp ecx, r11d
mov r12d, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x140]
cmovge ecx, r11d
cmp r12d, r15d
mov dword [rsp + 0x34], ecx
mov qword [rbx + 0x40], rdi
cmovle r12d, r15d
lea eax, [r12 + rcx]
sar eax, 1
mov word [rbx + 2], ax
mov eax, r12d
sub eax, ecx
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18008ca3a
mov eax, ebp
sub eax, r10d
cmp eax, dword [rsp + 0x60]
jge 0x18008ca3a
or byte [rbx], 1
mov word [rbx + 6], r9w
movzx eax, r8w
mov word [rbx + 8], r8w
sub ax, r9w
mov word [rbx + 0xa], ax
movzx r11d, dx
movups xmm0, xmmword [rbx]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], r12d
movups xmmword [rsi], xmm0
mov dword [rsp + 0x44], r9d
movups xmm1, xmmword [rbx + 0x10]
mov dword [rsp + 0x48], r8d
mov word [rsp + 0x148], r13w
movups xmmword [rsi + 0x10], xmm1
mov word [rsp + 0x30], dx
movups xmm0, xmmword [rbx + 0x20]
mov dword [rsp + 0x50], r10d
mov dword [rsp + 0x54], ebp
movups xmmword [rsi + 0x20], xmm0
mov word [rsp + 0x140], dx
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rsi + 0x30], xmm1
movsd xmm0, qword [rbx + 0x40]
movsd qword [rsi + 0x40], xmm0
dec dword [r14 + 0x38]
xor r15d, r15d
mov eax, r15d
mov ebx, r15d
mov dword [rsp + 0x40], eax
jmp 0x18008cb63
lea eax, [r12 + r11]
mov qword [rbx + 0x40], rdi
sar eax, 1
mov word [rbx + 2], ax
mov eax, r15d
sub eax, r11d
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18008caf6
mov eax, ebp
sub eax, r10d
cmp eax, dword [rsp + 0x60]
jge 0x18008caf6
or byte [rbx], 1
movzx eax, r8w
mov dword [rsp + 0x3c], r15d
sub ax, r9w
mov word [rbx + 6], r9w
xor r15d, r15d
mov word [rbx + 0xa], ax
mov ecx, r11d
mov word [rbx + 8], r8w
mov eax, r15d
mov dword [rsp + 0x38], r11d
mov rsi, rbx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], r9d
movzx r11d, dx
mov dword [rsp + 0x48], r8d
mov ebx, r15d
mov word [rsp + 0x148], r13w
mov word [rsp + 0x30], dx
mov dword [rsp + 0x50], r10d
mov dword [rsp + 0x54], ebp
mov dword [rsp + 0x34], ecx
mov word [rsp + 0x140], dx
jmp 0x18008cb63
mov ecx, dword [rsp + 0x34]
xor r15d, r15d
cmp rdi, qword [rsp + 0x70]
jne 0x18008cbe3
cmp byte [rsp + 0x138], 0
jne 0x18008ce24
mov dword [rsp + 0x34], ecx
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x3c], ecx
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x44], ecx
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x48], ecx
movzx ecx, word [rsp + 0x148]
mov word [rsp + 0x148], cx
movzx ecx, word [rsp + 0x30]
mov word [rsp + 0x30], cx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x40], eax
mov word [rsp + 0x140], r11w
mov byte [rsp + 0x138], 1
test eax, eax
jne 0x18008ce16
movsx edx, byte [rdi + 3]
mov eax, edx
mov byte [rsp + 0x130], dl
neg eax
test dl, dl
cmovns eax, edx
cmp eax, dword [rsp + 0x5c]
je 0x18008cc07
cmp rdi, qword [rdi + 0x28]
jne 0x18008ce12
mov dword [rsp + 0x64], edx
mov r8d, r15d
mov edx, dword [r14 + 0x38]
mov rbx, r15
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x58], r15d
cmp edx, 0x12
jge 0x18008cc44
cmp qword [r14 + 0x40], 0
jne 0x18008cd28
lea rax, [r14 + 0x60]
mov dword [r14 + 0x3c], 0x12
mov qword [r14 + 0x40], rax
jmp 0x18008cd28
mov r8d, dword [r14 + 0x3c]
cmp edx, r8d
jl 0x18008cd25
cmp r8d, 0x1c71c71
jge 0x18008ced1
mov eax, r8d
lea ebp, [r8 + 4]
sar eax, 2
add ebp, eax
cmp ebp, r8d
jl 0x18008cc77
cmp ebp, 0x1c71c71
jle 0x18008cc7c
mov ebp, 0x1c71c71
mov rax, qword [r14 + 0x40]
lea r15, [r14 + 0x60]
mov r9d, ebp
mov edx, 0x48
cmp rax, r15
jne 0x18008cceb
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor eax, eax
mov qword [rsp + 0x20], rax
call fcn.180084220
mov r8d, dword [rsp + 0x58]
mov qword [r14 + 0x40], rax
mov dword [rsp + 0x4c], r8d
test r8d, r8d
jne 0x18008ced8
mov rcx, rax
mov rdx, r15
mov r8d, 0x510
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x58]
mov edx, dword [r14 + 0x38]
mov dword [rsp + 0x4c], r8d
mov dword [r14 + 0x3c], ebp
jmp 0x18008cd28
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180084220
mov r8d, dword [rsp + 0x58]
mov qword [r14 + 0x40], rax
mov dword [rsp + 0x4c], r8d
test r8d, r8d
jne 0x18008ced8
mov edx, dword [r14 + 0x38]
mov dword [r14 + 0x3c], ebp
jmp 0x18008cd28
mov r8d, ebx
movsxd rax, edx
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x40]
lea rbx, [rax + rcx*8]
lea eax, [rdx + 1]
mov dword [r14 + 0x38], eax
test r8d, r8d
jne 0x18008ced8
movaps xmm0, xmmword [rsp + 0x90]
test rsi, rsi
movzx eax, byte [rsp + 0x130]
xorps xmm1, xmm1
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
mov byte [rbx + 1], al
lea rax, [rbx - 0x48]
mov qword [rbx + 0x38], rdi
cmove rax, rsi
mov qword [rbx + 0x40], rdi
mov rsi, rax
movzx r11d, word [rdi]
mov r12d, dword [rdi + 0x18]
mov r15d, r12d
mov r8d, dword [rdi + 0x1c]
mov r9d, r8d
mov dword [rsp + 0x34], r12d
movzx r13d, r11w
mov word [rsp + 0x140], r11w
test r11b, 3
je 0x18008cdc1
mov ebp, 0xffff8300
mov r10d, 0x7d00
jmp 0x18008cdc7
mov ebp, r8d
mov r10d, r8d
mov eax, 1
mov dword [rsp + 0x40], eax
cmp rdi, qword [rdi + 0x28]
jne 0x18008ce1b
mov word [rbx + 2], r12w
test byte [rdi], 3
je 0x18008cde2
or byte [rbx], al
movzx eax, word [rdi + 0x1c]
xor ecx, ecx
mov word [rbx + 6], ax
movzx eax, word [rdi + 0x1c]
mov word [rbx + 8], ax
mov eax, ecx
mov word [rbx + 0xa], cx
mov ebx, ecx
mov rdi, qword [rdi + 0x20]
mov dword [rsp + 0x40], ecx
jmp 0x18008c7b0
movzx r11d, word [rsp + 0x140]
mov eax, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x34]
mov rdi, qword [rdi + 0x20]
jmp 0x18008c7b0
mov r10, qword [rsp + 0x80]
add r10, 8
mov qword [rsp + 0x80], r10
cmp r10, qword [rsp + 0x88]
jb 0x18008c6d0
mov edi, dword [rsp + 0x4c]
movsxd rax, dword [r14 + 0x38]
mov r8, qword [r14 + 0x40]
lea rcx, [rax + rax*8]
lea rax, [r8 + rcx*8]
cmp r8, rax
jae 0x18008cf09
lea rcx, [rcx*8 - 1]
movabs rax, 0xe38e38e38e38e38f
mul rcx
add r8, 0xa
mov rbx, rdx
shr rbx, 6
inc rbx
nop word [rax + rax]
mov rax, qword [r8 + 0x2e]
mov r11, qword [r8 + 0x36]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rax + 0x28]
mov ecx, dword [r11 + 0x1c]
mov r10d, dword [rax + 0x1c]
cmp r9d, ecx
jge 0x18008cedd
cmp r10d, r9d
jge 0x18008cebc
sub r9d, r10d
sar r9d, 1
add word [r8], r9w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, ecx
jle 0x18008ceff
sub edx, ecx
sar edx, 1
add word [r8], dx
jmp 0x18008ceff
mov eax, 0x40
jmp 0x18008cf0b
mov eax, r8d
jmp 0x18008cf0b
cmp r10d, r9d
jle 0x18008ceec
sub r10d, r9d
sar r10d, 1
add word [r8], r10w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, ecx
jge 0x18008ceff
sub ecx, edx
sar ecx, 1
add word [r8], cx
add r8, 0x48
sub rbx, 1
jne 0x18008ce90
mov eax, edi
mov r13, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xf8]
mov rbp, qword [rsp + 0x100]
add rsp, 0x108
pop r15
pop r14
pop rdi
pop rbx
ret