Function at 0x1002dc910
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 [0x1003fe1f8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x80], rdx
lea r11, [0x100000000]
lea r12, [rcx + 0x18]
lea rax, [0x100000000]
mov qword [rsp + 0xa0], rcx
mov ecx, 0xfffffff
mov r13, qword [r12]
mov ebp, dword [r13 + 5]
mov edx, dword [r13 + 1]
shr rdx, 2
and rbp, rcx
add rbp, rax
and rdx, rcx
mov qword [rsp + 0x90], r12
mov eax, dword [0x100015b94]
mov rcx, rax
lea rsi, [rax + rdx - 1]
mov qword [rsp + 0xa8], rbp
xor edx, edx
mov rax, rsi
div rcx
sub rsi, rdx
mov eax, dword [0x100015b94]
xor r15d, r15d
mov r10d, dword [0x10028bffc]
mov eax, dword [0x100015b94]
mov eax, dword [0x10028bffc]
cmp eax, r15d
je 0x1002dca5d
mov r8, r15
mov rax, r15
mov edi, dword [0x10028bffc]
dec edi
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x1002dca16
mov rcx, qword [0x1003feeb8]
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 0x1002dc9e7
mov qword [0x1003feeb8], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1002dca51
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x41a130], ecx
je 0x1002dcd04
lea rax, [rdx + 1]
xor edx, edx
mov ecx, dword [0x10028bffc]
div rcx
cmp r8, r10
jb 0x1002dca20
mov rbx, r15
cmp rbx, r15
jne 0x1002dcb90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, r15
mov r14d, eax
mov rax, r15
mov rcx, qword [0x10041aa98]
mov r8, rcx
inc rdi
cmp rcx, r15
mov r9, rcx
je 0x1002dcab7
mov rcx, qword [0x1003feeb8]
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 0x1002dca88
mov qword [0x1003feeb8], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov r8d, 0x3000
shl rcx, 0x10
add rcx, qword [0x10041cce0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, r15
mov rbx, rax
je 0x1002dcb24
lea r9, [0x100363f08]
mov rcx, rax
mov qword [rsp + 0x28], r15
mov rdx, rax
or rcx, 3
mov r8d, esi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x1002dcb39
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 0x1002dca69
mov rbx, r15
cmp rbx, 0x10000
jb 0x1002dcb47
test bl, 3
je 0x1002dcb6d
cmp rbx, r15
je 0x1002dcb6a
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r15
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r15
lea r11, [0x100000000]
je 0x1002dc9ab
mov rcx, rsi
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x9d152761
mov esi, ebp
add qword [r12], 9
mov rax, r15
lea r14, [0x100000000]
mov r8d, dword [0x100015b94]
mov r13d, dword [r13 + 1]
shr r13, 2
and r13d, 0xfffffff
sub r8, r13
mov qword [rsp + 0x98], r13
sub esi, r14d
inc r8
mov rdi, r8
cmp r8, r15
mov dword [rsp + 0x40], esi
je 0x1002dcc0f
mov rcx, qword [0x1003feeb8]
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 0x1002dcbe0
mov qword [0x1003feeb8], rcx
xor edx, edx
mov ecx, esi
div r8
add rbx, rdx
mov rdx, r13
mov qword [rsp + 0x78], rbx
mov r8, rbx
mov eax, 0xe8ac806d
lea rcx, [rsp + 0x88]
mov dil, r15b
mov rdx, qword [r13 + rbp]
mov qword [rsp + 0x88], rdx
mov eax, 0x3a6591ec
mov rcx, r14
mov r9d, dword [rsp + 0x8c]
mov r11, qword [rsp + 0x88]
mov eax, 0xfffffff
and r11, rax
and r9, rax
add r11, r14
mov rax, qword [0x10014d838]
sub rcx, rax
mov qword [rsp + 0x58], r15
mov r15d, 4
mov qword [rsp + 0x48], rcx
jne 0x1002dcd1b
xor r10d, r10d
test r9, r9
je 0x1002dd050
mov eax, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
movzx ecx, byte [r10 + r11]
inc r10
add ecx, 0x7e62aa84
add r8d, ecx
add ecx, eax
mov eax, ecx
imul eax, eax, 0x1f9e
rol eax, 4
ror ecx, 4
xor eax, ecx
imul rax, rax, 0x7e62aa84
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 eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
add r8d, eax
cmp r10, r9
jb 0x1002dcc9c
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], r8d
jmp 0x1002dd050
mov ecx, dword [0x100015b94]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x1002dca54
lea rax, [r11 + r9]
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r14 + 0xb4]
mov r8d, dword [rcx + r14 + 0xb0]
add r8, r14
mov qword [rsp + 0x50], rax
mov eax, r11d
sub eax, r14d
mov r10d, eax
mov ecx, eax
mov rax, 0xfffffffffffff000
lea r14, [rcx + r9]
mov rbx, rcx
mov rcx, r14
and r10, rax
sub rbx, r10
and rcx, rax
mov qword [rsp + 0x38], rcx
sub r14, rcx
add rdx, r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], r14
jmp 0x1002dcd89
mov eax, dword [r8]
cmp rax, r10
jae 0x1002dcd8e
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x1002dcd7a
xor esi, esi
cmp r8, rdx
je 0x1002dcdcd
mov eax, dword [r8]
cmp rax, r10
jne 0x1002dcdcd
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002dcdc8
lea r9, [r8 + 8]
movzx eax, word [r9]
and eax, 0xfff
cmp rax, rbx
jae 0x1002dcdc8
inc rsi
add r9, 2
cmp rsi, rcx
jne 0x1002dcdae
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x5c]
mov r10d, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
lea r13, [0x100000000]
cmp r8, rdx
je 0x1002dcfb6
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002dcfb6
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x1002dce24
add r8, rdi
cmp r8, rdx
je 0x1002dcfb6
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002dcfb6
xor esi, esi
jmp 0x1002dcdf8
mov eax, dword [r8]
cmp rax, rcx
jne 0x1002dce40
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r14
jae 0x1002dcfb6
mov rax, rsi
inc rsi
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x1002dcde3
movzx ebx, word [r8 + rax*2 + 8]
mov r14d, ebx
xor r12d, r12d
and r14d, 0xfff
add r14d, dword [r8]
add r14, r13
mov rax, r14
sub rax, r11
je 0x1002dcee0
mov rdi, rax
movzx ecx, byte [r11 + r12]
inc r12
add ecx, 0x7e62aa84
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x1f9e
rol eax, 4
ror ecx, 4
xor eax, ecx
imul rax, rax, 0x7e62aa84
mov qword [rsp + 0x60], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x60]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r12, rdi
jb 0x1002dce77
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x58], r10d
shr ebx, 0xc
cmp ebx, 3
mov rax, qword [r14]
mov qword [rsp + 0x60], rax
je 0x1002dcefc
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1002dcf01
mov edx, 2
mov r11, rbp
neg r11
sub edx, 2
je 0x1002dcf27
cmp edx, 1
je 0x1002dcf17
or r11, 0xffffffffffffffff
jmp 0x1002dcf2f
add rax, r11
mov r11d, 8
mov qword [rsp + 0x60], rax
jmp 0x1002dcf2f
add dword [rsp + 0x60], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x1002dcf9f
movzx ecx, byte [rsp + rbx + 0x60]
inc rbx
add ecx, 0x7e62aa84
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x1f9e
rol eax, 4
ror ecx, 4
xor eax, ecx
imul rax, rax, 0x7e62aa84
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x48]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp rbx, r11
jb 0x1002dcf36
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x58], r10d
mov rcx, qword [rsp + 0x38]
add r11, r14
mov rdx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
jmp 0x1002dcde3
mov r12, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa8]
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
sub rbx, r11
mov dil, r8b
je 0x1002dd047
movzx ecx, byte [r11 + r8]
inc r8
add ecx, 0x7e62aa84
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x1f9e
rol eax, 4
ror ecx, 4
xor eax, ecx
imul rax, rax, 0x7e62aa84
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r8, rbx
jb 0x1002dcfde
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x58], r10d
mov rbx, qword [rsp + 0x78]
mov esi, dword [rsp + 0x40]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x58]
mov byte [rsp + rcx + 0xaf], al
jb 0x1002dd052
mov eax, 0x47151243
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rbx
mov r11, rbx
mov r10, rbp
xor ebx, ebx
mov qword [rsp + 0x38], rbp
mov r14, r13
and r14d, 7
je 0x1002dd572
mov edx, esi
mov dword [rsp + 0x68], ebx
xor r8d, r8d
xor r11d, r11d
test r14d, r14d
not edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x70], edx
jle 0x1002dd0f4
lea r9d, [rbx + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x1002dd0cb
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1002dd0d3
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r14d
jl 0x1002dd0b8
mov edx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x38], r10
mov esi, dword [rsp + 0xb4]
mov ebx, dword [rsp + 0xb4]
movzx r10d, word [rsp + 0xb4]
xor ebx, eax
mov ecx, eax
movzx r11d, ax
xor ecx, edx
movzx r9d, word [rsp + 0xb2]
xor ebx, edx
sub esi, ecx
movzx r8d, word [rsp + 0xb6]
xor esi, dword [rsp + 0x40]
xor ebx, esi
mov ecx, ebx
mov edx, ebx
shr ecx, 8
xor edx, r11d
imul edx, r10d
add edx, ecx
xor esi, edx
mov ecx, esi
mov edx, dword [rsp + 0xb4]
sub edx, esi
ror edx, 3
ror ecx, 8
imul edx, r9d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, dword [rsp + 0xb4]
xor edx, ebx
ror edx, 6
rol ecx, 5
imul edx, r11d
add ecx, edx
xor esi, ecx
mov ecx, esi
ror ecx, 0xa
sub ecx, r8d
imul ecx, r10d
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, r8d
ror edx, 0xf
imul ecx, r10d
sub ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
shr ecx, 0xb
xor edx, r10d
imul edx, r9d
xor edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
shr ecx, 0xc
xor edx, r9d
rol edx, 4
imul edx, r11d
add edx, ecx
xor esi, edx
lea edx, [rax + rsi]
rol edx, 0xf
mov ecx, esi
ror ecx, 0xe
imul edx, r8d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
sub ecx, eax
sub ecx, r10d
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xd
add ecx, r9d
imul ecx, r11d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r10d
xor ebx, dword [rsp + 0x50]
rol edx, 6
mov r8d, ebx
rol ecx, 0xe
xor r9d, r9d
imul edx, r11d
add ecx, edx
mov edx, dword [rsp + 0x68]
xor ecx, edx
xor esi, ecx
mov edx, esi
test r14d, r14d
jle 0x1002dd245
mov rcx, qword [rsp + 0x48]
cmp r9d, r15d
jge 0x1002dd22b
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1002dd238
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x1002dd219
mov qword [rsp + 0x48], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x1002dd55a
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr ebx, cl
shl ebx, cl
mov r11, qword [rsp + 0x48]
mov r10, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x50]
mov r15, r13
shr r15, 3
test r15, r15
je 0x1002dd49c
mov ecx, dword [rsp + 0xb4]
xor ecx, eax
mov r12d, dword [rsp + 0x68]
movzx r13d, word [rsp + 0xb4]
mov dword [rsp + 0x70], ecx
movzx ecx, word [rsp + 0xb6]
mov ebp, dword [rsp + 0x70]
mov dword [rsp + 0x40], ecx
movzx ecx, word [rsp + 0xb2]
mov dword [rsp + 0x48], ecx
movzx ecx, ax
mov dword [rsp + 0x50], ecx
mov edx, dword [rsp + 0xb4]
movzx ecx, byte [r10]
movzx r9d, byte [r10 + 1]
movzx r8d, byte [r10 + 4]
shl ecx, 8
shl r8d, 8
or r9d, ecx
movzx ecx, byte [r10 + 2]
add r10, 8
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
mov ecx, eax
xor ebx, r8d
xor ecx, ebx
sub edx, ecx
xor edx, r9d
xor esi, edx
xor ebx, esi
xor ebx, ebp
mov edx, ebx
mov ecx, ebx
xor edx, dword [rsp + 0x50]
shr ecx, 8
imul edx, r13d
add edx, ecx
xor esi, edx
mov ecx, esi
mov edx, dword [rsp + 0xb4]
sub edx, esi
ror edx, 3
ror ecx, 8
imul edx, dword [rsp + 0x48]
add ecx, edx
mov edx, dword [rsp + 0xb4]
xor ebx, ecx
mov ecx, ebx
xor edx, ebx
ror edx, 6
rol ecx, 5
imul edx, dword [rsp + 0x50]
add ecx, edx
movzx edx, word [rsp + 0xb6]
xor esi, ecx
mov ecx, esi
ror ecx, 0xa
sub ecx, edx
imul ecx, r13d
xor ebx, ecx
mov ecx, ebx
xor ecx, dword [rsp + 0x40]
mov edx, ebx
ror edx, 0xf
imul ecx, r13d
sub ecx, edx
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xb2]
xor edx, r13d
imul edx, ecx
mov ecx, esi
shr ecx, 0xb
xor edx, ecx
xor ebx, edx
mov edx, ebx
movzx ecx, word [rsp + 0xb2]
xor edx, ecx
rol edx, 4
mov ecx, ebx
imul edx, dword [rsp + 0x50]
shr ecx, 0xc
add edx, ecx
xor esi, edx
lea edx, [rax + rsi]
rol edx, 0xf
mov ecx, esi
ror ecx, 0xe
imul edx, dword [rsp + 0x40]
add ecx, edx
xor ebx, ecx
movzx edx, word [rsp + 0xb2]
mov ecx, ebx
sub ecx, eax
sub ecx, r13d
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xd
add ecx, edx
imul ecx, dword [rsp + 0x50]
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ebx, r14d
xor edx, r13d
mov byte [r11 + 7], bl
mov r14d, r8d
rol edx, 6
rol ecx, 0xe
imul edx, dword [rsp + 0x50]
add ecx, edx
xor ecx, r12d
xor esi, ecx
mov r12d, r9d
xor dil, sil
mov byte [r11 + 3], sil
ror esi, 8
mov byte [r11 + 2], sil
xor dil, bl
ror ebx, 8
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 byte [r11 + 4], bl
mov cl, bl
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r15, 1
jne 0x1002dd2bc
mov r12, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa8]
mov al, byte [r13 + rbp + 8]
xor al, dil
je 0x1002dd59d
call fcn.1000024bc
mov r11, qword [rsp + 0xa0]
lea r14, [0x100059e28]
mov qword [r11 + 0x10], r14
and r12, 0xfffffffffffffff8
mov r9d, 0xffff
mov r10, rax
mov rcx, qword [0x1003feeb8]
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 0x1002dd4ed
mov qword [0x1003feeb8], rcx
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x80]
imul rdx, rdx, 0xffff
mov qword [rax + 0x98], r10
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x80], r9
jmp 0x1002dd593
xor ebx, ebx
test ecx, ecx
jns 0x1002dd25f
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002dd25f
mov dword [rsp + 0x68], esi
mov r14d, esi
xor esi, esi
not r14d
jmp 0x1002dd26e
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1002dd583
jmp 0x1002dd6b4
mov r14, qword [rsp + 0x78]
mov rbx, rbp
lea r15, [0x100000000]
sub rbx, r14
mov rax, qword [0x10014d838]
mov rsi, r15
sub rsi, rax
jne 0x1002dd5c7
test rbx, rbx
je 0x1002dd6a1
mov r11, r14
xor edi, edi
mov rcx, qword [0x1000199f8]
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
lea r12d, [r13 + rbp]
test r8d, r8d
lea r13, [0x100000000]
js 0x1002dd61e
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r13 + rdx*4 + 0x199fc]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1002dd614
lea r8d, [rax - 1]
jmp 0x1002dd619
jbe 0x1002dd623
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002dd5ee
movsxd r10, edi
jmp 0x1002dd69a
movsxd r10, eax
jmp 0x1002dd69a
mov edx, dword [r13 + r10*4 + 0x199fc]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1002dd6a1
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 0x1002dd676
sub edi, 1
je 0x1002dd671
cmp edi, 1
jne 0x1002dd67c
mov r9, rsi
jmp 0x1002dd67c
mov r9, rbx
jmp 0x1002dd67c
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002dd68c
cmp edx, 1
jne 0x1002dd697
add qword [r8 + r11], r9
jmp 0x1002dd690
add dword [r8 + r11], r9d
mov rcx, qword [0x1000199f8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1002dd628
mov eax, dword [0x100015b94]
mov eax, 0x6d42077e
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x10], r14
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1002d7828
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret