Function at 0x1002bb8f4
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, 0xb0
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rax, [0x100000000]
mov qword [rsp + 0x70], rdx
lea r11, [0x100000000]
lea r12, [rcx + 0x18]
mov qword [rsp + 0x90], rcx
mov ecx, 0xfffffff
mov r14, qword [r12]
mov ebp, dword [r14 + 1]
mov edx, dword [r14 + 5]
and rdx, rcx
mov qword [rsp + 0x80], r12
shr rbp, 1
and rbp, rcx
add rbp, rax
mov eax, dword [0x1002f8888]
lea rsi, [rax + rdx - 1]
mov rcx, rax
mov qword [rsp + 0x98], rbp
xor edx, edx
mov rax, rsi
div rcx
sub rsi, rdx
xor r15d, r15d
mov eax, dword [0x1002f8888]
mov r10d, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
mov eax, dword [0x1002a02b4]
cmp eax, r15d
je 0x1002bba3d
mov edi, dword [0x1002a02b4]
dec edi
mov rax, r15
mov r8, r15
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x1002bb9f6
mov rcx, qword [0x1004c43a0]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp r9, r15
jne 0x1002bb9c7
mov qword [0x1004c43a0], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1002bba31
inc r8
mov eax, 0x3bd7
mov ecx, 0xffffc428
lock cmpxchg dword [r11 + rdx*4 + 0x4c5a60], ecx
je 0x1002bbcc1
lea rax, [rdx + 1]
mov ecx, dword [0x1002a02b4]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1002bba00
mov rbx, r15
cmp rbx, r15
jne 0x1002bbb70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
mov rax, r15
mov rcx, qword [0x1004c4380]
mov r9, rcx
mov r8, rcx
inc rdi
cmp rcx, r15
je 0x1002bba97
mov rcx, qword [0x1004c43a0]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp r9, r15
jne 0x1002bba68
mov qword [0x1004c43a0], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov rcx, rdx
mov r8d, 0x3000
mov rdx, rsi
shl rcx, 0x10
add rcx, qword [0x1004c4308]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, r15
mov rbx, rax
je 0x1002bbb04
lea r9, [0x100435424]
mov r8d, esi
mov rdx, rax
mov rcx, rax
or rcx, 3
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x1002bbb19
mov rcx, rbx
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1002bba49
mov rbx, r15
cmp rbx, 0x10000
jb 0x1002bbb27
test bl, 3
je 0x1002bbb4d
cmp rbx, r15
je 0x1002bbb4a
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r15
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r15
lea r11, [0x100000000]
je 0x1002bb98b
mov rcx, rsi
mov rdi, rbx
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0xc4a8dc8a
mov rax, r15
add qword [r12], 9
mov r14d, dword [r14 + 5]
mov esi, ebp
mov r8d, dword [0x1002f8888]
and r14d, 0xfffffff
lea r13, [0x100000000]
sub r8, r14
mov qword [rsp + 0x88], r14
inc r8
mov rdi, r8
sub esi, r13d
cmp r8, r15
mov dword [rsp + 0x38], esi
je 0x1002bbbeb
mov rcx, qword [0x1004c43a0]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp rdi, r15
jne 0x1002bbbbc
mov qword [0x1004c43a0], rcx
xor edx, edx
mov ecx, esi
div r8
add rbx, rdx
mov qword [rsp + 0x78], rbx
mov rdx, r14
mov r8, rbx
mov eax, 0xec586ab4
lea rcx, [rsp + 0x68]
mov rdx, qword [r14 + rbp]
mov dil, r15b
mov qword [rsp + 0x68], rdx
mov eax, 0xcfa4d36e
mov rcx, r13
mov eax, 0xfffffff
mov r10, qword [rsp + 0x68]
and r10, rax
mov r9d, dword [rsp + 0x6c]
and r9, rax
add r10, r13
mov rax, qword [0x1000487b8]
mov qword [rsp + 0x40], r15
mov r15d, 4
sub rcx, rax
mov qword [rsp + 0x50], rcx
jne 0x1002bbcd8
xor r8d, r8d
test r9, r9
je 0x1002bbfc1
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
mov r11d, 0x83010f63
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x7cfef09d
add edx, eax
add eax, ecx
mov ecx, eax
imul ecx, ecx, 0x2cfc
rol ecx, 3
ror eax, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
imul rax, r11
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add ecx, eax
add edx, ecx
cmp r8, r9
jb 0x1002bbc70
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], edx
jmp 0x1002bbfc1
mov ecx, dword [0x1002f8888]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x454000]
jmp 0x1002bba34
mov rbx, 0xfffffffffffff000
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r13 + 0xb0]
mov ecx, dword [rcx + r13 + 0xb4]
add r8, r13
mov qword [rsp + 0x48], rax
mov eax, r10d
sub eax, r13d
mov r11d, eax
mov esi, eax
add rax, r9
mov r13, rax
and r11, rbx
and r13, rbx
sub rsi, r11
sub rax, r13
add rcx, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x60], rax
jmp 0x1002bbd3d
mov eax, dword [r8]
cmp rax, r11
jae 0x1002bbd42
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1002bbd2e
xor ebx, ebx
cmp r8, rcx
je 0x1002bbd80
mov eax, dword [r8]
cmp rax, r11
jne 0x1002bbd80
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002bbd7b
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x1002bbd7b
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x1002bbd62
mov rcx, qword [rsp + 0x30]
mov r12d, 0x83010f63
mov rbp, qword [rsp + 0x50]
mov edx, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x40]
cmp r8, rcx
je 0x1002bbf3b
mov eax, dword [r8]
cmp rax, r13
ja 0x1002bbf3b
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x1002bbdd5
add r8, rdi
cmp r8, rcx
je 0x1002bbf3b
mov eax, dword [r8]
cmp rax, r13
ja 0x1002bbf3b
xor ebx, ebx
jmp 0x1002bbda9
mov eax, dword [r8]
cmp rax, r13
jne 0x1002bbdf3
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x1002bbf3b
mov edi, 0xf000
mov rax, rbx
inc rbx
test word [r8 + rax*2 + 8], di
je 0x1002bbd94
xor edi, edi
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x1002bbe7e
mov r14, rax
movzx eax, byte [r10 + rdi]
inc rdi
sub eax, 0x7cfef09d
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2cfc
rol ecx, 3
ror eax, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
imul rax, r12
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov edx, dword [rsp + 0x58]
add edx, eax
add r9d, edx
cmp rdi, r14
jb 0x1002bbe2f
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
shr r11d, 0xc
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
cmp r11d, 3
je 0x1002bbea0
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x1002bbea6
mov r10d, 2
mov r11, rbp
neg r11
sub r10d, 2
je 0x1002bbece
cmp r10d, 1
je 0x1002bbebe
or r10, 0xffffffffffffffff
jmp 0x1002bbed6
mov r10d, 8
add rax, r11
mov qword [rsp + 0x58], rax
jmp 0x1002bbed6
add dword [rsp + 0x58], r11d
mov r10, r15
xor r11d, r11d
test r10, r10
je 0x1002bbf2e
movzx eax, byte [rsp + r11 + 0x58]
inc r11
sub eax, 0x7cfef09d
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2cfc
rol ecx, 3
ror eax, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
imul rax, r12
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x50]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x1002bbede
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
add r10, rsi
mov rcx, qword [rsp + 0x30]
jmp 0x1002bbd94
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x48]
xor r8d, r8d
mov dil, r8b
mov r14, qword [rsp + 0x88]
sub rbx, r10
mov r12, qword [rsp + 0x80]
je 0x1002bbfb8
mov r11d, 0x83010f63
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x7cfef09d
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2cfc
rol ecx, 3
ror eax, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
imul rax, r11
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, rbx
jb 0x1002bbf69
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov esi, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x78]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x40]
mov byte [rsp + rcx + 0x9f], al
jb 0x1002bbfc3
mov eax, 0xac88b8f8
mov r11, rbx
mov r10, rbp
mov rax, qword [rsp + 0xa0]
mov r13, r14
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rbx
and r13d, 7
je 0x1002bc4cc
mov ebx, esi
xor r8d, r8d
not ebx
xor esi, esi
xor r11d, r11d
test r13d, r13d
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x48], r8d
jle 0x1002bc05d
lea r9d, [r8 + 0x38]
movzx edx, byte [r10]
cmp r11d, r15d
jge 0x1002bc038
lea ecx, [r9 - 0x20]
shl edx, cl
or esi, edx
jmp 0x1002bc040
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x1002bc025
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], r10
movzx r10d, word [rsp + 0xa2]
movzx r11d, ax
mov esi, ebx
movzx r9d, word [rsp + 0xa6]
movzx r8d, word [rsp + 0xa4]
mov ecx, ebx
shr ecx, 4
xor esi, r10d
imul esi, r11d
xor esi, ecx
xor esi, dword [rsp + 0x38]
mov edx, esi
xor edx, r11d
mov ecx, esi
shr ecx, 0xd
rol edx, 7
imul edx, r9d
add edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
sub edx, eax
rol edx, 8
ror ecx, 8
imul edx, r8d
sub edx, ecx
xor esi, edx
mov ecx, esi
ror ecx, 0xc
sub ecx, r10d
imul ecx, r8d
xor ebx, ecx
mov ecx, dword [rsp + 0xa4]
xor ecx, eax
xor ecx, ebx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor edx, r8d
rol edx, 4
ror ecx, 3
imul edx, r9d
add ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
rol edx, 0xa
mov ecx, ebx
ror ecx, 8
imul edx, r8d
add ecx, edx
xor esi, ecx
mov ecx, esi
sub ecx, r10d
xor ecx, dword [rsp + 0xa4]
xor ebx, ecx
mov edx, ebx
sub edx, r8d
mov ecx, ebx
shr ecx, 6
imul edx, r11d
sub edx, ecx
xor esi, edx
mov edx, esi
xor edx, r11d
rol edx, 3
mov ecx, esi
ror ecx, 0xa
imul edx, r9d
xor ecx, edx
xor ebx, ecx
mov edx, eax
xor edx, ebx
mov ecx, ebx
rol edx, 3
shr ecx, 1
imul edx, r8d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
ror edx, 0xd
xor ecx, r9d
xor r9d, r9d
imul ecx, r10d
add edx, ecx
xor ebx, edx
mov ecx, ebx
xor ebx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x60]
sub ecx, dword [rsp + 0xa4]
mov r8d, ebx
sub ecx, r11d
xor ecx, edx
xor esi, ecx
test r13d, r13d
mov edx, esi
jle 0x1002bc1ad
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x1002bc193
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1002bc1a0
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x1002bc181
mov qword [rsp + 0x30], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1002bc4b4
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr ebx, cl
shl ebx, cl
mov r10, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x48]
mov r11, qword [rsp + 0x30]
mov r15, r14
shr r15, 3
test r15, r15
je 0x1002bc3ff
movzx ebp, word [rsp + 0xa4]
mov ecx, dword [rsp + 0xa4]
xor ecx, eax
mov r12d, dword [rsp + 0x60]
mov dword [rsp + 0x50], ecx
mov r14d, dword [rsp + 0x50]
movzx ecx, word [rsp + 0xa6]
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x30], ecx
movzx ecx, ax
mov dword [rsp + 0x48], ecx
movzx r8d, byte [r10 + 4]
movzx r9d, byte [r10 + 1]
movzx ecx, byte [r10]
shl ecx, 8
shl r8d, 8
add r10, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 6]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 5]
or r9d, ecx
movzx ecx, byte [r10 - 3]
or r8d, ecx
movzx ecx, byte [r10 - 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r10 - 1]
shl r8d, 8
or r8d, ecx
xor ebx, r8d
movzx ecx, word [rsp + 0xa2]
mov edx, ebx
xor edx, ecx
mov ecx, ebx
shr ecx, 4
imul edx, dword [rsp + 0x48]
xor edx, ecx
xor edx, r9d
xor esi, edx
mov edx, esi
movzx ecx, word [rsp + 0xa6]
xor edx, dword [rsp + 0x48]
rol edx, 7
imul edx, ecx
mov ecx, esi
shr ecx, 0xd
add edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
sub edx, eax
rol edx, 8
ror ecx, 8
imul edx, ebp
sub edx, ecx
xor esi, edx
mov ecx, esi
ror ecx, 0xc
movzx edx, word [rsp + 0xa2]
sub ecx, edx
imul ecx, ebp
xor ebx, ecx
xor esi, ebx
xor esi, r14d
mov ecx, esi
mov edx, esi
xor edx, ebp
rol edx, 4
ror ecx, 3
imul edx, dword [rsp + 0x38]
add ecx, edx
mov edx, eax
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 0xa
ror ecx, 8
imul edx, ebp
add ecx, edx
movzx edx, word [rsp + 0xa2]
xor esi, ecx
mov ecx, esi
sub ecx, edx
xor ecx, dword [rsp + 0xa4]
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
sub edx, ebp
imul edx, dword [rsp + 0x48]
shr ecx, 6
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, dword [rsp + 0x48]
rol edx, 3
ror ecx, 0xa
imul edx, dword [rsp + 0x38]
xor ecx, edx
mov edx, eax
xor ebx, ecx
xor edx, ebx
mov ecx, ebx
shr ecx, 1
rol edx, 3
imul edx, ebp
sub edx, ecx
xor esi, edx
mov ecx, esi
xor ecx, dword [rsp + 0x38]
mov edx, esi
ror edx, 0xd
imul ecx, dword [rsp + 0x30]
add edx, ecx
xor ebx, edx
mov ecx, ebx
xor ebx, r13d
sub ecx, dword [rsp + 0xa4]
mov r13d, r8d
mov byte [r11 + 7], bl
sub ecx, dword [rsp + 0x48]
xor ecx, r12d
mov r12d, r9d
xor esi, ecx
mov byte [r11 + 3], sil
xor dil, sil
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r11 + 2], sil
mov byte [r11 + 6], bl
xor dil, sil
ror esi, 8
mov byte [r11 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r11 + 5], bl
ror ebx, 8
mov byte [r11], sil
mov cl, bl
mov byte [r11 + 4], bl
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r15, 1
jne 0x1002bc224
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x88]
cmp dil, byte [r14 + rbp + 8]
je 0x1002bc4f6
call fcn.100058248
mov r9d, 0xffff
lea r13, [0x1001094ec]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [0x1004c43a0]
and r12, 0xfffffffffffffff8
mov r10, rax
lea r8, [r12 + 0xfff]
mov rax, 0xfffffffffffff000
and r10, rax
and r8, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r9, r9
jne 0x1002bc44d
mov qword [0x1004c43a0], rcx
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x70]
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0x98], r10
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], r9
jmp 0x1002bc4ec
xor ebx, ebx
test ecx, ecx
jns 0x1002bc1c7
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002bc1c7
mov dword [rsp + 0x60], esi
mov r13d, esi
xor ebx, ebx
not r13d
xor esi, esi
jmp 0x1002bc1d6
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1002bc4df
jmp 0x1002bc60c
mov rax, qword [0x1000487b8]
mov rbx, rbp
mov r13, qword [rsp + 0x78]
lea r15, [0x100000000]
sub rbx, r13
mov rsi, r15
sub rsi, rax
jne 0x1002bc520
test rbx, rbx
je 0x1002bc5f9
xor edi, edi
mov rcx, qword [0x1001d1e58]
lea r8d, [rcx - 1]
mov r11, r13
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
js 0x1002bc576
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x1d1e5c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1002bc56c
lea r8d, [rax - 1]
jmp 0x1002bc571
jbe 0x1002bc57b
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002bc546
movsxd r10, edi
jmp 0x1002bc5f2
movsxd r10, eax
jmp 0x1002bc5f2
mov edx, dword [r14 + r10*4 + 0x1d1e5c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1002bc5f9
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r15
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x1002bc5ce
sub edi, 1
je 0x1002bc5c9
cmp edi, 1
jne 0x1002bc5d4
mov r9, rsi
jmp 0x1002bc5d4
mov r9, rbx
jmp 0x1002bc5d4
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002bc5e4
cmp edx, 1
jne 0x1002bc5ef
add qword [r8 + r11], r9
jmp 0x1002bc5e8
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1002bc580
mov eax, dword [0x1002f8888]
mov eax, 0x867f3dd8
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret