Function at 0x1002a14b4
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 [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, 0xfffffff
mov r13d, 0x8000
mov r15d, 0x269ec3
mov r12, qword [rcx + 0x10]
lea r11, [0x100000000]
mov eax, dword [0x100015964]
mov qword [rsp + 0x68], rdx
mov edx, dword [r12 + 1]
mov qword [rsp + 0x90], rcx
mov rcx, rax
shr rdx, 2
and rdx, r14
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
mov eax, dword [0x100015964]
sub rsi, rdx
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
mov r10d, dword [0x10028bf00]
test eax, eax
je 0x1002a15da
mov edi, dword [0x10028bf00]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x1002a1594
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x1002a1569
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1002a15cf
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x1002a184f
lea rax, [rdx + 1]
mov ecx, dword [0x10028bf00]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1002a159e
xor ebx, ebx
test rbx, rbx
jne 0x1002a16fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
mov rcx, qword [0x100405548]
mov r9, rcx
inc rdi
mov r8, rcx
xor eax, eax
test rcx, rcx
je 0x1002a162d
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x1002a1602
mov qword [0x1003fe198], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov rcx, rdx
mov r8d, 0x3000
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x10041cd78]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1002a1695
mov rdx, rax
and qword [rsp + 0x28], 0
mov r8d, esi
lea r9, [0x100363da0]
and qword [rsp + 0x20], 0
mov rcx, rax
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1002a16a9
mov rcx, rbx
xor edx, edx
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1002a15e4
xor ebx, ebx
cmp rbx, 0x10000
jb 0x1002a16b7
test bl, 3
je 0x1002a16d9
test rbx, rbx
je 0x1002a16d7
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, r13d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [0x100000000]
test rbx, rbx
je 0x1002a1532
xor eax, eax
mov rcx, rsi
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x9054d0e6
lea r13, [0x100000000]
mov r8d, dword [0x100015964]
mov edx, dword [r12 + 5]
and edx, 7
lea rbp, [rdx + r12 + 9]
mov r12d, dword [r12 + 1]
xor eax, eax
mov qword [rsp + 0x80], rbp
shr r12, 2
and r12, r14
mov esi, ebp
sub esi, r13d
sub r8, r12
inc r8
mov rdi, r8
mov qword [rsp + 0x88], r12
mov dword [rsp + 0x30], esi
je 0x1002a177f
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test rdi, rdi
jne 0x1002a1754
mov qword [0x1003fe198], rcx
xor edx, edx
mov ecx, esi
div r8
add rbx, rdx
mov qword [rsp + 0x60], rbx
mov r8, rbx
mov rdx, r12
mov eax, 0xfa5f66aa
xor dil, dil
lea rcx, [rsp + 0x70]
mov rdx, qword [r12 + rbp]
mov qword [rsp + 0x70], rdx
mov eax, 0xa97d69ea
mov r11, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x74]
mov rax, qword [0x10014dad0]
mov rcx, r13
and qword [rsp + 0x40], 0
and r11, r14
and r9, r14
mov r14d, 4
add r11, r13
sub rcx, rax
mov qword [rsp + 0x78], rcx
jne 0x1002a1866
xor r8d, r8d
test r9, r9
je 0x1002a1b4c
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
movzx eax, byte [r8 + r11]
inc r8
sub eax, 0x1279a1d2
add edx, eax
add eax, ecx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
add edx, ecx
cmp r8, r9
jb 0x1002a17fa
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], edx
jmp 0x1002a1b4c
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x1002a15d1
lea rax, [r11 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r13 + 0xb0]
mov ecx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x38], rax
mov eax, r11d
add r8, r13
sub eax, r13d
mov r10d, eax
mov r13d, eax
add rax, r9
mov r15, rax
and r10, 0xfffffffffffff000
and r15, 0xfffffffffffff000
sub r13, r10
sub rax, r15
add rcx, r8
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
jmp 0x1002a18cd
mov eax, dword [r8]
cmp rax, r10
jae 0x1002a18d2
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1002a18be
xor ebx, ebx
cmp r8, rcx
je 0x1002a1910
mov eax, dword [r8]
cmp rax, r10
jne 0x1002a1910
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002a190b
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r13
jae 0x1002a190b
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x1002a18f2
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x40]
mov r12, qword [rsp + 0x78]
lea rbp, [0x100000000]
cmp r8, rcx
je 0x1002a1ad0
mov eax, dword [r8]
cmp rax, r15
ja 0x1002a1ad0
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x1002a1966
add r8, rdi
cmp r8, rcx
je 0x1002a1ad0
mov eax, dword [r8]
cmp rax, r15
ja 0x1002a1ad0
xor ebx, ebx
jmp 0x1002a193a
mov eax, dword [r8]
cmp rax, r15
jne 0x1002a1984
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x50]
jae 0x1002a1ad0
mov edi, 0xf000
mov rax, rbx
inc rbx
test word [r8 + rax*2 + 8], di
je 0x1002a1925
movzx r10d, word [r8 + rax*2 + 8]
mov r13d, r10d
xor esi, esi
and r13d, 0xfff
add r13d, dword [r8]
add r13, rbp
mov rax, r13
sub rax, r11
je 0x1002a1a0d
mov rdi, rax
movzx eax, byte [r11 + rsi]
inc rsi
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp rsi, rdi
jb 0x1002a19ba
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rax, qword [r13]
shr r10d, 0xc
mov qword [rsp + 0x58], rax
cmp r10d, 3
je 0x1002a1a30
sub r10d, 0xa
neg r10d
sbb r11d, r11d
add r11d, 3
jmp 0x1002a1a36
mov r11d, 2
mov r10, r12
neg r10
sub r11d, 2
je 0x1002a1a5e
cmp r11d, 1
je 0x1002a1a4e
or r10, 0xffffffffffffffff
jmp 0x1002a1a66
add rax, r10
mov r10d, 8
mov qword [rsp + 0x58], rax
jmp 0x1002a1a66
add dword [rsp + 0x58], r10d
mov r10, r14
xor r11d, r11d
test r10, r10
je 0x1002a1ac2
movzx eax, byte [rsp + r11 + 0x58]
inc r11
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp r11, r10
jb 0x1002a1a6e
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rcx, qword [rsp + 0x48]
lea r11, [r10 + r13]
jmp 0x1002a1925
mov r10, qword [rsp + 0x38]
mov esi, dword [rsp + 0x30]
xor r8d, r8d
mov r12, qword [rsp + 0x88]
sub r10, r11
mov rbp, qword [rsp + 0x80]
mov dil, r8b
je 0x1002a1b47
movzx eax, byte [r8 + r11]
inc r8
sub eax, 0x1279a1d2
add r9d, eax
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x2a75
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x2a75
rol eax, 0xe
ror ecx, 0xe
xor eax, ecx
mov edx, eax
imul edx, edx, 0x2a75
rol edx, 0xe
ror eax, 0xe
xor edx, eax
add r9d, edx
cmp r8, r10
jb 0x1002a1af4
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rbx, qword [rsp + 0x60]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x40]
mov byte [rsp + rcx + 0x97], al
cmp rcx, 8
jb 0x1002a1b4e
mov eax, 0xe194d3da
mov r15, rbp
mov r10, rbx
mov rax, qword [rsp + 0x98]
mov r13, r12
mov qword [rsp + 0x48], rbx
and r13d, 7
je 0x1002a2036
xor r8d, r8d
xor r11d, r11d
xor r10d, r10d
mov ebx, esi
mov dword [rsp + 0x50], r8d
test r13d, r13d
not ebx
mov dword [rsp + 0x38], r11d
jle 0x1002a1be2
lea r9d, [r8 + 0x38]
cmp r10d, r14d
movzx edx, byte [r15]
jge 0x1002a1bc1
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1002a1bc9
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r13d
jl 0x1002a1bad
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x50], r8d
movzx r10d, word [rsp + 0x9e]
movzx r9d, ax
mov edx, esi
mov ecx, esi
mov r8d, dword [rsp + 0x9c]
movzx r11d, r8w
xor edx, r11d
rol edx, 3
rol ecx, 8
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov esi, ebx
mov ecx, ebx
shr ecx, 7
xor esi, r10d
imul esi, r11d
add esi, ecx
xor esi, dword [rsp + 0x30]
lea edx, [r8 + rsi]
mov ecx, esi
ror edx, 1
rol ecx, 7
movzx r8d, word [rsp + 0x9a]
imul edx, r8d
add ecx, edx
mov edx, dword [rsp + 0x9c]
xor ebx, ecx
mov ecx, ebx
ror ecx, 8
sub ecx, r9d
imul ecx, r11d
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
rol edx, 3
mov ecx, ebx
ror ecx, 0xf
imul edx, r11d
xor ecx, edx
xor esi, ecx
mov ecx, esi
sub ecx, dword [rsp + 0x9c]
sub ecx, r8d
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
ror edx, 9
xor ecx, r10d
imul ecx, r9d
xor edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
xor edx, r8d
rol edx, 3
rol ecx, 0xb
imul edx, r10d
xor ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor edx, r9d
shr ecx, 7
imul edx, r11d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, r10d
shr ecx, 9
rol edx, 6
imul edx, r8d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
xor edx, r11d
rol edx, 4
mov r11d, dword [rsp + 0x50]
shr ecx, 7
xor ebx, r11d
imul edx, r9d
add edx, ecx
xor r9d, r9d
xor edx, dword [rsp + 0x38]
xor esi, edx
test r13d, r13d
mov ecx, esi
mov edx, ebx
jle 0x1002a1d2b
mov r8, qword [rsp + 0x48]
cmp r9d, r14d
jge 0x1002a1d12
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x1002a1d1e
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x1002a1cff
mov qword [rsp + 0x48], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1002a201e
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr ebx, cl
shl ebx, cl
mov r10, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x38]
mov r13, r12
shr r13, 3
test r13, r13
je 0x1002a1f63
mov r12d, dword [rsp + 0x9c]
movzx ecx, word [rsp + 0x9e]
mov dword [rsp + 0x50], ecx
neg ecx
mov dword [rsp + 0x78], ecx
mov ebp, dword [rsp + 0x78]
movzx ecx, word [rsp + 0x9a]
mov dword [rsp + 0x48], ecx
movzx ecx, r12w
mov dword [rsp + 0x38], ecx
movzx ecx, ax
mov dword [rsp + 0x30], ecx
movzx r8d, byte [r15 + 4]
movzx ecx, byte [r15]
shl ecx, 8
movzx r9d, byte [r15 + 1]
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
xor esi, r9d
movzx ecx, byte [r15 - 2]
mov edx, esi
shl r8d, 8
xor edx, dword [rsp + 0x38]
or r8d, ecx
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
mov ecx, esi
rol edx, 3
rol ecx, 8
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor edx, r8d
xor ebx, edx
mov ecx, ebx
mov edx, ebx
xor edx, dword [rsp + 0x50]
shr ecx, 7
imul edx, dword [rsp + 0x38]
add edx, ecx
xor esi, edx
mov ecx, esi
lea edx, [r12 + rsi]
ror edx, 1
rol ecx, 7
imul edx, dword [rsp + 0x48]
add ecx, edx
mov edx, r12d
xor ebx, ecx
mov ecx, ebx
ror ecx, 8
sub ecx, dword [rsp + 0x30]
imul ecx, dword [rsp + 0x38]
xor esi, ecx
mov ecx, eax
xor edx, esi
sub ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
rol edx, 3
mov ecx, ebx
ror ecx, 0xf
imul edx, dword [rsp + 0x38]
xor ecx, edx
movzx edx, word [rsp + 0x9a]
xor esi, ecx
mov ecx, esi
sub ecx, r12d
sub ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x50]
ror edx, 9
imul ecx, dword [rsp + 0x30]
xor edx, ecx
movzx ecx, word [rsp + 0x9a]
xor esi, edx
mov edx, esi
xor edx, ecx
rol edx, 3
mov ecx, esi
rol ecx, 0xb
imul edx, dword [rsp + 0x50]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, dword [rsp + 0x30]
mov ecx, ebx
shr ecx, 7
imul edx, dword [rsp + 0x38]
xor edx, ecx
movzx ecx, word [rsp + 0x9a]
xor esi, edx
lea edx, [rsi + rbp]
rol edx, 6
imul edx, ecx
mov ecx, esi
shr ecx, 9
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
xor ebx, r11d
xor edx, dword [rsp + 0x38]
mov r11d, r8d
mov byte [r10 + 7], bl
shr ecx, 7
rol edx, 4
imul edx, dword [rsp + 0x30]
add edx, ecx
xor edx, r14d
xor esi, edx
mov r14d, r9d
mov byte [r10 + 3], sil
xor dil, sil
ror esi, 8
mov byte [r10 + 2], sil
xor dil, bl
ror ebx, 8
mov byte [r10 + 6], bl
xor dil, sil
ror esi, 8
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 5], bl
mov byte [r10], sil
ror ebx, 8
mov byte [r10 + 4], bl
mov cl, bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x1002a1d98
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov al, byte [r12 + rbp + 8]
xor al, dil
je 0x1002a205e
call fcn.10000228c
mov r10d, 0xffff
lea r13, [0x10006d7ac]
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 0x18]
mov r11, rax
mov rax, 0xfffffffffffff000
mov qword [rbx + 0x10], r13
mov rcx, qword [0x1003fe198]
and r8, 0xfffffffffffffff8
and r11, rax
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r10, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r10, r10
jne 0x1002a1fb7
mov qword [0x1003fe198], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x68]
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
mov qword [rax + 0x98], r11
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], r10
jmp 0x1002a2054
xor ebx, ebx
test ecx, ecx
jns 0x1002a1d45
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002a1d45
xor ebx, ebx
mov r14d, esi
mov r11d, esi
xor esi, esi
not r11d
jmp 0x1002a1d4f
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1002a2048
jmp 0x1002a2173
mov rbx, rbp
mov r13, qword [rsp + 0x60]
lea r14, [0x100000000]
sub rbx, r13
mov rsi, r14
mov rax, qword [0x10014dad0]
sub rsi, rax
jne 0x1002a2088
test rbx, rbx
je 0x1002a2160
mov rcx, qword [0x100019a28]
lea r15, [0x100000000]
mov r11, r13
lea r8d, [rcx - 1]
xor edi, edi
sub r11, rbp
sub ebp, r14d
add r12d, ebp
test r8d, r8d
js 0x1002a20dd
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x19a2c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1002a20d3
lea r8d, [rax - 1]
jmp 0x1002a20d8
jbe 0x1002a20e2
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002a20ad
movsxd r10, edi
jmp 0x1002a2159
movsxd r10, eax
jmp 0x1002a2159
mov edx, dword [r15 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1002a2160
mov r8, rdx
mov edi, edx
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 0x1002a2135
sub edi, 1
je 0x1002a2130
cmp edi, 1
jne 0x1002a213b
mov r9, rsi
jmp 0x1002a213b
mov r9, rbx
jmp 0x1002a213b
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002a214b
cmp edx, 1
jne 0x1002a2156
add qword [r8 + r11], r9
jmp 0x1002a214f
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1002a20e7
mov eax, dword [0x100015964]
mov eax, 0x32f7b706
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret