Function at 0x1002dc648
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 [0x100404bb0]
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 [0x100015964]
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 [0x100015964]
xor r15d, r15d
mov r10d, dword [0x10028bf00]
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
cmp eax, r15d
je 0x1002dc795
mov r8, r15
mov rax, r15
mov edi, dword [0x10028bf00]
dec edi
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x1002dc74e
mov rcx, qword [0x1003fe198]
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 0x1002dc71f
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1002dc789
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x1002dca3c
lea rax, [rdx + 1]
xor edx, edx
mov ecx, dword [0x10028bf00]
div rcx
cmp r8, r10
jb 0x1002dc758
mov rbx, r15
cmp rbx, r15
jne 0x1002dc8c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, r15
mov r14d, eax
mov rax, r15
mov rcx, qword [0x100405548]
mov r8, rcx
inc rdi
cmp rcx, r15
mov r9, rcx
je 0x1002dc7ef
mov rcx, qword [0x1003fe198]
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 0x1002dc7c0
mov qword [0x1003fe198], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov r8d, 0x3000
shl rcx, 0x10
add rcx, qword [0x10041cd78]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, r15
mov rbx, rax
je 0x1002dc85c
lea r9, [0x100363da0]
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 0x1002dc871
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 0x1002dc7a1
mov rbx, r15
cmp rbx, 0x10000
jb 0x1002dc87f
test bl, 3
je 0x1002dc8a5
cmp rbx, r15
je 0x1002dc8a2
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 0x1002dc6e3
mov rcx, rsi
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x58639947
mov esi, ebp
add qword [r12], 9
mov rax, r15
lea r14, [0x100000000]
mov r8d, dword [0x100015964]
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 0x1002dc947
mov rcx, qword [0x1003fe198]
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 0x1002dc918
mov qword [0x1003fe198], 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, 0xc9dca62d
lea rcx, [rsp + 0x88]
mov dil, r15b
mov rdx, qword [r13 + rbp]
mov qword [rsp + 0x88], rdx
mov eax, 0x519c23d6
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 [0x10014dad0]
sub rcx, rax
mov qword [rsp + 0x58], r15
mov r15d, 4
mov qword [rsp + 0x48], rcx
jne 0x1002dca53
xor r10d, r10d
test r9, r9
je 0x1002dcd88
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 0x1002dc9d4
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], r8d
jmp 0x1002dcd88
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x1002dc78c
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 0x1002dcac1
mov eax, dword [r8]
cmp rax, r10
jae 0x1002dcac6
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x1002dcab2
xor esi, esi
cmp r8, rdx
je 0x1002dcb05
mov eax, dword [r8]
cmp rax, r10
jne 0x1002dcb05
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002dcb00
lea r9, [r8 + 8]
movzx eax, word [r9]
and eax, 0xfff
cmp rax, rbx
jae 0x1002dcb00
inc rsi
add r9, 2
cmp rsi, rcx
jne 0x1002dcae6
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 0x1002dccee
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002dccee
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x1002dcb5c
add r8, rdi
cmp r8, rdx
je 0x1002dccee
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002dccee
xor esi, esi
jmp 0x1002dcb30
mov eax, dword [r8]
cmp rax, rcx
jne 0x1002dcb78
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r14
jae 0x1002dccee
mov rax, rsi
inc rsi
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x1002dcb1b
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 0x1002dcc18
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 0x1002dcbaf
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 0x1002dcc34
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1002dcc39
mov edx, 2
mov r11, rbp
neg r11
sub edx, 2
je 0x1002dcc5f
cmp edx, 1
je 0x1002dcc4f
or r11, 0xffffffffffffffff
jmp 0x1002dcc67
add rax, r11
mov r11d, 8
mov qword [rsp + 0x60], rax
jmp 0x1002dcc67
add dword [rsp + 0x60], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x1002dccd7
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 0x1002dcc6e
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 0x1002dcb1b
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 0x1002dcd7f
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 0x1002dcd16
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 0x1002dcd8a
mov eax, 0xfcd4cfb
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 0x1002dd2aa
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 0x1002dce2c
lea r9d, [rbx + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x1002dce03
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1002dce0b
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r14d
jl 0x1002dcdf0
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 0x1002dcf7d
mov rcx, qword [rsp + 0x48]
cmp r9d, r15d
jge 0x1002dcf63
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1002dcf70
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x1002dcf51
mov qword [rsp + 0x48], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x1002dd292
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 0x1002dd1d4
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 0x1002dcff4
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 0x1002dd2d5
call fcn.10000228c
mov r11, qword [rsp + 0xa0]
lea r14, [0x10006d7ac]
mov qword [r11 + 0x10], r14
and r12, 0xfffffffffffffff8
mov r9d, 0xffff
mov r10, rax
mov rcx, qword [0x1003fe198]
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 0x1002dd225
mov qword [0x1003fe198], 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 0x1002dd2cb
xor ebx, ebx
test ecx, ecx
jns 0x1002dcf97
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002dcf97
mov dword [rsp + 0x68], esi
mov r14d, esi
xor esi, esi
not r14d
jmp 0x1002dcfa6
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1002dd2bb
jmp 0x1002dd3ec
mov r14, qword [rsp + 0x78]
mov rbx, rbp
lea r15, [0x100000000]
sub rbx, r14
mov rax, qword [0x10014dad0]
mov rsi, r15
sub rsi, rax
jne 0x1002dd2ff
test rbx, rbx
je 0x1002dd3d9
mov r11, r14
xor edi, edi
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
lea r12d, [r13 + rbp]
test r8d, r8d
lea r13, [0x100000000]
js 0x1002dd356
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r13 + rdx*4 + 0x19a2c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1002dd34c
lea r8d, [rax - 1]
jmp 0x1002dd351
jbe 0x1002dd35b
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002dd326
movsxd r10, edi
jmp 0x1002dd3d2
movsxd r10, eax
jmp 0x1002dd3d2
mov edx, dword [r13 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1002dd3d9
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 0x1002dd3ae
sub edi, 1
je 0x1002dd3a9
cmp edi, 1
jne 0x1002dd3b4
mov r9, rsi
jmp 0x1002dd3b4
mov r9, rbx
jmp 0x1002dd3b4
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002dd3c4
cmp edx, 1
jne 0x1002dd3cf
add qword [r8 + r11], r9
jmp 0x1002dd3c8
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1002dd360
mov eax, dword [0x100015964]
mov eax, 0x30b95e45
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x10], r14
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret