Function at 0x1002d01a0
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 ebp, 0xfffffff
lea r13, [rcx + 0x18]
mov qword [rsp + 0x78], rdx
mov r15, qword [r13]
mov qword [rsp + 0x98], rcx
mov rcx, rax
mov r12d, dword [r15 + 1]
mov edx, dword [r15 + 5]
mov qword [rsp + 0xa0], r13
lea r14, [0x100000000]
and rdx, rbp
shr r12, 1
lea rsi, [rax + rdx - 1]
xor edx, edx
mov rax, rsi
and r12, rbp
add r12, r14
div rcx
lea r11, [0x100000000]
mov eax, dword [0x1002f3aa4]
sub rsi, rdx
mov qword [rsp + 0x88], r12
mov eax, dword [0x1002f3aa4]
mov r10d, dword [0x10005e244]
mov eax, dword [0x10005e244]
test eax, eax
je 0x1002d02e0
xor r8d, r8d
mov edi, dword [0x10005e244]
xor eax, eax
add edi, 0xffffffff
add rdi, 1
mov r9, rdi
je 0x1002d0299
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x1002d026d
mov qword [0x100495210], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1002d02d5
mov ecx, 0xffffc428
mov eax, 0x3bd7
add r8, 1
lock cmpxchg dword [r11 + rdx*4 + 0x478cb0], ecx
je 0x1002d054d
mov ecx, dword [0x10005e244]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1002d02a3
xor ebx, ebx
test rbx, rbx
jne 0x1002d0409
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
mov rcx, qword [0x10047b438]
mov r8, rcx
mov r9, rcx
add rdi, 1
xor eax, eax
test rcx, rcx
je 0x1002d0335
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x1002d0309
mov qword [0x100495210], rcx
xor edx, edx
mov r9d, 0x40
div r8
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 0x1002d03a0
lea r9, [0x1003c433c]
and qword [rsp + 0x28], 0
mov rdx, rax
mov r8d, esi
mov rcx, rax
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1002d03b4
xor edx, edx
mov rcx, rbx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1002d02ea
xor ebx, ebx
cmp rbx, 0x10000
jb 0x1002d03c2
test bl, 3
je 0x1002d03e7
test rbx, rbx
je 0x1002d03e5
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, 0x8000
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]
test rbx, rbx
lea r11, [0x100000000]
je 0x1002d0234
mov rcx, rsi
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x1f0c098
mov ebp, 0xfffffff
add qword [r13], 9
mov esi, r12d
mov r15d, dword [r15 + 5]
mov edi, dword [0x1002f3aa4]
and r15, rbp
sub esi, r14d
mov qword [rsp + 0x90], r15
mov dword [rsp + 0x58], esi
xor eax, eax
sub rdi, r15
add rdi, 1
mov r8, rdi
je 0x1002d0478
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r8, 0x10
jne 0x1002d044c
mov qword [0x100495210], rcx
xor edx, edx
mov ecx, esi
div rdi
add rbx, rdx
mov qword [rsp + 0x80], rbx
mov r8, rbx
mov rdx, r15
mov eax, 0x5b25d9d1
lea rcx, [rsp + 0x70]
xor dil, dil
mov rdx, qword [r12 + r15]
mov qword [rsp + 0x70], rdx
mov eax, 0x5c22b8f1
mov r9d, dword [rsp + 0x74]
mov rcx, r14
mov r10, qword [rsp + 0x70]
mov rax, qword [0x1003f4900]
and qword [rsp + 0x48], 0
and r10, rbp
and r9, rbp
add r10, r14
sub rcx, rax
mov qword [rsp + 0x40], rcx
mov ebp, 4
jne 0x1002d0564
xor r8d, r8d
test r9, r9
je 0x1002d084d
mov edx, dword [rsp + 0x48]
mov r11d, 0x83010f63
mov ecx, dword [rsp + 0x4c]
movzx eax, byte [r10 + r8]
add r8, 1
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 0x1002d04fb
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], edx
jmp 0x1002d084d
mov ecx, dword [0x1002f3aa4]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x425000]
jmp 0x1002d02d7
mov rbx, 0xfffffffffffff000
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r14 + 0xb0]
mov ecx, dword [rcx + r14 + 0xb4]
add r8, r14
lea rax, [r10 + r9]
mov qword [rsp + 0x50], rax
mov eax, r10d
sub eax, r14d
mov esi, eax
mov r11d, eax
add rax, r9
mov r14, rax
and r11, rbx
and r14, rbx
sub rsi, r11
sub rax, r14
add rcx, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x68], rax
jmp 0x1002d05c9
mov eax, dword [r8]
cmp rax, r11
jae 0x1002d05ce
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1002d05ba
xor ebx, ebx
cmp r8, rcx
je 0x1002d0608
mov eax, dword [r8]
cmp rax, r11
jne 0x1002d0608
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002d0603
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, rsi
jae 0x1002d0603
add rbx, 1
cmp rbx, rcx
jne 0x1002d05ea
mov rcx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x48]
mov r13d, 0x83010f63
mov edx, dword [rsp + 0x4c]
cmp r8, rcx
je 0x1002d07c3
mov eax, dword [r8]
cmp rax, r14
ja 0x1002d07c3
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x1002d065d
add r8, rdi
cmp r8, rcx
je 0x1002d07c3
mov eax, dword [r8]
cmp rax, r14
ja 0x1002d07c3
xor ebx, ebx
jmp 0x1002d0631
mov eax, dword [r8]
cmp rax, r14
jne 0x1002d067b
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x68]
jae 0x1002d07c3
mov rax, rbx
add rbx, 1
test word [r8 + rax*2 + 8], 0xf000
je 0x1002d061c
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 0x1002d0705
mov r15, rax
movzx eax, byte [rdi + r10]
add rdi, 1
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, r13
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x60]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp rdi, r15
jb 0x1002d06b5
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rax, qword [rsi]
shr r11d, 0xc
mov qword [rsp + 0x60], rax
cmp r11d, 3
je 0x1002d0727
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x1002d072d
mov r10d, 2
mov r11, r12
neg r11
sub r10d, 2
je 0x1002d0755
cmp r10d, 1
je 0x1002d0745
or r10, 0xffffffffffffffff
jmp 0x1002d075d
add rax, r11
mov r10d, 8
mov qword [rsp + 0x60], rax
jmp 0x1002d075d
mov r10, rbp
add dword [rsp + 0x60], r11d
xor r11d, r11d
test r10, r10
je 0x1002d07b6
movzx eax, byte [rsp + r11 + 0x60]
add r11, 1
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, r13
mov qword [rsp + 0x40], rax
shr rax, 0x20
mov edx, dword [rsp + 0x40]
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x1002d0765
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rcx, qword [rsp + 0x30]
add r10, rsi
jmp 0x1002d061c
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
xor r8d, r8d
mov dil, r8b
mov r15, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x50]
sub rbx, r10
je 0x1002d0841
mov r11d, 0x83010f63
movzx eax, byte [r10 + r8]
add r8, 1
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 0x1002d07f1
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov esi, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x80]
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 0x1002d084f
mov eax, 0x3dc6523d
mov rax, qword [rsp + 0xa8]
mov r14b, r15b
mov r10, r12
mov r11, rbx
and r14d, 7
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], rbx
je 0x1002d0d79
not esi
xor r8d, r8d
mov dword [rsp + 0x68], r8d
xor ebx, ebx
xor r11d, r11d
mov dword [rsp + 0x50], ebx
test r14d, r14d
jle 0x1002d08e9
lea r9d, [r8 + 0x38]
cmp r11d, ebp
movzx edx, byte [r10]
jge 0x1002d08c2
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1002d08ca
mov ecx, r9d
shl edx, cl
or r8d, edx
add r11d, 1
add r10, 1
sub r9d, 8
cmp r11d, r14d
jl 0x1002d08af
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x68], r8d
mov qword [rsp + 0x30], r10
mov ecx, esi
shr ecx, 4
movzx ebx, ax
movzx r9d, word [rsp + 0xac]
movzx r10d, word [rsp + 0xae]
movzx r11d, word [rsp + 0xaa]
mov edx, r10d
mov ebp, r11d
xor ebp, esi
imul ebp, ebx
xor ebp, ecx
mov ecx, ebx
xor ebp, dword [rsp + 0x58]
xor ecx, ebp
rol ecx, 7
imul edx, ecx
mov ecx, ebp
shr ecx, 0xd
add edx, ecx
mov ecx, r9d
xor esi, edx
mov r8d, esi
sub r8d, eax
mov edx, esi
rol r8d, 8
ror edx, 8
imul ecx, r8d
sub ecx, edx
xor ebp, ecx
mov ecx, ebp
ror ecx, 0xc
mov r8d, r9d
sub ecx, r11d
imul ecx, r9d
xor esi, ecx
mov ecx, dword [rsp + 0xac]
xor ecx, eax
xor ecx, esi
xor ebp, ecx
mov edx, ebp
mov ecx, r10d
xor r8d, ebp
rol r8d, 4
ror edx, 3
imul ecx, r8d
add edx, ecx
mov r8d, eax
xor esi, edx
mov ecx, r9d
mov edx, esi
sub r8d, esi
rol r8d, 0xa
ror edx, 8
imul ecx, r8d
add edx, ecx
xor ebp, edx
mov ecx, ebp
sub ecx, r11d
xor ecx, dword [rsp + 0xac]
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, r9d
shr ecx, 6
imul edx, ebx
sub edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, ebx
xor edx, ebp
rol edx, 3
ror ecx, 0xa
imul edx, r10d
xor ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 3
imul edx, r9d
shr ecx, 1
sub edx, ecx
xor ebp, edx
mov ecx, ebp
xor r10d, ebp
ror ecx, 0xd
imul r10d, r11d
add ecx, r10d
xor r10d, r10d
lea edx, [r10 + 4]
xor esi, ecx
mov ecx, esi
sub ecx, dword [rsp + 0xac]
sub ecx, ebx
xor ecx, dword [rsp + 0x50]
mov ebx, dword [rsp + 0x68]
xor esi, ebx
mov r9d, esi
xor ebp, ecx
mov r8d, ebp
test r14d, r14d
jle 0x1002d0a4f
mov rcx, qword [rsp + 0x40]
cmp r10d, edx
jge 0x1002d0a33
rol r8d, 8
mov byte [rcx], r8b
add rcx, 1
xor dil, r8b
jmp 0x1002d0a41
rol r9d, 8
mov byte [rcx], r9b
add rcx, 1
xor dil, r9b
add r10d, 1
cmp r10d, r14d
jl 0x1002d0a1e
mov qword [rsp + 0x40], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x1002d0d61
sub edx, ecx
shl edx, 3
mov ecx, edx
shr esi, cl
shl esi, cl
mov r14d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x30]
mov r11, qword [rsp + 0x40]
mov rcx, r15
shr rcx, 3
mov qword [rsp + 0x30], rcx
je 0x1002d0cab
mov r13, qword [rsp + 0x30]
movzx edx, word [rsp + 0xaa]
mov ecx, dword [rsp + 0xac]
xor ecx, eax
movzx r12d, word [rsp + 0xac]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x58], ecx
movzx ecx, word [rsp + 0xae]
mov r15d, dword [rsp + 0x58]
mov dword [rsp + 0x68], ecx
movzx ecx, ax
mov dword [rsp + 0x50], ecx
movzx ecx, byte [r10]
shl ecx, 8
movzx r8d, byte [r10 + 4]
shl r8d, 8
movzx r9d, byte [r10 + 1]
add r10, 8
or r9d, ecx
movzx ecx, byte [r10 - 6]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r10 - 5]
shl r9d, 8
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 esi, r8d
mov ecx, esi
xor edx, esi
shr ecx, 4
imul edx, dword [rsp + 0x50]
xor edx, ecx
movzx ecx, word [rsp + 0xae]
xor edx, r9d
xor ebp, edx
mov edx, dword [rsp + 0x50]
xor edx, ebp
rol edx, 7
imul edx, ecx
mov ecx, ebp
shr ecx, 0xd
add edx, ecx
xor esi, edx
mov edx, esi
sub edx, eax
mov ecx, esi
rol edx, 8
ror ecx, 8
imul edx, r12d
sub edx, ecx
xor ebp, edx
mov ecx, ebp
ror ecx, 0xc
movzx edx, word [rsp + 0xaa]
sub ecx, edx
mov edx, r12d
imul ecx, r12d
xor esi, ecx
mov ecx, r15d
xor ecx, esi
xor ebp, ecx
xor edx, ebp
rol edx, 4
mov ecx, ebp
ror ecx, 3
imul edx, dword [rsp + 0x68]
add ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
sub edx, esi
rol edx, 0xa
ror ecx, 8
imul edx, r12d
add ecx, edx
xor ebp, ecx
mov ecx, ebp
movzx edx, word [rsp + 0xaa]
sub ecx, edx
xor ecx, dword [rsp + 0xac]
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, r12d
imul edx, dword [rsp + 0x50]
shr ecx, 6
sub edx, ecx
xor ebp, edx
mov edx, dword [rsp + 0x50]
mov ecx, ebp
xor edx, ebp
rol edx, 3
ror ecx, 0xa
imul edx, dword [rsp + 0x68]
xor ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
xor edx, esi
shr ecx, 1
rol edx, 3
imul edx, r12d
sub edx, ecx
movzx ecx, word [rsp + 0xae]
xor ebp, edx
mov edx, ebp
xor ecx, ebp
ror edx, 0xd
imul ecx, dword [rsp + 0x40]
add edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xaa]
mov ecx, esi
xor esi, ebx
sub ecx, dword [rsp + 0xac]
mov byte [r11 + 7], sil
sub ecx, dword [rsp + 0x50]
mov ebx, r8d
xor ecx, r14d
xor ebp, ecx
xor dil, bpl
mov byte [r11 + 3], bpl
ror ebp, 8
xor dil, sil
mov r14d, r9d
ror esi, 8
mov byte [r11 + 2], bpl
mov byte [r11 + 6], sil
xor dil, bpl
ror ebp, 8
xor dil, sil
ror esi, 8
xor dil, bpl
mov byte [r11 + 1], bpl
ror ebp, 8
xor dil, sil
mov byte [r11 + 5], sil
mov byte [r11], bpl
ror esi, 8
mov cl, sil
mov byte [r11 + 4], sil
add r11, 8
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r13, 1
jne 0x1002d0ac6
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
cmp dil, byte [r15 + r12 + 8]
je 0x1002d0da0
call fcn.1002d3e40
and r13, 0xfffffffffffffff8
mov r9, rax
mov rax, 0xfffffffffffff000
mov r10d, 0xffff
lea rbp, [0x1003e8888]
and r9, rax
lea r8, [r13 + 0xfff]
and r8, rax
xor edi, edi
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], rbp
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rdi, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
shr r10, 0x10
jne 0x1002d0cf8
mov qword [0x100495210], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x98], r9
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], 0
jmp 0x1002d0d96
xor esi, esi
test ecx, ecx
jns 0x1002d0a66
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x1002d0a66
mov ebx, esi
not ebx
mov r14d, esi
xor esi, esi
xor ebp, ebp
jmp 0x1002d0a75
mov rax, qword [rsp + 0x78]
mov qword [r13], rax
add r13, 8
cmp r13, r8
jb 0x1002d0d89
jmp 0x1002d0eba
lea r14, [0x100000000]
mov rbx, r12
mov rsi, r14
mov rbp, qword [rsp + 0x80]
mov rax, qword [0x1003f4900]
sub rbx, rbp
sub rsi, rax
jne 0x1002d0dcd
test rbx, rbx
je 0x1002d0ea7
xor edi, edi
mov rcx, qword [0x1000016e8]
lea r8d, [rcx - 1]
mov r11, rbp
sub r11, r12
sub r12d, r14d
test r8d, r8d
lea r13d, [r15 + r12]
lea r15, [0x100000000]
js 0x1002d0e23
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 0x1002d0e19
lea r8d, [rax - 1]
jmp 0x1002d0e1e
jbe 0x1002d0e28
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002d0df3
movsxd r10, edi
jmp 0x1002d0ea0
movsxd r10, eax
jmp 0x1002d0ea0
mov edx, dword [r15 + r10*4 + 0x16ec]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x1002d0ea7
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 0x1002d0e7b
sub edi, 1
je 0x1002d0e76
cmp edi, 1
jne 0x1002d0e81
mov r9, rsi
jmp 0x1002d0e81
mov r9, rbx
jmp 0x1002d0e81
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002d0e91
cmp edx, 1
jne 0x1002d0e9c
add qword [r8 + r11], r9
jmp 0x1002d0e95
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x1002d0e2d
mov eax, dword [0x1002f3aa4]
mov eax, 0x74750d75
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], rbp
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