Function at 0x1002aebe8
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [0x1002f3aa4]
mov r15d, 0x269ec3
lea r11, [0x100000000]
mov r14d, 0xfffffff
mov r13d, 0x8000
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x78], rdx
mov edx, dword [r12 + 1]
shr rdx, 1
mov qword [rsp + 0x90], rcx
and rdx, r14
mov rcx, rax
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
mov eax, dword [0x1002f3aa4]
sub rsi, rdx
mov eax, dword [0x1002f3aa4]
mov r9d, dword [0x10005e244]
mov eax, dword [0x10005e244]
test eax, eax
je 0x1002aed0d
mov edi, dword [0x10005e244]
xor r8d, r8d
xor eax, eax
add edi, 0xffffffff
add rdi, 1
mov r10, rdi
je 0x1002aecc6
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r10, 0x10
jne 0x1002aec9e
mov qword [0x100495210], rcx
xor edx, edx
div rdi
test r9, r9
je 0x1002aed02
mov eax, 0x3bd7
add r8, 1
mov ecx, 0xffffc428
lock cmpxchg dword [r11 + rdx*4 + 0x478cb0], ecx
je 0x1002aef95
mov ecx, dword [0x10005e244]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r9
jb 0x1002aecd0
xor ebx, ebx
test rbx, rbx
jne 0x1002aee2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
add rdi, 1
mov rcx, qword [0x10047b438]
xor eax, eax
mov r8, rcx
mov r9, rcx
test rcx, rcx
je 0x1002aed5e
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x1002aed36
mov qword [0x100495210], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdx
mov rdx, rsi
shl rcx, 0x10
add rcx, qword [0x100493ee0]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1002aedc6
and qword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rax
and qword [rsp + 0x20], 0
mov r8d, esi
lea r9, [0x1003c433c]
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1002aedda
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1002aed17
xor ebx, ebx
cmp rbx, 0x10000
jb 0x1002aede8
test bl, 3
je 0x1002aee0a
test rbx, rbx
je 0x1002aee08
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov rcx, rbx
xor edx, edx
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
lea r11, [0x100000000]
je 0x1002aec65
mov rcx, rsi
mov rdi, rbx
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x4f99e050
mov ebp, dword [r12 + 1]
mov rax, rbp
shr rbp, 1
lea r13, [0x100000000]
mov edi, dword [0x1002f3aa4]
shr rax, 0x1d
lea r12, [rax + r12 + 9]
mov esi, r12d
mov qword [rsp + 0x88], r12
and rbp, r14
mov qword [rsp + 0x98], rbp
sub rdi, rbp
xor eax, eax
sub esi, r13d
add rdi, 1
mov r8, rdi
mov dword [rsp + 0x30], esi
je 0x1002aeeac
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r8, 0x10
jne 0x1002aee84
mov qword [0x100495210], rcx
mov ecx, esi
xor edx, edx
div rdi
add rbx, rdx
mov r8, rbx
mov qword [rsp + 0x80], rbx
mov rdx, rbp
mov eax, 0x65e755d3
xor dil, dil
mov rdx, qword [r12 + rbp]
mov qword [rsp + 0x70], rdx
lea rcx, [rsp + 0x70]
mov eax, 0xeb10f0
mov r8d, dword [rsp + 0x74]
mov rax, qword [0x1003f4900]
mov rcx, r13
mov r11, qword [rsp + 0x70]
and qword [rsp + 0x48], 0
and r11, r14
and r8, r14
mov r14d, 4
add r11, r13
sub rcx, rax
mov qword [rsp + 0x68], rcx
jne 0x1002aefac
xor r10d, r10d
test r8, r8
je 0x1002af2d5
mov r9d, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
movzx eax, byte [r10 + r11]
add r10, 1
add eax, 0x2a318641
add r9d, eax
add eax, ecx
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x38]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x2a318641
ror ecx, 0x10
add r9d, ecx
cmp r10, r8
jb 0x1002aef2b
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], r9d
jmp 0x1002af2d5
mov ecx, dword [0x1002f3aa4]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x425000]
jmp 0x1002aed04
movsxd rcx, dword [0x10000003c]
lea rax, [r11 + r8]
mov r9d, dword [rcx + r13 + 0xb0]
mov ecx, dword [rcx + r13 + 0xb4]
add r9, r13
mov qword [rsp + 0x50], rax
mov eax, r11d
sub eax, r13d
mov ebx, eax
mov r10d, eax
lea r13, [rax + r8]
mov r15, r13
and r10, 0xfffffffffffff000
sub rbx, r10
and r15, 0xfffffffffffff000
sub r13, r15
add rcx, r9
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x60], r13
jmp 0x1002af013
mov eax, dword [r9]
cmp rax, r10
jae 0x1002af018
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x1002af004
xor esi, esi
cmp r9, rcx
je 0x1002af052
mov eax, dword [r9]
cmp rax, r10
jne 0x1002af052
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002af04d
mov ax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbx
jae 0x1002af04d
add rsi, 1
cmp rsi, rcx
jne 0x1002af034
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
cmp r9, rcx
je 0x1002af23c
mov eax, dword [r9]
cmp rax, r15
ja 0x1002af23c
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x1002af0a2
add r9, rdx
cmp r9, rcx
je 0x1002af23c
mov eax, dword [r9]
cmp rax, r15
ja 0x1002af23c
xor esi, esi
jmp 0x1002af076
mov eax, dword [r9]
cmp rax, r15
jne 0x1002af0be
mov ax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x1002af23c
mov rax, rsi
add rsi, 1
test word [r9 + rax*2 + 8], 0xf000
je 0x1002af061
xor edi, edi
movzx ebx, word [r9 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, ebx
and r13d, 0xfff
add r13d, dword [r9]
add r13, rax
mov rax, r13
sub rax, r11
je 0x1002af166
mov rbp, rax
movzx eax, byte [r11 + rdi]
add rdi, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp rdi, rbp
jb 0x1002af0f9
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
shr ebx, 0xc
cmp ebx, 3
mov rax, qword [r13]
mov qword [rsp + 0x58], rax
je 0x1002af183
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1002af188
mov edx, 2
mov r11, r12
neg r11
sub edx, 2
je 0x1002af1ae
cmp edx, 1
je 0x1002af19e
or r11, 0xffffffffffffffff
jmp 0x1002af1b6
add rax, r11
mov r11d, 8
mov qword [rsp + 0x58], rax
jmp 0x1002af1b6
add dword [rsp + 0x58], r11d
mov r11, r14
xor ebx, ebx
test r11, r11
je 0x1002af22a
movzx eax, byte [rsp + rbx + 0x58]
add rbx, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x68], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x68]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp rbx, r11
jb 0x1002af1bd
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
mov rcx, qword [rsp + 0x38]
add r11, r13
mov r13, qword [rsp + 0x60]
jmp 0x1002af061
mov rbp, qword [rsp + 0x98]
xor r9d, r9d
mov rbx, qword [rsp + 0x50]
sub rbx, r11
mov r12, qword [rsp + 0x88]
mov dil, r9b
je 0x1002af2c9
movzx eax, byte [r9 + r11]
add r9, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x38]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp r9, rbx
jb 0x1002af25c
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
mov rbx, qword [rsp + 0x80]
mov esi, dword [rsp + 0x30]
xor ecx, ecx
mov al, cl
add rcx, 1
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x48]
mov byte [rsp + rcx + 0xa7], al
jb 0x1002af2d7
mov eax, 0x1fa620c2
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rbx
mov r13b, bpl
mov r10, rbx
and r13d, 7
mov r15, r12
je 0x1002af7d7
xor r8d, r8d
not esi
mov dword [rsp + 0x60], r8d
xor r11d, r11d
mov dword [rsp + 0x50], r11d
xor r10d, r10d
test r13d, r13d
jle 0x1002af36b
lea r9d, [r8 + 0x38]
movzx edx, byte [r15]
cmp r10d, r14d
jge 0x1002af348
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1002af350
mov ecx, r9d
shl edx, cl
or r8d, edx
add r10d, 1
add r15, 1
sub r9d, 8
cmp r10d, r13d
jl 0x1002af334
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x60], r8d
movzx r10d, word [rsp + 0xaa]
movzx r11d, ax
mov ebx, esi
ror ebx, 9
movzx r9d, word [rsp + 0xac]
sub ebx, r11d
movzx r8d, word [rsp + 0xae]
imul ebx, r10d
xor ebx, dword [rsp + 0x30]
mov ecx, ebx
mov edx, ebx
xor ecx, r9d
ror edx, 1
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov dword [rsp + 0x30], esi
mov edx, eax
sub edx, esi
ror edx, 0xd
rol ecx, 0xf
mov esi, dword [rsp + 0xac]
xor esi, eax
xor esi, dword [rsp + 0x30]
imul edx, r9d
sub edx, ecx
xor ebx, edx
xor esi, ebx
mov ecx, esi
mov edx, esi
sub edx, dword [rsp + 0xac]
ror edx, 1
ror ecx, 9
imul edx, r11d
xor ecx, edx
xor ebx, ecx
mov edx, dword [rsp + 0xac]
xor edx, ebx
mov ecx, eax
sub ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
xor edx, esi
rol edx, 2
rol ecx, 5
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
shr ecx, 6
xor edx, r11d
rol edx, 1
imul edx, r10d
add edx, ecx
xor esi, edx
mov ecx, esi
not ecx
ror ecx, 0xa
add ecx, r11d
imul ecx, r9d
xor ebx, ecx
mov ecx, ebx
sub ecx, r8d
xor ecx, eax
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, r10d
ror edx, 0xa
imul ecx, r9d
add edx, ecx
xor ebx, edx
mov ecx, ebx
sub ecx, dword [rsp + 0xac]
sub ecx, r10d
xor esi, ecx
mov edx, esi
sub edx, dword [rsp + 0xac]
mov ecx, esi
ror edx, 0xd
xor r9d, r9d
ror ecx, 9
imul edx, r11d
mov r11d, dword [rsp + 0x60]
sub edx, ecx
xor edx, dword [rsp + 0x50]
xor esi, r11d
xor ebx, edx
mov edx, esi
test r13d, r13d
mov ecx, ebx
jle 0x1002af4bf
mov r8, qword [rsp + 0x38]
cmp r9d, r14d
jge 0x1002af4a4
rol ecx, 8
mov byte [r8], cl
add r8, 1
xor dil, cl
jmp 0x1002af4b1
rol edx, 8
mov byte [r8], dl
add r8, 1
xor dil, dl
add r9d, 1
cmp r9d, r13d
jl 0x1002af490
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1002af7bf
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr esi, cl
shl esi, cl
mov r10, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x50]
mov rcx, rbp
shr rcx, 3
mov qword [rsp + 0xa0], rcx
je 0x1002af705
mov r13d, dword [rsp + 0xac]
mov ecx, r13d
xor ecx, eax
mov rbp, qword [rsp + 0xa0]
movzx edx, ax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x60], ecx
mov r12d, dword [rsp + 0x60]
movzx ecx, word [rsp + 0xae]
mov dword [rsp + 0x68], ecx
movzx ecx, r13w
mov dword [rsp + 0x50], ecx
movzx ecx, word [rsp + 0xaa]
mov dword [rsp + 0x38], ecx
movzx ecx, byte [r15]
movzx r9d, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
shl ecx, 8
shl r8d, 8
add r15, 8
or r9d, ecx
movzx ecx, byte [r15 - 6]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 5]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
xor esi, r8d
mov ecx, esi
ror ecx, 9
sub ecx, edx
movzx edx, word [rsp + 0xaa]
imul ecx, edx
xor ecx, r9d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor ecx, dword [rsp + 0x50]
ror edx, 1
imul ecx, dword [rsp + 0x68]
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, eax
sub edx, esi
ror edx, 0xd
rol ecx, 0xf
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor ebx, edx
xor esi, ebx
xor esi, r12d
mov ecx, esi
mov edx, esi
sub edx, r13d
ror edx, 1
ror ecx, 9
imul edx, dword [rsp + 0x30]
xor ecx, edx
mov edx, r13d
xor ebx, ecx
mov ecx, eax
xor edx, ebx
sub ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
xor edx, esi
rol edx, 2
rol ecx, 5
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x30]
movzx ecx, word [rsp + 0xaa]
rol edx, 1
imul edx, ecx
mov ecx, ebx
shr ecx, 6
add edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xae]
mov ecx, esi
not ecx
ror ecx, 0xa
add ecx, dword [rsp + 0x30]
imul ecx, dword [rsp + 0x50]
xor ebx, ecx
mov ecx, ebx
sub ecx, edx
xor ecx, eax
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x38]
ror edx, 0xa
imul ecx, dword [rsp + 0x50]
add edx, ecx
xor ebx, edx
mov ecx, ebx
movzx edx, word [rsp + 0xaa]
sub ecx, r13d
sub ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor esi, r11d
mov byte [r10 + 7], sil
mov r11d, r8d
sub edx, r13d
ror edx, 0xd
ror ecx, 9
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor edx, r14d
xor ebx, edx
xor dil, bl
mov edx, dword [rsp + 0x30]
mov r14d, r9d
mov byte [r10 + 3], bl
ror ebx, 8
mov byte [r10 + 2], bl
xor dil, sil
ror esi, 8
mov byte [r10 + 6], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 1], bl
mov byte [r10 + 5], sil
ror ebx, 8
xor dil, sil
mov byte [r10], bl
ror esi, 8
mov cl, sil
mov byte [r10 + 4], sil
add r10, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub rbp, 1
jne 0x1002af53d
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x98]
cmp dil, byte [r12 + rbp + 8]
je 0x1002af7ff
call fcn.1002d3e40
mov r10, rax
lea r13, [0x1003e8888]
mov rax, 0xfffffffffffff000
mov r11d, 0xffff
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 0x18]
mov qword [rbx + 0x10], r13
mov rcx, qword [0x100495210]
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
and r10, rax
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
shr r11, 0x10
jne 0x1002af756
mov qword [0x100495210], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x98], r10
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], 0
jmp 0x1002af7f5
xor esi, esi
test ecx, ecx
jns 0x1002af4d9
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x1002af4d9
mov r14d, esi
mov r11d, esi
not r11d
xor esi, esi
xor ebx, ebx
jmp 0x1002af4e3
mov rax, qword [rsp + 0x78]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1002af7e9
jmp 0x1002af917
mov rbx, r12
lea r14, [0x100000000]
mov rsi, r14
mov r13, qword [rsp + 0x80]
mov rax, qword [0x1003f4900]
sub rbx, r13
sub rsi, rax
jne 0x1002af82c
test rbx, rbx
je 0x1002af904
lea r15, [0x100000000]
xor edi, edi
mov r11, r13
sub r11, r12
sub r12d, r14d
add ebp, r12d
mov rcx, qword [0x1000016e8]
lea r8d, [rcx - 1]
test r8d, r8d
js 0x1002af881
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x16ec]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x1002af877
lea r8d, [rax - 1]
jmp 0x1002af87c
jbe 0x1002af886
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002af851
movsxd r10, edi
jmp 0x1002af8fd
movsxd r10, eax
jmp 0x1002af8fd
mov edx, dword [r15 + r10*4 + 0x16ec]
mov eax, edx
and eax, 0xfffffff
cmp eax, ebp
jae 0x1002af904
mov edi, edx
mov r8, rdx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r14
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x1002af8d8
sub edi, 1
je 0x1002af8d3
cmp edi, 1
jne 0x1002af8de
mov r9, rsi
jmp 0x1002af8de
mov r9, rbx
jmp 0x1002af8de
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002af8ee
cmp edx, 1
jne 0x1002af8f9
add qword [r8 + r11], r9
jmp 0x1002af8f2
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x1002af88b
mov eax, dword [0x1002f3aa4]
mov eax, 0x98d2d4c3
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret