Function at 0x1002482e4
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 + 0xb0], rax
lea r12, [rcx + 0x18]
lea r11, [0x100000000]
lea rax, [0x100000000]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x90], rcx
mov r14, qword [r12]
mov ebp, dword [r14 + 1]
mov ecx, 0xfffffff
mov edx, dword [r14 + 5]
mov qword [rsp + 0x98], r12
and rdx, rcx
shr rbp, 1
and rbp, rcx
add rbp, rax
mov eax, dword [0x100015964]
mov rcx, rax
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
mov qword [rsp + 0x88], rbp
mov eax, dword [0x100015964]
sub rsi, rdx
xor r15d, r15d
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
mov r10d, dword [0x10028bf00]
cmp eax, r15d
je 0x10024842d
mov r8, r15
mov rax, r15
mov edi, dword [0x10028bf00]
dec edi
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x1002483e6
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 0x1002483b7
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x100248421
mov eax, 0xef0b
inc r8
mov ecx, 0xffff10f4
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x1002486bb
lea rax, [rdx + 1]
mov ecx, dword [0x10028bf00]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1002483f0
mov rbx, r15
cmp rbx, r15
jne 0x100248560
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, r15
mov r13d, eax
inc rdi
mov rax, r15
mov rcx, qword [0x100405548]
mov r9, rcx
cmp rcx, r15
mov r8, rcx
je 0x100248487
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 0x100248458
mov qword [0x1003fe198], rcx
xor edx, edx
mov r9d, 0x40
div r8
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
cmp rax, r15
je 0x1002484f4
mov r8d, esi
mov rcx, rax
mov qword [rsp + 0x28], r15
lea r9, [0x100363da0]
mov qword [rsp + 0x20], r15
or rcx, 3
mov rdx, rax
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x100248509
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x100248439
mov rbx, r15
cmp rbx, 0x10000
jb 0x100248517
test bl, 3
je 0x10024853d
cmp rbx, r15
je 0x10024853a
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov rcx, rbx
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r15
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r15
lea r11, [0x100000000]
je 0x10024837b
xor eax, eax
mov rcx, rsi
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x4ecb9451
mov rax, r15
lea r13, [0x100000000]
add qword [r12], 9
mov r14d, dword [r14 + 5]
mov r8d, dword [0x100015964]
and r14d, 0xfffffff
sub r8, r14
inc r8
mov qword [rsp + 0xa0], r14
mov rdi, r8
mov esi, ebp
sub esi, r13d
mov dword [rsp + 0x30], esi
cmp r8, r15
je 0x1002485db
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 0x1002485ac
mov qword [0x1003fe198], rcx
mov ecx, esi
xor edx, edx
div r8
add rbx, rdx
mov r8, rbx
mov qword [rsp + 0x68], rbx
mov rdx, r14
mov eax, 0xa34810c8
mov rdx, qword [r14 + rbp]
mov dil, r15b
mov qword [rsp + 0x70], rdx
lea rcx, [rsp + 0x70]
mov eax, 0xbacdcd9f
mov r8d, dword [rsp + 0x74]
mov eax, 0xfffffff
mov r11, qword [rsp + 0x70]
mov rcx, r13
and r11, rax
and r8, rax
mov rax, qword [0x10014dad0]
mov qword [rsp + 0x38], r15
mov r15d, 4
add r11, r13
sub rcx, rax
mov qword [rsp + 0x48], rcx
jne 0x1002486d2
xor r10d, r10d
test r8, r8
je 0x1002489fc
mov ecx, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x38]
movzx eax, byte [r11 + r10]
inc r10
add eax, 0x72d985af
add r9d, eax
add eax, ecx
imul eax, eax, 0x72d985af
ror eax, 9
imul rax, rax, 0x72d985af
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
add r9d, ecx
cmp r10, r8
jb 0x10024865b
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x38], r9d
jmp 0x1002489fc
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x100248424
lea rax, [r11 + r8]
movsxd rcx, dword [0x10000003c]
mov r9d, dword [rcx + r13 + 0xb0]
add r9, r13
mov edx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x80], rax
mov eax, r11d
sub eax, r13d
mov ecx, eax
mov rbx, rcx
mov r10d, eax
lea r13, [rcx + r8]
mov rcx, r13
mov rax, 0xfffffffffffff000
and r10, rax
sub rbx, r10
and rcx, rax
mov qword [rsp + 0x40], rcx
sub r13, rcx
add rdx, r9
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x50], r13
jmp 0x100248743
mov eax, dword [r9]
cmp rax, r10
jae 0x100248748
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rdx
jne 0x100248734
xor esi, esi
cmp r9, rdx
je 0x100248787
mov eax, dword [r9]
cmp rax, r10
jne 0x100248787
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x100248782
lea r8, [r9 + 8]
movzx eax, word [r8]
and eax, 0xfff
cmp rax, rbx
jae 0x100248782
inc rsi
add r8, 2
cmp rsi, rcx
jne 0x100248768
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
lea rbp, [0x100000000]
mov r14, qword [rsp + 0x48]
mov r10d, dword [rsp + 0x38]
cmp r9, rdx
je 0x100248961
mov eax, dword [r9]
cmp rax, rcx
ja 0x100248961
mov edi, dword [r9 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x1002487de
add r9, rdi
cmp r9, rdx
je 0x100248961
mov eax, dword [r9]
cmp rax, rcx
ja 0x100248961
xor esi, esi
jmp 0x1002487b2
mov eax, dword [r9]
cmp rax, rcx
jne 0x1002487fa
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100248961
mov rax, rsi
inc rsi
mov edi, 0xf000
test word [r9 + rax*2 + 8], di
je 0x10024879d
xor r12d, r12d
movzx ebx, word [r9 + rax*2 + 8]
mov r13d, ebx
and r13d, 0xfff
add r13d, dword [r9]
add r13, rbp
mov rax, r13
sub rax, r11
je 0x100248892
mov rdi, rax
movzx eax, byte [r11 + r12]
inc r12
add eax, 0x72d985af
add r10d, eax
add eax, r8d
imul eax, eax, 0x72d985af
ror eax, 9
imul rax, rax, 0x72d985af
mov qword [rsp + 0x58], rax
mov ecx, dword [rsp + 0x58]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp r12, rdi
jb 0x100248831
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
shr ebx, 0xc
mov rax, qword [r13]
mov qword [rsp + 0x58], rax
cmp ebx, 3
je 0x1002488af
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1002488b4
mov edx, 2
mov r11, r14
neg r11
sub edx, 2
je 0x1002488da
cmp edx, 1
je 0x1002488ca
or r11, 0xffffffffffffffff
jmp 0x1002488e2
add rax, r11
mov r11d, 8
mov qword [rsp + 0x58], rax
jmp 0x1002488e2
add dword [rsp + 0x58], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x10024894a
movzx eax, byte [rsp + rbx + 0x58]
inc rbx
add eax, 0x72d985af
add r10d, eax
add eax, r8d
imul eax, eax, 0x72d985af
ror eax, 9
imul rax, rax, 0x72d985af
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 r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp rbx, r11
jb 0x1002488e9
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov rcx, qword [rsp + 0x40]
add r11, r13
mov rdx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x50]
jmp 0x10024879d
mov r12, qword [rsp + 0x98]
xor r9d, r9d
mov rbx, qword [rsp + 0x80]
sub rbx, r11
mov rbp, qword [rsp + 0x88]
mov dil, r9b
mov r14, qword [rsp + 0xa0]
je 0x1002489f3
movzx eax, byte [r11 + r9]
inc r9
add eax, 0x72d985af
add r10d, eax
add eax, r8d
imul eax, eax, 0x72d985af
ror eax, 9
imul rax, rax, 0x72d985af
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0x80]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp r9, rbx
jb 0x10024898c
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x38]
cmp rcx, 8
mov byte [rsp + rcx + 0xa7], al
jb 0x1002489fe
mov eax, 0x750ff335
mov r13, r14
mov rax, qword [rsp + 0xa8]
mov r11, rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rbx
and r13d, 7
mov r10, rbp
je 0x100248f0e
mov ebx, esi
xor r8d, r8d
xor esi, esi
not ebx
mov dword [rsp + 0x60], esi
xor r11d, r11d
test r13d, r13d
mov dword [rsp + 0x50], r8d
jle 0x100248a98
lea r9d, [r8 + 0x38]
movzx edx, byte [r10]
cmp r11d, r15d
jge 0x100248a73
lea ecx, [r9 - 0x20]
shl edx, cl
or esi, edx
jmp 0x100248a7b
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x100248a60
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x40], r10
mov ecx, eax
mov esi, ebx
movzx r9d, word [rsp + 0xaa]
movzx r11d, ax
movzx r8d, word [rsp + 0xae]
mov edx, dword [rsp + 0xac]
movzx r10d, word [rsp + 0xac]
sub esi, dword [rsp + 0xac]
sub esi, r11d
xor esi, dword [rsp + 0x30]
xor edx, esi
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
sub ecx, r10d
xor ecx, eax
xor esi, ecx
mov edx, esi
mov ecx, esi
xor edx, r8d
rol edx, 7
rol ecx, 0xf
imul edx, r9d
add ecx, edx
xor ebx, ecx
mov edx, dword [rsp + 0xac]
mov ecx, ebx
sub edx, ebx
rol edx, 6
ror ecx, 9
imul edx, r11d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, r11d
rol edx, 5
ror ecx, 1
imul edx, r8d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
ror ecx, 2
sub ecx, r10d
imul ecx, r8d
xor esi, ecx
mov ecx, esi
mov edx, esi
xor edx, r10d
shr ecx, 0xc
imul edx, r9d
xor edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0xac]
mov ecx, ebx
xor edx, ebx
ror edx, 6
rol ecx, 4
imul edx, r11d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
ror edx, 3
xor ecx, r11d
imul ecx, r8d
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, eax
rol edx, 4
ror ecx, 0xc
imul edx, r10d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
sub edx, r10d
imul edx, r9d
shr ecx, 0xe
sub edx, ecx
xor r9d, r9d
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xac]
sub edx, ebx
xor ebx, dword [rsp + 0x50]
mov r8d, ebx
ror edx, 0xc
rol ecx, 7
imul edx, r11d
add ecx, edx
mov edx, dword [rsp + 0x60]
xor ecx, edx
xor esi, ecx
mov edx, esi
test r13d, r13d
jle 0x100248bf3
mov rcx, qword [rsp + 0x48]
cmp r9d, r15d
jge 0x100248bd9
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100248be6
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x100248bc7
mov qword [rsp + 0x48], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x100248ef6
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr ebx, cl
shl ebx, cl
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
mov r13d, dword [rsp + 0x50]
mov r15, r14
shr r15, 3
test r15, r15
je 0x100248e3e
movzx ebp, word [rsp + 0xac]
mov r12d, dword [rsp + 0x60]
movzx r14d, ax
movzx ecx, word [rsp + 0xae]
mov dword [rsp + 0x30], ecx
movzx ecx, word [rsp + 0xaa]
mov dword [rsp + 0x50], ecx
movzx ecx, byte [r10]
movzx r8d, byte [r10 + 4]
mov edx, dword [rsp + 0xac]
shl ecx, 8
movzx r9d, byte [r10 + 1]
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
shl r8d, 8
movzx ecx, byte [r10 - 2]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r10 - 1]
or r8d, ecx
xor ebx, r8d
mov ecx, ebx
sub ecx, dword [rsp + 0xac]
sub ecx, r14d
xor ecx, r9d
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
sub ecx, ebp
xor ecx, eax
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xae]
xor edx, ecx
rol edx, 7
mov ecx, esi
rol ecx, 0xf
imul edx, dword [rsp + 0x50]
add ecx, edx
mov edx, dword [rsp + 0xac]
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 6
ror ecx, 9
imul edx, r14d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, r14d
rol edx, 5
ror ecx, 1
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor ebx, edx
mov ecx, ebx
ror ecx, 2
sub ecx, ebp
movzx edx, word [rsp + 0xae]
imul ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0xaa]
mov edx, esi
xor edx, ebp
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xac]
xor edx, ebx
ror edx, 6
rol ecx, 4
imul edx, r14d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, r14d
ror edx, 3
imul ecx, dword [rsp + 0x30]
add edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
sub edx, eax
rol edx, 4
ror ecx, 0xc
imul edx, ebp
add ecx, edx
xor esi, ecx
mov edx, esi
sub edx, ebp
movzx ecx, word [rsp + 0xaa]
imul edx, ecx
mov ecx, esi
shr ecx, 0xe
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xac]
sub edx, ebx
xor ebx, r13d
ror edx, 0xc
rol ecx, 7
mov byte [r11 + 7], bl
mov r13d, r8d
imul edx, r14d
add ecx, edx
xor ecx, r12d
mov r12d, r9d
xor esi, ecx
mov byte [r11 + 3], sil
xor dil, sil
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r11 + 2], sil
mov byte [r11 + 6], bl
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r11 + 1], sil
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r11 + 5], bl
mov byte [r11], sil
xor dil, bl
ror ebx, 8
mov cl, bl
mov byte [r11 + 4], bl
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r15, 1
jne 0x100248c55
mov r12, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x88]
mov al, byte [r14 + rbp + 8]
xor al, dil
je 0x100248f38
call fcn.10000228c
and r12, 0xfffffffffffffff8
mov r10, rax
lea r13, [0x10006d7ac]
mov r9d, 0xffff
mov rax, 0xfffffffffffff000
and r10, rax
lea r8, [r12 + 0xfff]
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [0x1003fe198]
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 0x100248e8f
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1003fe198], rcx
mov rax, qword [rsp + 0x78]
imul rdx, rdx, 0xffff
mov qword [rax + 0x98], r10
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r9
jmp 0x100248f2e
xor ebx, ebx
test ecx, ecx
jns 0x100248c0d
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x100248c0d
mov dword [rsp + 0x60], esi
xor ebx, ebx
mov r13d, esi
xor esi, esi
not r13d
jmp 0x100248c1c
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x100248f21
jmp 0x10024904e
mov rbx, rbp
lea r15, [0x100000000]
mov rax, qword [0x10014dad0]
mov r13, qword [rsp + 0x68]
sub rbx, r13
mov rsi, r15
sub rsi, rax
jne 0x100248f62
test rbx, rbx
je 0x10024903b
xor edi, edi
mov r11, r13
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
js 0x100248fb8
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x19a2c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x100248fae
lea r8d, [rax - 1]
jmp 0x100248fb3
jbe 0x100248fbd
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100248f88
movsxd r10, edi
jmp 0x100249034
movsxd r10, eax
jmp 0x100249034
mov edx, dword [r14 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x10024903b
mov edi, edx
mov r8, rdx
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 0x100249010
sub edi, 1
je 0x10024900b
cmp edi, 1
jne 0x100249016
mov r9, rsi
jmp 0x100249016
mov r9, rbx
jmp 0x100249016
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100249026
cmp edx, 1
jne 0x100249031
add qword [r8 + r11], r9
jmp 0x10024902a
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100248fc2
mov eax, dword [0x100015964]
mov eax, 0x991b00bf
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb0]
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