Function at 0x585120
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, 0x1c8
mov ebp, dword [r9]
lea r12, [rsp + 0x15f]
mov rdi, rcx
mov qword [rsp + 0x218], rdx
mov qword [rsp + 0x220], r8
and r12, 0xffffffffffffffc0
cmp ebp, 5
je 0x585163
cmp ebp, 0xa
jne 0x585348
mov ecx, dword [r9 + 4]
lea eax, [rcx - 0x400]
mov dword [rsp + 0x68], ecx
cmp eax, 0x7fc00
ja 0x585348
mov eax, dword [r9 + 8]
lea edx, [rax - 8]
cmp edx, 0x18
ja 0x585348
lea esi, [rcx - 1]
mov dword [rsp + 0x6c], esi
and esi, ecx
mov dword [rsp + 0xb8], esi
jne 0x585348
mov rbx, qword [r9 + 0x10]
mov rsi, qword [r9 + 0x18]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
test rbx, rbx
jne 0x5851c2
test rsi, rsi
jne 0x585348
mov r15d, dword [rsp + 0x68]
mov r13d, eax
mov rax, r13
shl rax, 7
mov qword [rsp + 0x60], rax
imul r15, rax
cmp ebp, 5
je 0x5860e0
lea r14, [rax + 0x40]
mov r8d, 0x8000
mov ebx, 0x1000
mov eax, 0x18000
mov edx, 0x18000
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x110], edx
lea rdx, [rcx + r15]
add rdx, r14
add rdx, rax
cmp qword [rdi + 0x18], rdx
jb 0x5856d0
mov rsi, qword [rdi + 8]
mov rax, qword [rsp + 0x60]
add rax, rsi
add r15, rax
mov qword [rsp + 0x40], rax
add r14, r15
mov qword [rsp + 0x88], r15
cmp qword [rsp + 0x220], 0x50
mov qword [rsp + 0xf0], r14
lea rax, [r14 + r8]
mov qword [rsp + 0xf8], rax
je 0x586130
mov r8, qword [rsp + 0x220]
lea rax, [rsp + 0xd0]
mov rdx, qword [rsp + 0x218]
mov rcx, rax
mov qword [rsp + 0x98], rax
call fcn.00515140
movsxd rax, dword [rsp + 0x238]
shl rax, 7
mov qword [rsp + 0x90], rax
cmp ebp, 5
je 0x5861e8
mov qword [rsp + 0x108], 0
shl ebx, 4
cmp qword [rsp + 0x70], 0
movsxd rbx, ebx
lea rdi, [r14 + rbx]
mov qword [rsp + 0x100], rdi
je 0x5861c8
mov r9, qword [rsp + 0x78]
mov qword [rsp + 0x28], rsi
mov edx, 0x20
mov qword [rsp + 0x30], pe_nt_image_headers64
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], 1
call fcn.00521570
mov rax, qword [0x0062cf50]
vmovdqu xmm5, xmmword [rsi]
vmovups xmmword [rsp + 0xd0], xmm5
vmovdqu xmm5, xmmword [rsi + 0x10]
mov rcx, rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x90]
vmovups xmmword [rsp + 0xe0], xmm5
add rax, qword [rcx]
movzx eax, byte [rax]
test al, al
je 0x585370
xor eax, eax
jmp 0x585359
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x68]
mov edx, 0xaaaaaaab
xor r9d, r9d
mov r8d, 1
mov rbx, qword [rsp + 0xf0]
mov r14d, dword [rsp + 0x110]
add eax, 2
imul rax, rdx
mov rcx, rbx
lea r12, [rbx + 0x80]
mov edi, r14d
lea r15, [rbx + 0x100]
shr edi, 7
mov rdx, r12
mov dword [rsp + 0x48], edi
shr rax, 0x21
add eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x70], eax
mov eax, dword [rsi]
mov dword [rbx + 0x80], eax
mov eax, dword [rsi + 4]
mov dword [rbx + 0x84], eax
mov eax, dword [rsi + 8]
mov dword [rbx + 0x88], eax
mov eax, dword [rsi + 0xc]
mov dword [rbx + 0x8c], eax
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x90], eax
mov eax, dword [rsi + 0x14]
mov dword [rbx + 0x94], eax
mov eax, dword [rsi + 0x18]
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0x1c]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x20]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x24]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x2c]
mov dword [rbx + 0xac], eax
mov eax, dword [rsi + 0x30]
mov dword [rbx + 0xb0], eax
mov eax, dword [rsi + 0x34]
mov dword [rbx + 0xb4], eax
mov eax, dword [rsi + 0x38]
vmovdqu xmm1, xmmword [rbx + 0x90]
vmovdqu xmm0, xmmword [rbx + 0x80]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x3c]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovdqu xmm1, xmmword [rbx + 0xa0]
mov dword [rbx + 0xbc], eax
vmovdqu xmm4, xmmword [rbx + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rbx], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rbx + 0x10], xmm4
vmovups xmmword [rbx + 0x20], xmm2
vmovups xmmword [rbx + 0x30], xmm0
mov eax, dword [rsi + 0x40]
mov dword [rbx + 0x80], eax
mov eax, dword [rsi + 0x44]
mov dword [rbx + 0x84], eax
mov eax, dword [rsi + 0x48]
mov dword [rbx + 0x88], eax
mov eax, dword [rsi + 0x4c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rsi + 0x50]
mov dword [rbx + 0x90], eax
mov eax, dword [rsi + 0x54]
mov dword [rbx + 0x94], eax
mov eax, dword [rsi + 0x58]
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0x5c]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x60]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x64]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x68]
vmovdqu xmm1, xmmword [rbx + 0x90]
vmovdqu xmm0, xmmword [rbx + 0x80]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x6c]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
mov dword [rbx + 0xac], eax
mov eax, dword [rsi + 0x70]
vmovdqu xmm1, xmmword [rbx + 0xa0]
mov dword [rbx + 0xb0], eax
mov eax, dword [rsi + 0x74]
mov dword [rbx + 0xb4], eax
mov eax, dword [rsi + 0x78]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x7c]
mov dword [rbx + 0xbc], eax
vmovdqu xmm4, xmmword [rbx + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rbx + 0x40], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rbx + 0x50], xmm4
vmovups xmmword [rbx + 0x60], xmm2
vmovups xmmword [rbx + 0x70], xmm0
call fcn.005810c0
xor r9d, r9d
mov rdx, r15
mov rcx, r12
mov r8d, 1
call fcn.005810c0
mov eax, dword [rbx + 0x140]
cmp edi, 2
jbe 0x585758
lea ecx, [rdi - 1]
shr r14d, 8
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x50], r14d
mov r14d, 2
mov qword [rsp + 0x80], rsi
mov r13d, r14d
mov rsi, rbx
mov dword [rsp + 0x58], ecx
cmp dword [rsp + 0x50], r13d
ja 0x5856c7
mov r12d, dword [rsp + 0x58]
sub r12d, r13d
cmp r12d, 1
jbe 0x5856aa
lea ebx, [r13 - 1]
mov rbp, r15
mov edi, 1
nop dword [rax]
and eax, ebx
mov rcx, rbp
mov r9d, 1
mov qword [rsp + 0x20], 0
lea edx, [rdi + rax - 1]
lea r14, [rbp + 0x80]
shl rdx, 7
add rbp, 0x100
add rdx, rsi
mov r8, r14
call fcn.00582dc0
mov r9d, 1
mov r8, rbp
mov rcx, r14
mov qword [rsp + 0x20], 0
and eax, ebx
lea edx, [rax + rdi]
add edi, 2
shl rdx, 7
add rdx, rsi
call fcn.00582dc0
cmp r12d, edi
ja 0x585628
lea edx, [r12 - 2]
mov ebx, 0x100
shr edx, 1
add rdx, 1
shl rdx, 8
cmp r12d, 1
cmovbe rdx, rbx
add r15, rdx
lea edx, [r13 + r13]
cmp dword [rsp + 0x48], edx
jbe 0x586108
mov r13d, edx
cmp dword [rsp + 0x50], r13d
jbe 0x585607
mov r12d, r13d
jmp 0x585619
mov rcx, qword [rdi]
test rcx, rcx
je 0x5856f1
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
call sub.msvcrt.dll_free
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + 0x3f]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rdi + 0x10], xmm0
mov qword [rdi], 0
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
call sub.msvcrt.dll_malloc
mov rdx, qword [rsp + 0x40]
test rax, rax
mov r8, qword [rsp + 0x48]
je 0x586d33
lea rsi, [rax + 0x3f]
vmovq xmm5, rdx
mov qword [rdi], rax
and rsi, 0xffffffffffffffc0
vpunpcklqdq xmm0, xmm5, xmm5
vmovups xmmword [rdi + 0x10], xmm0
mov qword [rdi + 8], rsi
jne 0x585220
mov eax, 0xffffffff
jmp 0x585359
xor eax, eax
xor edi, edi
mov r14d, 1
mov ebp, dword [rsp + 0x48]
lea r12, [r15 + 0x80]
mov r9d, 1
mov rcx, r15
mov qword [rsp + 0x20], 0
mov r8, r12
sub ebp, r14d
lea edx, [rbp + rax - 2]
shl rdx, 7
add rdx, rbx
call fcn.00582dc0
mov r8, qword [rsp + 0x88]
mov r9d, 1
mov rcx, r12
mov qword [rsp + 0x20], 0
and edi, eax
lea edx, [rbp + rdi - 1]
mov edi, 2
mov ebp, 1
shl rdx, 7
add rdx, rbx
call fcn.00582dc0
lea rbx, [rsp + 0xf0]
mov rax, qword [r8]
mov r9, rbx
mov qword [r8 + 0x80], rax
mov rax, qword [r8 + 8]
mov qword [r8 + 0x88], rax
mov rax, qword [r8 + 0x10]
vmovdqu xmm0, xmmword [r8 + 0x80]
mov qword [r8 + 0x90], rax
mov rax, qword [r8 + 0x18]
mov qword [r8 + 0x98], rax
mov rax, qword [r8 + 0x20]
mov qword [r8 + 0xa0], rax
mov rax, qword [r8 + 0x28]
mov qword [r8 + 0xa8], rax
mov rax, qword [r8 + 0x30]
vmovdqu xmm1, xmmword [r8 + 0xa0]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [r8 + 0x90]
mov qword [r8 + 0xb0], rax
mov rax, qword [r8 + 0x38]
mov qword [r8 + 0xb8], rax
vmovdqu xmm4, xmmword [r8 + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rsi + 0x10], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rsi], xmm4
vmovups xmmword [rsi + 0x20], xmm2
vmovups xmmword [rsi + 0x30], xmm0
mov rax, qword [r8 + 0x40]
mov qword [r8 + 0x80], rax
mov rax, qword [r8 + 0x48]
mov qword [r8 + 0x88], rax
mov rax, qword [r8 + 0x50]
mov qword [r8 + 0x90], rax
mov rax, qword [r8 + 0x58]
mov qword [r8 + 0x98], rax
mov rax, qword [r8 + 0x60]
vmovdqu xmm0, xmmword [r8 + 0x80]
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x60]
mov qword [r8 + 0xa0], rax
mov rax, qword [r8 + 0x68]
add r12, r14
mov qword [r8 + 0xa8], rax
mov rax, qword [r8 + 0x70]
vmovdqu xmm1, xmmword [r8 + 0xa0]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [r8 + 0x90]
mov qword [r8 + 0xb0], rax
mov rax, qword [r8 + 0x78]
mov qword [r8 + 0xb8], rax
lea rax, [r13 + r13]
vmovdqu xmm4, xmmword [r8 + 0xb0]
mov qword [rsp + 0x80], rax
mov eax, dword [rsi]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rsi + 0x50], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rsi + 0x40], xmm4
vmovups xmmword [rsi + 0x60], xmm2
vmovups xmmword [rsi + 0x70], xmm0
mov dword [r12], eax
mov eax, dword [rsi + 4]
mov dword [r12 + 4], eax
mov eax, dword [rsi + 8]
mov dword [r12 + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [r12 + 0xc], eax
mov eax, dword [rsi + 0x10]
mov dword [r12 + 0x10], eax
mov eax, dword [rsi + 0x14]
mov dword [r12 + 0x14], eax
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0x18], eax
mov eax, dword [rsi + 0x1c]
vmovdqu xmm0, xmmword [r12]
mov dword [r12 + 0x1c], eax
mov eax, dword [rsi + 0x20]
vmovdqu xmm1, xmmword [r12 + 0x10]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
mov dword [r12 + 0x20], eax
mov eax, dword [rsi + 0x24]
mov dword [r12 + 0x24], eax
mov eax, dword [rsi + 0x28]
mov dword [r12 + 0x28], eax
mov eax, dword [rsi + 0x2c]
mov dword [r12 + 0x2c], eax
mov eax, dword [rsi + 0x30]
vmovdqu xmm1, xmmword [r12 + 0x20]
mov dword [r12 + 0x30], eax
mov eax, dword [rsi + 0x34]
mov dword [r12 + 0x34], eax
mov eax, dword [rsi + 0x38]
mov dword [r12 + 0x38], eax
mov eax, dword [rsi + 0x3c]
mov dword [r12 + 0x3c], eax
vmovdqu xmm4, xmmword [r12 + 0x30]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [r14], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [r14 + 0x10], xmm4
vmovups xmmword [r14 + 0x20], xmm2
vmovups xmmword [r14 + 0x30], xmm0
mov eax, dword [rsi + 0x40]
mov dword [r12], eax
mov eax, dword [rsi + 0x44]
mov dword [r12 + 4], eax
mov eax, dword [rsi + 0x48]
mov dword [r12 + 8], eax
mov eax, dword [rsi + 0x4c]
mov dword [r12 + 0xc], eax
mov eax, dword [rsi + 0x50]
vmovdqu xmm0, xmmword [r12]
mov dword [r12 + 0x10], eax
mov eax, dword [rsi + 0x54]
mov dword [r12 + 0x14], eax
mov eax, dword [rsi + 0x58]
mov dword [r12 + 0x18], eax
mov eax, dword [rsi + 0x5c]
mov dword [r12 + 0x1c], eax
mov eax, dword [rsi + 0x60]
vmovdqu xmm1, xmmword [r12 + 0x10]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
mov dword [r12 + 0x20], eax
mov eax, dword [rsi + 0x64]
mov dword [r12 + 0x24], eax
mov eax, dword [rsi + 0x68]
mov dword [r12 + 0x28], eax
mov eax, dword [rsi + 0x6c]
mov dword [r12 + 0x2c], eax
mov eax, dword [rsi + 0x70]
vmovdqu xmm1, xmmword [r12 + 0x20]
mov dword [r12 + 0x30], eax
mov eax, dword [rsi + 0x74]
mov dword [r12 + 0x34], eax
mov eax, dword [rsi + 0x78]
mov dword [r12 + 0x38], eax
mov eax, dword [rsi + 0x7c]
mov dword [r12 + 0x3c], eax
vmovdqu xmm4, xmmword [r12 + 0x30]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [r14 + 0x40], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [r14 + 0x50], xmm4
vmovups xmmword [r14 + 0x60], xmm2
vmovups xmmword [r14 + 0x70], xmm0
lea ecx, [rdi - 2]
mov edx, edi
mov r8d, 1
shl rdx, 6
shl rcx, 6
add edi, 2
add rdx, r14
add rcx, r14
call fcn.005810c0
lea eax, [rbp + 1]
mov rbp, rax
cmp r13, rax
ja 0x585b30
mov rcx, qword [rsp + 0x40]
mov r8, r13
mov rdx, r12
mov rbx, r9
call fcn.005810c0
mov rdi, qword [rsp + 0x60]
mov rcx, r12
mov r8, r13
lea r15, [r12 + rdi]
mov rdx, r15
mov qword [rsp + 0x58], r15
call fcn.005810c0
mov ecx, dword [rsp + 0x68]
lea rax, [rdi - 0x40]
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rax
mov eax, dword [r15 + rdi - 0x40]
mov r15d, 2
mov dword [rsp + 0x48], r15d
mov esi, r15d
shr ecx, 1
mov dword [rsp + 0x78], ecx
mov rcx, r13
shl rcx, 8
mov qword [rsp + 0x50], rcx
cmp dword [rsp + 0x78], esi
ja 0x585c92
nop word [rax + rax]
mov ebp, dword [rsp + 0x6c]
sub ebp, esi
cmp ebp, 1
jbe 0x585c75
mov ecx, dword [rsp + 0x48]
mov esi, 1
mov r14, qword [rsp + 0x58]
lea r12d, [rcx - 1]
nop dword [rax]
and eax, r12d
mov rcx, r14
mov r9, r13
mov qword [rsp + 0x20], rbx
lea edx, [rsi + rax - 1]
imul rdx, rdi
add rdx, qword [rsp + 0x40]
lea r15, [rdi + r14]
mov r8, r15
call fcn.00582dc0
add r14, qword [rsp + 0x50]
mov r9, r13
mov rcx, r15
and eax, r12d
mov qword [rsp + 0x20], rbx
lea edx, [rax + rsi]
add esi, 2
imul rdx, rdi
add rdx, qword [rsp + 0x40]
mov r8, r14
call fcn.00582dc0
cmp esi, ebp
jb 0x585c00
lea edx, [rbp - 2]
mov esi, 1
shr edx, 1
add rdx, 1
cmp ebp, 1
cmovbe rdx, rsi
imul rdx, qword [rsp + 0x50]
add qword [rsp + 0x58], rdx
mov ecx, dword [rsp + 0x48]
lea edx, [rcx + rcx]
cmp dword [rsp + 0x68], edx
jbe 0x585ca0
mov dword [rsp + 0x48], edx
mov esi, edx
cmp dword [rsp + 0x78], esi
jbe 0x585bd8
mov ebp, esi
jmp 0x585be7
mov edi, dword [rsp + 0x68]
lea ebp, [rcx - 1]
mov r9, r13
mov qword [rsp + 0x20], rbx
mov r15, qword [rsp + 0x60]
and eax, ebp
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0xa8]
sub edi, ecx
mov rcx, qword [rsp + 0x58]
lea edx, [rax + rdi - 2]
imul rdx, r15
mov r12, rcx
add r12, r15
mov r8, r12
add rdx, r14
call fcn.00582dc0
mov r9, r13
mov rcx, r12
mov qword [rsp + 0x20], rbx
and ebp, eax
mov r8, qword [rsp + 0x88]
lea edx, [rdi + rbp - 1]
imul rdx, r15
add rdx, r14
call fcn.00582dc0
mov r10, qword [rsp + 0x80]
xor ecx, ecx
xor edx, edx
mov rdi, r8
mov r9, r8
add rdi, r15
nop dword [rax]
shl rdx, 6
lea rax, [r9 + rdx]
add rdx, rsi
mov r8d, dword [rax]
mov dword [rdi], r8d
mov r8d, dword [rax + 4]
mov dword [rdi + 4], r8d
mov r8d, dword [rax + 8]
mov dword [rdi + 8], r8d
mov r8d, dword [rax + 0xc]
mov dword [rdi + 0xc], r8d
mov r8d, dword [rax + 0x10]
mov dword [rdi + 0x10], r8d
mov r8d, dword [rax + 0x14]
mov dword [rdi + 0x14], r8d
mov r8d, dword [rax + 0x18]
mov dword [rdi + 0x18], r8d
mov r8d, dword [rax + 0x1c]
mov dword [rdi + 0x1c], r8d
mov r8d, dword [rax + 0x20]
mov dword [rdi + 0x20], r8d
mov r8d, dword [rax + 0x24]
mov dword [rdi + 0x24], r8d
mov r8d, dword [rax + 0x28]
mov dword [rdi + 0x28], r8d
mov r8d, dword [rax + 0x2c]
mov dword [rdi + 0x2c], r8d
mov r8d, dword [rax + 0x30]
mov dword [rdi + 0x30], r8d
mov r8d, dword [rax + 0x34]
mov dword [rdi + 0x34], r8d
mov r8d, dword [rax + 0x38]
mov dword [rdi + 0x38], r8d
mov eax, dword [rax + 0x3c]
mov dword [rdi + 0x3c], eax
vmovdqu xmm1, xmmword [rdi + 0x20]
vmovdqu xmm0, xmmword [rdi]
vmovdqu xmm4, xmmword [rdi + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [rdi + 0x10]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rdx + 0x10], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rdx], xmm4
vmovups xmmword [rdx + 0x20], xmm2
vmovups xmmword [rdx + 0x30], xmm0
lea edx, [rcx + 1]
mov rcx, rdx
cmp r10, rdx
ja 0x585d20
mov r9, qword [rsp + 0x88]
xor edx, edx
mov ecx, dword [rsp + 0xb8]
mov r10, qword [rsp + 0x80]
nop dword [rax]
mov eax, ecx
shl rdx, 6
shl eax, 6
add rdx, r9
add rax, rsi
mov r8d, dword [rax]
mov dword [rdi], r8d
mov r8d, dword [rax + 4]
mov dword [rdi + 4], r8d
mov r8d, dword [rax + 8]
mov dword [rdi + 8], r8d
mov r8d, dword [rax + 0xc]
mov dword [rdi + 0xc], r8d
mov r8d, dword [rax + 0x10]
mov dword [rdi + 0x10], r8d
mov r8d, dword [rax + 0x14]
mov dword [rdi + 0x14], r8d
mov r8d, dword [rax + 0x18]
mov dword [rdi + 0x18], r8d
mov r8d, dword [rax + 0x1c]
mov dword [rdi + 0x1c], r8d
mov r8d, dword [rax + 0x20]
mov dword [rdi + 0x20], r8d
mov r8d, dword [rax + 0x24]
mov dword [rdi + 0x24], r8d
mov r8d, dword [rax + 0x28]
mov dword [rdi + 0x28], r8d
mov r8d, dword [rax + 0x2c]
mov dword [rdi + 0x2c], r8d
mov r8d, dword [rax + 0x30]
mov dword [rdi + 0x30], r8d
mov r8d, dword [rax + 0x34]
mov dword [rdi + 0x34], r8d
mov r8d, dword [rax + 0x38]
mov dword [rdi + 0x38], r8d
mov eax, dword [rax + 0x3c]
mov dword [rdi + 0x3c], eax
vmovdqu xmm1, xmmword [rdi + 0x10]
vmovdqu xmm0, xmmword [rdi]
vmovdqu xmm4, xmmword [rdi + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovdqu xmm1, xmmword [rdi + 0x20]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rdx], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rdx + 0x10], xmm4
vmovups xmmword [rdx + 0x20], xmm2
vmovups xmmword [rdx + 0x30], xmm0
lea edx, [rcx + 1]
mov rcx, rdx
cmp rdx, r10
jb 0x585e28
mov rcx, qword [rsp + 0x88]
mov r9, rbx
mov r15, qword [rsp + 0x60]
mov r12d, dword [rsp + 0x6c]
mov r14, qword [rsp + 0x40]
mov ebp, dword [rsp + 0x70]
mov eax, dword [rcx + r15 - 0x40]
mov rbx, qword [rsp + 0x80]
and eax, r12d
nop word cs:[rax + rax]
mov edx, eax
mov r8, r13
imul rdx, rbx
shl rdx, 6
add rdx, r14
call fcn.00583840
mov r8, r13
mov edx, eax
and edx, r12d
imul rdx, r15
add rdx, r14
call fcn.00583840
and eax, r12d
sub ebp, 2
jne 0x585f50
mov r9, qword [rsp + 0x88]
mov ecx, ebp
xor eax, eax
mov r10, qword [rsp + 0x80]
nop dword [rax]
shl rax, 6
lea rdx, [r9 + rax]
add rax, rsi
mov r8d, dword [rdx]
mov dword [rdi], r8d
mov r8d, dword [rdx + 4]
mov dword [rdi + 4], r8d
mov r8d, dword [rdx + 8]
mov dword [rdi + 8], r8d
mov r8d, dword [rdx + 0xc]
mov dword [rdi + 0xc], r8d
mov r8d, dword [rdx + 0x10]
mov dword [rdi + 0x10], r8d
mov r8d, dword [rdx + 0x14]
mov dword [rdi + 0x14], r8d
mov r8d, dword [rdx + 0x18]
mov dword [rdi + 0x18], r8d
mov r8d, dword [rdx + 0x1c]
mov dword [rdi + 0x1c], r8d
mov r8d, dword [rdx + 0x20]
mov dword [rdi + 0x20], r8d
mov r8d, dword [rdx + 0x24]
mov dword [rdi + 0x24], r8d
mov r8d, dword [rdx + 0x28]
mov dword [rdi + 0x28], r8d
mov r8d, dword [rdx + 0x2c]
mov dword [rdi + 0x2c], r8d
mov r8d, dword [rdx + 0x30]
mov dword [rdi + 0x30], r8d
mov r8d, dword [rdx + 0x34]
mov dword [rdi + 0x34], r8d
mov r8d, dword [rdx + 0x38]
mov dword [rdi + 0x38], r8d
mov edx, dword [rdx + 0x3c]
mov dword [rdi + 0x3c], edx
vmovdqu xmm1, xmmword [rdi + 0x20]
vmovdqu xmm0, xmmword [rdi]
vmovdqu xmm4, xmmword [rdi + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [rdi + 0x10]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rax + 0x10], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rax], xmm4
vmovups xmmword [rax + 0x20], xmm2
vmovups xmmword [rax + 0x30], xmm0
lea eax, [rcx + 1]
mov rcx, rax
cmp rax, r10
jb 0x585f98
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x90]
add rax, qword [rbx]
movzx eax, byte [rax]
test al, al
jne 0x58533f
mov rax, qword [rsp + 0x230]
mov r9d, 0x20
mov edx, 0x40
mov rcx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
add rcx, rsi
call fcn.00521480
mov eax, 1
jmp 0x585359
mov r14, r13
mov r8d, 0x1000
mov ebx, 0x200
shl r14, 8
mov eax, 0x2000
mov edx, 0x2000
jmp 0x5851fc
mov r14d, r13d
mov rbx, rsi
mov r13, qword [rsp + 0x78]
lea edi, [r14 - 1]
mov rsi, qword [rsp + 0x80]
and eax, edi
jmp 0x585762
mov rcx, qword [0x0062c340]
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rcx, r12
mov r8d, 0x10
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [r12], xmm5
vmovdqu xmm5, xmmword [rax + 0x10]
vmovups xmmword [r12 + 0x10], xmm5
vmovdqu xmm5, xmmword [rax + 0x20]
vmovups xmmword [r12 + 0x20], xmm5
vmovdqu xmm5, xmmword [rax + 0x30]
vmovups xmmword [r12 + 0x30], xmm5
vmovdqu xmm5, xmmword [rax + 0x40]
vmovups xmmword [r12 + 0x40], xmm5
vmovdqu xmm5, xmmword [rax + 0x50]
mov rax, qword [rax + 0x60]
vmovups xmmword [r12 + 0x50], xmm5
mov qword [r12 + 0x60], rax
mov rax, qword [rsp + 0x218]
lea rdx, [rax + 0x40]
call fcn.00514990
lea rax, [rsp + 0xd0]
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x98], rax
call fcn.00514e60
jmp 0x585286
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], rax
jmp 0x5852cd
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rsi
mov edx, 0x20
mov r9, qword [rsp + 0x220]
mov qword [rsp + 0x20], 1
mov r8, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
call fcn.00521570
mov rax, qword [0x0062cf50]
mov rbx, rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x90]
add rax, qword [rbx]
movzx eax, byte [rax]
test al, al
jne 0x58533f
mov eax, dword [rsp + 0x68]
mov edx, 0xaaaaaaab
xor r9d, r9d
mov r8d, 1
vmovdqu xmm5, xmmword [rsi]
mov rdi, qword [rsp + 0xf0]
vmovups xmmword [rsp + 0xd0], xmm5
vmovdqu xmm5, xmmword [rsi + 0x10]
add eax, 2
mov ebx, dword [rsp + 0x110]
vmovups xmmword [rsp + 0xe0], xmm5
imul rax, rdx
lea r12, [rdi + 0x80]
mov rcx, rdi
lea r15, [rdi + 0x100]
mov r14d, ebx
shr r14d, 7
shr rax, 0x21
mov dword [rsp + 0x48], r14d
lea edx, [rax + 1]
and eax, 0xfffffffe
mov dword [rsp + 0xbc], eax
mov eax, dword [rsi]
and edx, 0xfffffffe
mov dword [rsp + 0xb0], edx
mov rdx, r12
mov dword [rdi + 0x80], eax
mov eax, dword [rsi + 4]
mov dword [rdi + 0x84], eax
mov eax, dword [rsi + 8]
mov dword [rdi + 0x88], eax
mov eax, dword [rsi + 0xc]
mov dword [rdi + 0x8c], eax
mov eax, dword [rsi + 0x10]
mov dword [rdi + 0x90], eax
mov eax, dword [rsi + 0x14]
mov dword [rdi + 0x94], eax
mov eax, dword [rsi + 0x18]
mov dword [rdi + 0x98], eax
mov eax, dword [rsi + 0x1c]
mov dword [rdi + 0x9c], eax
mov eax, dword [rsi + 0x20]
mov dword [rdi + 0xa0], eax
mov eax, dword [rsi + 0x24]
mov dword [rdi + 0xa4], eax
mov eax, dword [rsi + 0x28]
mov dword [rdi + 0xa8], eax
mov eax, dword [rsi + 0x2c]
vmovdqu xmm1, xmmword [rdi + 0x90]
vmovdqu xmm0, xmmword [rdi + 0x80]
mov dword [rdi + 0xac], eax
mov eax, dword [rsi + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovdqu xmm1, xmmword [rdi + 0xa0]
mov dword [rdi + 0xb0], eax
mov eax, dword [rsi + 0x34]
mov dword [rdi + 0xb4], eax
mov eax, dword [rsi + 0x38]
mov dword [rdi + 0xb8], eax
mov eax, dword [rsi + 0x3c]
mov dword [rdi + 0xbc], eax
vmovdqu xmm4, xmmword [rdi + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rdi], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rdi + 0x10], xmm4
vmovups xmmword [rdi + 0x20], xmm2
vmovups xmmword [rdi + 0x30], xmm0
mov eax, dword [rsi + 0x40]
mov dword [rdi + 0x80], eax
mov eax, dword [rsi + 0x44]
mov dword [rdi + 0x84], eax
mov eax, dword [rsi + 0x48]
mov dword [rdi + 0x88], eax
mov eax, dword [rsi + 0x4c]
mov dword [rdi + 0x8c], eax
mov eax, dword [rsi + 0x50]
mov dword [rdi + 0x90], eax
mov eax, dword [rsi + 0x54]
mov dword [rdi + 0x94], eax
mov eax, dword [rsi + 0x58]
mov dword [rdi + 0x98], eax
mov eax, dword [rsi + 0x5c]
vmovdqu xmm0, xmmword [rdi + 0x80]
mov dword [rdi + 0x9c], eax
mov eax, dword [rsi + 0x60]
vmovdqu xmm1, xmmword [rdi + 0x90]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
mov dword [rdi + 0xa0], eax
mov eax, dword [rsi + 0x64]
mov dword [rdi + 0xa4], eax
mov eax, dword [rsi + 0x68]
mov dword [rdi + 0xa8], eax
mov eax, dword [rsi + 0x6c]
mov dword [rdi + 0xac], eax
mov eax, dword [rsi + 0x70]
vmovdqu xmm1, xmmword [rdi + 0xa0]
mov dword [rdi + 0xb0], eax
mov eax, dword [rsi + 0x74]
mov dword [rdi + 0xb4], eax
mov eax, dword [rsi + 0x78]
mov dword [rdi + 0xb8], eax
mov eax, dword [rsi + 0x7c]
mov dword [rdi + 0xbc], eax
vmovdqu xmm4, xmmword [rdi + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rdi + 0x40], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rdi + 0x50], xmm4
vmovups xmmword [rdi + 0x60], xmm2
vmovups xmmword [rdi + 0x70], xmm0
call fcn.00580000
xor r9d, r9d
mov rdx, r15
mov rcx, r12
mov r8d, 1
call fcn.00580000
mov eax, dword [rdi + 0x140]
cmp r14d, 2
jbe 0x586d06
shr ebx, 8
mov ecx, 2
mov qword [rsp + 0x80], r13
mov dword [rsp + 0x50], ebx
lea ebx, [r14 - 1]
mov r14d, ecx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0xa8], rsi
nop
cmp dword [rsp + 0x50], r14d
ja 0x5865c8
mov r12d, dword [rsp + 0x58]
sub r12d, r14d
cmp r12d, 1
jbe 0x5865b2
lea ebp, [r14 - 1]
mov rsi, r15
mov ebx, 1
nop dword [rax]
and eax, ebp
mov rcx, rsi
mov r9d, 1
mov qword [rsp + 0x20], 0
lea edx, [rbx + rax - 1]
lea r13, [rsi + 0x80]
shl rdx, 7
add rsi, 0x100
add rdx, rdi
mov r8, r13
call fcn.005817d0
mov r9d, 1
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], 0
and eax, ebp
lea edx, [rbx + rax]
add ebx, 2
shl rdx, 7
add rdx, rdi
call fcn.005817d0
cmp ebx, r12d
jb 0x586530
lea edx, [r12 - 2]
mov ebx, 0x100
shr edx, 1
add rdx, 1
shl rdx, 8
cmp r12d, 1
cmovbe rdx, rbx
add r15, rdx
lea edx, [r14 + r14]
cmp dword [rsp + 0x48], edx
jbe 0x5865d0
mov r14d, edx
jmp 0x586500
mov r12d, r14d
jmp 0x58651d
mov r13, qword [rsp + 0x80]
lea ebp, [r14 - 1]
mov ecx, r14d
mov rsi, qword [rsp + 0xa8]
and eax, ebp
mov ebx, dword [rsp + 0x48]
lea r12, [r15 + 0x80]
mov r9d, 1
mov qword [rsp + 0x20], 0
mov r8, r12
sub ebx, ecx
mov rcx, r15
lea edx, [rbx + rax - 2]
shl rdx, 7
add rdx, rdi
call fcn.005817d0
mov rcx, r12
mov r9d, 1
mov qword [rsp + 0x20], 0
and ebp, eax
lea edx, [rbx + rbp - 1]
mov rbx, qword [rsp + 0x88]
shl rdx, 7
add rdx, rdi
mov r8, rbx
call fcn.005817d0
mov rax, qword [rbx]
lea r10, [r13 + r13]
xor ecx, ecx
xor edx, edx
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 8]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x10]
vmovdqu xmm0, xmmword [rbx + 0x80]
mov qword [rbx + 0x90], rax
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x98], rax
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0x28]
mov qword [rbx + 0xa8], rax
mov rax, qword [rbx + 0x30]
vmovdqu xmm1, xmmword [rbx + 0xa0]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [rbx + 0x90]
mov qword [rbx + 0xb0], rax
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0xb8], rax
vmovdqu xmm4, xmmword [rbx + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rsi + 0x10], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rsi], xmm4
vmovups xmmword [rsi + 0x20], xmm2
vmovups xmmword [rsi + 0x30], xmm0
mov rax, qword [rbx + 0x40]
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x90], rax
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x98], rax
mov rax, qword [rbx + 0x60]
vmovdqu xmm0, xmmword [rbx + 0x80]
mov qword [rsp + 0xc0], r10
mov r9, qword [rsp + 0x40]
mov r12, qword [rsp + 0x60]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0x68]
add r12, r9
mov qword [rbx + 0xa8], rax
mov rax, qword [rbx + 0x70]
vmovdqu xmm1, xmmword [rbx + 0xa0]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [rbx + 0x90]
mov qword [rbx + 0xb0], rax
mov rax, qword [rbx + 0x78]
mov qword [rbx + 0xb8], rax
vmovdqu xmm4, xmmword [rbx + 0xb0]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rsi + 0x50], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rsi + 0x40], xmm4
vmovups xmmword [rsi + 0x60], xmm2
vmovups xmmword [rsi + 0x70], xmm0
nop
mov eax, ecx
shl rdx, 6
shl eax, 6
add rdx, r9
add rax, rsi
mov r8d, dword [rax]
mov dword [r12], r8d
mov r8d, dword [rax + 4]
mov dword [r12 + 4], r8d
mov r8d, dword [rax + 8]
mov dword [r12 + 8], r8d
mov r8d, dword [rax + 0xc]
mov dword [r12 + 0xc], r8d
mov r8d, dword [rax + 0x10]
mov dword [r12 + 0x10], r8d
mov r8d, dword [rax + 0x14]
mov dword [r12 + 0x14], r8d
mov r8d, dword [rax + 0x18]
mov dword [r12 + 0x18], r8d
mov r8d, dword [rax + 0x1c]
mov dword [r12 + 0x1c], r8d
mov r8d, dword [rax + 0x20]
mov dword [r12 + 0x20], r8d
mov r8d, dword [rax + 0x24]
mov dword [r12 + 0x24], r8d
mov r8d, dword [rax + 0x28]
mov dword [r12 + 0x28], r8d
mov r8d, dword [rax + 0x2c]
mov dword [r12 + 0x2c], r8d
mov r8d, dword [rax + 0x30]
mov dword [r12 + 0x30], r8d
mov r8d, dword [rax + 0x34]
mov dword [r12 + 0x34], r8d
mov r8d, dword [rax + 0x38]
mov dword [r12 + 0x38], r8d
mov eax, dword [rax + 0x3c]
mov dword [r12 + 0x3c], eax
vmovdqu xmm1, xmmword [r12 + 0x10]
vmovdqu xmm0, xmmword [r12]
vmovdqu xmm4, xmmword [r12 + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovdqu xmm1, xmmword [r12 + 0x20]
vpblendw xmm3, xmm1, xmm4, 0xcc
vpblendw xmm1, xmm1, xmm4, 0x33
vpblendw xmm4, xmm2, xmm3, 0xf0
vpblendw xmm2, xmm2, xmm3, 0xf
vmovups xmmword [rdx], xmm4
vpblendw xmm4, xmm0, xmm1, 0x3c
vpblendw xmm0, xmm0, xmm1, 0xc3
vmovups xmmword [rdx + 0x10], xmm4
vmovups xmmword [rdx + 0x20], xmm2
vmovups xmmword [rdx + 0x30], xmm0
lea edx, [rcx + 1]
mov rcx, rdx
cmp r10, rdx
ja 0x5867e0
mov r14, qword [rsp + 0x40]
lea rbx, [rsp + 0xf0]
mov rdx, r12
mov r8, r13
mov r9, rbx
mov rcx, r14
call fcn.00580000
mov r15, qword [rsp + 0x60]
mov rcx, r12
mov r9, rbx
mov r8, r13
lea rax, [r12 + r15]
mov r12, r14
mov rdx, rax
mov rdi, rax
mov qword [rsp + 0x80], rax
call fcn.00580000
mov edx, dword [rsp + 0x68]
mov rax, rdi
mov dword [rsp + 0x58], 2
mov eax, dword [rax + r15 - 0x40]
mov rdi, r15
mov qword [rsp + 0xc8], rsi
mov ecx, dword [rsp + 0x58]
shr edx, 1
mov dword [rsp + 0xa8], edx
mov rdx, r13
shl rdx, 8
mov qword [rsp + 0x50], rdx
nop word [rax + rax]
cmp dword [rsp + 0xa8], ecx
ja 0x586a40
mov esi, dword [rsp + 0x6c]
sub esi, ecx
mov dword [rsp + 0x48], esi
cmp esi, 1
jbe 0x586a28
mov esi, dword [rsp + 0x58]
mov r15, qword [rsp + 0x80]
lea ebp, [rsi - 1]
mov esi, 1
mov r14, r15
nop word [rax + rax]
and eax, ebp
mov rcx, r14
mov r9, r13
mov qword [rsp + 0x20], rbx
lea edx, [rsi + rax - 1]
imul rdx, rdi
lea r15, [rdi + r14]
mov r8, r15
add rdx, r12
call fcn.005817d0
add r14, qword [rsp + 0x50]
mov r9, r13
mov rcx, r15
and eax, ebp
mov qword [rsp + 0x20], rbx
lea edx, [rax + rsi]
add esi, 2
imul rdx, rdi
mov r8, r14
add rdx, r12
call fcn.005817d0
cmp esi, dword [rsp + 0x48]
jb 0x5869b0
mov esi, dword [rsp + 0x48]
lea edx, [rsi - 2]
shr edx, 1
add rdx, 1
cmp esi, 1
mov esi, 1
cmovbe rdx, rsi
imul rdx, qword [rsp + 0x50]
add qword [rsp + 0x80], rdx
mov ecx, dword [rsp + 0x58]
lea edx, [rcx + rcx]
cmp dword [rsp + 0x68], edx
jbe 0x586a50
mov dword [rsp + 0x58], edx
mov ecx, edx
jmp 0x586970
mov dword [rsp + 0x48], ecx
jmp 0x586990
mov edi, dword [rsp + 0x68]
lea ebp, [rcx - 1]
mov r9, r13
mov qword [rsp + 0x20], rbx
mov r15, qword [rsp + 0x60]
and eax, ebp
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0xc8]
sub edi, ecx
mov rcx, qword [rsp + 0x80]
lea edx, [rax + rdi - 2]
imul rdx, r15
mov r12, rcx
add r12, r15
mov r8, r12
add rdx, r14
call fcn.005817d0
mov qword [rsp + 0x20], rbx
mov r9, r13
mov rcx, r12
and ebp, eax
mov r8, qword [rsp + 0x88]
lea edx, [rdi + rbp - 1]
imul rdx, r15
add rdx, r14
call fcn.005817d0
mov r11, qword [rsp + 0xc0]
xor eax, eax
mov rdx, r8
mov r10, r8
mov r8d, dword [rsp + 0xb8]
add rdx, r15
nop word cs:[rax + rax]
shl rax, 6
lea rcx, [r10 + rax]
add rax, rsi
mov r9d, dword [rcx]
mov dword [rdx], r9d
mov r9d, dword [rcx + 4]
mov dword [rdx + 4], r9d
mov r9d, dword [rcx + 8]
mov dword [rdx + 8], r9d
mov r9d, dword [rcx + 0xc]
mov dword [rdx + 0xc], r9d
mov r9d, dword [rcx + 0x10]
mov dword [rdx + 0x10], r9d
mov r9d, dword [rcx + 0x14]
mov dword [rdx + 0x14], r9d
mov r9d, dword [rcx + 0x18]
mov dword [rdx + 0x18], r9d
mov r9d, dword [rcx + 0x1c]
mov dword [rdx + 0x1c], r9d
mov r9d, dword [rcx + 0x20]
mov dword [rdx + 0x20], r9d
mov r9d, dword [rcx + 0x24]
mov dword [rdx + 0x24], r9d
mov r9d, dword [rcx + 0x28]
mov dword [rdx + 0x28], r9d
mov r9d, dword [rcx + 0x2c]
mov dword [rdx + 0x2c], r9d
mov r9d, dword [rcx + 0x30]
mov dword [rdx + 0x30], r9d
mov r9d, dword [rcx + 0x34]
mov dword [rdx + 0x34], r9d
mov r9d, dword [rcx + 0x38]
mov dword [rdx + 0x38], r9d
mov ecx, dword [rcx + 0x3c]
mov dword [rdx + 0x3c], ecx
vmovdqu xmm1, xmmword [rdx + 0x20]
vmovdqu xmm0, xmmword [rdx]
vmovdqu xmm4, xmmword [rdx + 0x30]
vpblendw xmm2, xmm0, xmm1, 0xf0
vpblendw xmm0, xmm0, xmm1, 0xf
vmovdqu xmm1, xmmword [rdx + 0x10]
vpblendw xmm3, xmm1, xmm4, 0x3c
vpblendw xmm1, xmm1, xmm4, 0xc3
vpblendw xmm4, xmm2, xmm3, 0xcc
vpblendw xmm2, xmm2, xmm3, 0x33
vmovups xmmword [rax + 0x10], xmm2
vpblendw xmm2, xmm0, xmm1, 0xcc
vpblendw xmm0, xmm0, xmm1, 0x33
vmovups xmmword [rax], xmm4
vmovups xmmword [rax + 0x20], xmm2
vmovups xmmword [rax + 0x30], xmm0
lea eax, [r8 + 1]
mov r8, rax
cmp r11, rax
ja 0x586ae0
mov r8d, dword [rsp + 0x68]
mov qword [rsp + 0x30], rbx
mov rdx, r13
mov rcx, rsi
mov rax, qword [rsp + 0x88]
mov edi, dword [rsp + 0xbc]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.00584e00
cmp dword [rsp + 0xb0], edi
ja 0x586ccf
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
mov rax, qword [rdi]
add rax, rbx
movzx eax, byte [rax]
test al, al
jne 0x58533f
mov rax, qword [rsp + 0x230]
mov r8, rsi
mov qword [rsp + 0x30], 0x20
mov edx, 0x20
mov qword [rsp + 0x20], 1
mov r9, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call fcn.00521570
mov rax, qword [rdi]
add rax, rbx
movzx eax, byte [rax]
test al, al
jne 0x58533f
cmp qword [rsp + 0x70], 0
je 0x586d14
mov rbx, qword [rsp + 0x98]
mov edx, 0x20
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x230]
mov qword [rsp + 0x20], rbx
call fcn.00521480
mov r8, qword [rsp + 0x230]
mov edx, 0x20
mov rcx, rbx
call fcn.005210b0
mov eax, 1
jmp 0x585359
mov r8d, dword [rsp + 0x68]
mov qword [rsp + 0x30], rbx
mov rdx, r13
mov rcx, rsi
mov rax, qword [rsp + 0x88]
mov r9d, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.00584e00
jmp 0x586c10
xor eax, eax
xor ebp, ebp
mov ecx, 1
jmp 0x5865e9
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x70], rax
jmp 0x586c87
mov qword [rdi + 8], 0
or eax, 0xffffffff
jmp 0x585359