Function at 0x1000667d4
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 + 0xa8], rax
mov eax, dword [0x100015964]
mov r12d, 0x8000
mov r13, qword [rcx + 0x10]
mov r15d, 0x269ec3
mov qword [rsp + 0x80], rdx
mov r14d, 0xfffffff
mov edx, dword [r13 + 1]
mov qword [rsp + 0x90], rcx
mov rcx, rax
lea r11, [0x100000000]
shr rdx, 1
and rdx, r14
lea rsi, [rax + rdx - 1]
xor edx, edx
mov rax, rsi
div rcx
mov eax, dword [0x100015964]
sub rsi, rdx
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
test eax, eax
mov r10d, dword [0x10028bf00]
je 0x1000668fb
xor r8d, r8d
xor eax, eax
mov edi, dword [0x10028bf00]
dec edi
inc rdi
mov r9, rdi
je 0x1000668b5
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 0x10006688a
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1000668f0
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x100066b99
lea rax, [rdx + 1]
mov ecx, dword [0x10028bf00]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1000668bf
xor ebx, ebx
test rbx, rbx
jne 0x100066a1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
inc rdi
mov rcx, qword [0x100405548]
mov r9, rcx
xor eax, eax
mov r8, rcx
test rcx, rcx
je 0x10006694e
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 0x100066923
mov qword [0x1003fe198], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x10041cd78]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1000669b6
mov rcx, rax
mov rdx, rax
lea r9, [0x100363da0]
mov r8d, esi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1000669ca
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x100066905
xor ebx, ebx
cmp rbx, 0x10000
jb 0x1000669d8
test bl, 3
je 0x1000669fa
test rbx, rbx
je 0x1000669f8
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, r12d
xor edx, edx
mov rcx, rbx
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 0x100066853
mov rdi, rbx
xor eax, eax
mov rcx, rsi
rep stosb byte [rdi], al
mov eax, 0x873fe5ae
mov edx, dword [r13 + 5]
and edx, 7
xor eax, eax
mov r8d, dword [0x100015964]
lea r12, [0x100000000]
lea rbp, [rdx + r13 + 9]
mov esi, ebp
mov r13d, dword [r13 + 1]
shr r13, 1
and r13, r14
mov qword [rsp + 0x98], rbp
sub esi, r12d
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x38], esi
sub r8, r13
inc r8
mov rdi, r8
je 0x100066a9d
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 0x100066a72
mov qword [0x1003fe198], rcx
xor edx, edx
mov ecx, esi
div r8
add rbx, rdx
mov qword [rsp + 0x70], rbx
mov rdx, r13
mov r8, rbx
mov eax, 0xecc5a499
xor dil, dil
mov rdx, qword [r13 + rbp]
mov qword [rsp + 0x78], rdx
lea rcx, [rsp + 0x78]
mov eax, 0xa7d1b2ba
mov rcx, r12
mov r9d, dword [rsp + 0x7c]
mov r11, qword [rsp + 0x78]
mov r15d, 4
mov rax, qword [0x10014dad0]
and qword [rsp + 0x40], 0
and r11, r14
and r9, r14
add r11, r12
sub rcx, rax
mov qword [rsp + 0x30], rcx
jne 0x100066bb0
xor r10d, r10d
test r9, r9
je 0x100066f04
mov r8d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
mov ebx, 0xb0d52e05
movzx eax, byte [r11 + r10]
inc r10
sub eax, 0x4f2ad1fb
add r8d, eax
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
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
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add ecx, eax
add r8d, ecx
cmp r10, r9
jb 0x100066b1f
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], r8d
jmp 0x100066eff
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x1000668f2
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r12 + 0xb0]
lea rax, [r11 + r9]
add r8, r12
mov ecx, dword [rcx + r12 + 0xb4]
mov qword [rsp + 0x68], rax
mov eax, r11d
sub eax, r12d
lea r12, [rax + r9]
mov r14, r12
mov ebx, eax
mov r10d, eax
and r10, 0xfffffffffffff000
sub rbx, r10
and r14, 0xfffffffffffff000
sub r12, r14
add rcx, r8
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], r12
jmp 0x100066c17
mov eax, dword [r8]
cmp rax, r10
jae 0x100066c1c
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x100066c08
xor esi, esi
cmp r8, rcx
je 0x100066c5a
mov eax, dword [r8]
cmp rax, r10
jne 0x100066c5a
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100066c55
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x100066c55
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100066c3c
mov rcx, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x44]
mov ebx, 0xb0d52e05
mov r13, qword [rsp + 0x30]
cmp r8, rcx
je 0x100066e66
mov eax, dword [r8]
cmp rax, r14
ja 0x100066e66
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x100066cae
add r8, rdi
cmp r8, rcx
je 0x100066e66
mov eax, dword [r8]
cmp rax, r14
ja 0x100066e66
xor esi, esi
jmp 0x100066c82
mov eax, dword [r8]
cmp rax, r14
jne 0x100066cca
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r12
jae 0x100066e66
mov rax, rsi
mov edi, 0xf000
inc rsi
test word [r8 + rax*2 + 8], di
je 0x100066c6d
movzx r10d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r12d, r10d
xor edi, edi
and r12d, 0xfff
add r12d, dword [r8]
add r12, rax
mov rax, r12
sub rax, r11
je 0x100066d7c
mov rbp, rax
movzx eax, byte [r11 + rdi]
inc rdi
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
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
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov edx, dword [rsp + 0x30]
add edx, eax
add r9d, edx
cmp rdi, rbp
jb 0x100066d07
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rax, qword [r12]
mov qword [rsp + 0x60], rax
shr r10d, 0xc
cmp r10d, 3
je 0x100066d9f
sub r10d, 0xa
neg r10d
sbb r11d, r11d
add r11d, 3
jmp 0x100066da5
mov r11d, 2
mov r10, r13
neg r10
sub r11d, 2
je 0x100066dcd
cmp r11d, 1
je 0x100066dbd
or r10, 0xffffffffffffffff
jmp 0x100066dd5
add rax, r10
mov qword [rsp + 0x60], rax
mov r10d, 8
jmp 0x100066dd5
add dword [rsp + 0x60], r10d
mov r10, r15
xor r11d, r11d
test r10, r10
je 0x100066e53
movzx eax, byte [rsp + r11 + 0x60]
inc r11
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
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
imul rax, rbx
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov edx, dword [rsp + 0x30]
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x100066ddd
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
lea r11, [r10 + r12]
mov rcx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
jmp 0x100066c6d
mov rbp, qword [rsp + 0x98]
xor r8d, r8d
mov r10, qword [rsp + 0x68]
sub r10, r11
mov dil, r8b
mov r13, qword [rsp + 0x88]
je 0x100066efb
movzx eax, byte [r8 + r11]
inc r8
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
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
imul rax, rbx
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, r10
jb 0x100066e86
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov esi, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
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 0x100066f06
mov eax, 0xf178a6e4
mov r12d, esi
xor r11d, r11d
mov r14, r13
mov rax, qword [rsp + 0xa0]
mov r10, rbp
not r12d
mov qword [rsp + 0x48], rbp
and r14d, 7
mov qword [rsp + 0x30], rbx
je 0x100067433
xor r8d, r8d
xor ebx, ebx
test r14d, r14d
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x50], ebx
jle 0x100066f9f
lea r9d, [r11 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x100066f7a
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100066f82
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r14d
jl 0x100066f67
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x48], r10
movzx r9d, word [rsp + 0xa2]
mov edx, esi
movzx r11d, word [rsp + 0xa6]
mov r10d, dword [rsp + 0xa4]
movzx ebx, r10w
mov ecx, r11d
mov r8d, ebx
xor r8d, esi
rol r8d, 4
ror edx, 8
imul ecx, r8d
sub ecx, edx
xor r12d, ecx
mov edx, r12d
mov ecx, ebx
mov esi, r12d
sub edx, eax
rol edx, 8
rol esi, 3
imul ecx, edx
add esi, ecx
mov ecx, r9d
xor esi, dword [rsp + 0x38]
mov edx, esi
lea r8d, [r10 + rsi]
ror r8d, 4
ror edx, 0xf
imul ecx, r8d
mov r8d, r10d
sub ecx, edx
movzx r10d, ax
xor r12d, ecx
mov ecx, r10d
sub r8d, r12d
ror r8d, 2
mov edx, r12d
rol edx, 7
imul ecx, r8d
mov r8d, eax
xor edx, ecx
mov ecx, r11d
xor esi, edx
mov edx, esi
sub r8d, esi
rol r8d, 0xc
ror edx, 4
imul ecx, r8d
mov r8d, dword [rsp + 0xa4]
add edx, ecx
xor r12d, edx
mov edx, eax
xor edx, r12d
mov ecx, r12d
rol edx, 0xb
ror ecx, 8
imul edx, ebx
xor ecx, edx
xor esi, ecx
mov ecx, r10d
xor ecx, esi
mov edx, esi
ror edx, 4
imul ecx, r9d
sub ecx, edx
mov edx, eax
xor r12d, ecx
mov ecx, r12d
sub ecx, r8d
sub ecx, r10d
xor esi, ecx
mov ecx, esi
sub edx, esi
ror edx, 1
ror ecx, 6
imul edx, r11d
sub edx, ecx
xor r12d, edx
mov ecx, r12d
mov edx, r8d
not ecx
ror ecx, 0xe
add ecx, ebx
imul ecx, r11d
xor esi, ecx
mov r11d, r8d
xor r11d, eax
xor r9d, r9d
xor r11d, r12d
xor r11d, esi
xor edx, r11d
mov r12d, dword [rsp + 0x58]
mov ecx, r11d
xor r11d, r12d
mov r8d, r11d
rol edx, 0xf
ror ecx, 8
imul edx, r10d
add ecx, edx
mov edx, dword [rsp + 0x50]
xor ecx, edx
xor esi, ecx
mov edx, esi
test r14d, r14d
jle 0x100067112
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x1000670f8
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100067105
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x1000670e6
mov qword [rsp + 0x30], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x10006741a
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr r11d, cl
shl r11d, cl
mov rbx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x48]
mov r15, r13
shr r15, 3
test r15, r15
je 0x100067359
mov ebp, dword [rsp + 0x50]
mov r14d, dword [rsp + 0xa4]
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x48], ecx
movzx ecx, word [rsp + 0xa6]
mov dword [rsp + 0x58], ecx
movzx edx, r14w
mov ecx, r14d
xor ecx, eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ecx
movzx ecx, ax
mov r13d, dword [rsp + 0x30]
mov dword [rsp + 0x68], 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
movzx ecx, byte [r10 - 6]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 5]
or r9d, ecx
movzx ecx, byte [r10 - 3]
or r8d, ecx
xor esi, r9d
xor edx, esi
shl r8d, 8
movzx ecx, byte [r10 - 2]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r10 - 1]
or r8d, ecx
mov ecx, esi
rol edx, 4
ror ecx, 8
imul edx, dword [rsp + 0x58]
sub edx, ecx
xor edx, r8d
xor r11d, edx
mov edx, r11d
mov ecx, r11d
sub edx, eax
rol edx, 8
rol ecx, 3
imul edx, dword [rsp + 0x38]
add ecx, edx
xor esi, ecx
mov ecx, esi
lea edx, [r14 + rsi]
ror edx, 4
ror ecx, 0xf
imul edx, dword [rsp + 0x48]
sub edx, ecx
xor r11d, edx
mov edx, r14d
mov ecx, r11d
sub edx, r11d
ror edx, 2
rol ecx, 7
imul edx, dword [rsp + 0x68]
xor ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
sub edx, esi
rol edx, 0xc
ror ecx, 4
imul edx, dword [rsp + 0x58]
add ecx, edx
xor r11d, ecx
mov ecx, r11d
mov edx, eax
xor edx, r11d
rol edx, 0xb
ror ecx, 8
imul edx, dword [rsp + 0x38]
xor ecx, edx
xor esi, ecx
mov ecx, dword [rsp + 0x68]
xor ecx, esi
mov edx, esi
ror edx, 4
imul ecx, dword [rsp + 0x48]
sub ecx, edx
xor r11d, ecx
mov ecx, r11d
sub ecx, r14d
sub ecx, dword [rsp + 0x68]
xor esi, ecx
mov ecx, esi
mov edx, eax
sub edx, esi
ror edx, 1
ror ecx, 6
imul edx, dword [rsp + 0x58]
sub edx, ecx
xor r11d, edx
movzx edx, word [rsp + 0xa6]
mov ecx, r11d
xor r11d, r13d
not ecx
ror ecx, 0xe
add ecx, dword [rsp + 0x38]
imul ecx, edx
xor esi, ecx
xor r11d, esi
mov edx, r14d
mov ecx, r11d
xor edx, r11d
xor r11d, r12d
mov r12d, r8d
rol edx, 0xf
mov byte [rbx + 7], r11b
ror ecx, 8
imul edx, dword [rsp + 0x68]
add ecx, edx
mov edx, dword [rsp + 0x38]
xor ecx, ebp
xor esi, ecx
mov byte [rbx + 3], sil
mov ebp, r9d
xor dil, sil
ror esi, 8
mov byte [rbx + 2], sil
xor dil, r11b
ror r11d, 8
mov byte [rbx + 6], r11b
xor dil, sil
ror esi, 8
xor dil, r11b
ror r11d, 8
xor dil, sil
mov byte [rbx + 1], sil
ror esi, 8
mov byte [rbx + 5], r11b
mov byte [rbx], sil
xor dil, r11b
ror r11d, 8
mov byte [rbx + 4], r11b
mov cl, r11b
add rbx, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror r11d, 8
sub r15, 1
jne 0x100067189
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0x88]
mov al, byte [r13 + rbp + 8]
xor al, dil
je 0x100067457
call fcn.10000228c
mov r11, rax
mov rax, 0xfffffffffffff000
mov rbx, qword [rsp + 0x90]
mov r10d, 0xffff
lea r12, [0x10006d7ac]
mov qword [rbx + 0x10], r12
mov rcx, qword [0x1003fe198]
lea r8, [rbx + 0x18]
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
and r11, rax
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 0x1000673ad
movabs rax, 0x8000800080008001
mov qword [0x1003fe198], rcx
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x98], r11
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x80], r10
jmp 0x10006744d
xor r11d, r11d
test ecx, ecx
jns 0x10006712e
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10006712e
mov dword [rsp + 0x50], esi
xor esi, esi
jmp 0x100067138
mov rax, qword [rsp + 0x80]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10006743e
jmp 0x10006756c
mov rbx, rbp
mov r12, qword [rsp + 0x70]
mov rax, qword [0x10014dad0]
lea r14, [0x100000000]
sub rbx, r12
mov rsi, r14
sub rsi, rax
jne 0x100067481
test rbx, rbx
je 0x100067559
mov rcx, qword [0x100019a28]
lea r15, [0x100000000]
xor edi, edi
mov r11, r12
sub r11, rbp
lea r8d, [rcx - 1]
sub ebp, r14d
add r13d, ebp
test r8d, r8d
js 0x1000674d6
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 0x1000674cc
lea r8d, [rax - 1]
jmp 0x1000674d1
jbe 0x1000674db
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1000674a6
movsxd r10, edi
jmp 0x100067552
movsxd r10, eax
jmp 0x100067552
mov edx, dword [r15 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100067559
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 0x10006752e
sub edi, 1
je 0x100067529
cmp edi, 1
jne 0x100067534
mov r9, rsi
jmp 0x100067534
mov r9, rbx
jmp 0x100067534
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100067544
cmp edx, 1
jne 0x10006754f
add qword [r8 + r11], r9
jmp 0x100067548
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1000674e0
mov eax, dword [0x100015964]
mov eax, 0x448b83ac
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r12
mov rcx, qword [rsp + 0xa8]
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