Function at 0x100082474
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, 0xd0
mov rax, qword [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea r12, [rcx + 0x18]
lea r11, [0x100000000]
mov qword [rsp + 0x80], rdx
lea rax, [0x100000000]
mov qword [rsp + 0x98], rcx
mov ecx, 0xfffffff
mov r14, qword [r12]
mov ebp, dword [r14 + 1]
mov edx, dword [r14 + 5]
and rdx, rcx
mov qword [rsp + 0x90], r12
and rbp, rcx
add rbp, rax
mov eax, dword [0x1002f3aa4]
mov qword [rsp + 0xa8], rbp
mov rcx, rax
lea rsi, [rax + rdx - 1]
xor edx, edx
mov rax, rsi
div rcx
sub rsi, rdx
xor r15d, r15d
mov eax, dword [0x1002f3aa4]
mov eax, dword [0x1002f3aa4]
mov r10d, dword [0x10005e244]
mov eax, dword [0x10005e244]
cmp eax, r15d
je 0x1000825bd
mov r8, r15
mov edi, dword [0x10005e244]
add edi, 0xffffffff
add rdi, 1
mov rax, r15
cmp rdi, r15
mov r9, rdi
je 0x100082575
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 0x100082549
mov qword [0x100495210], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1000825b1
add r8, 1
mov eax, 0x3bd7
mov ecx, 0xffffc428
lock cmpxchg dword [r11 + rdx*4 + 0x478cb0], ecx
je 0x100082853
mov ecx, dword [0x10005e244]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x10008257f
mov rbx, r15
cmp rbx, r15
jne 0x1000826ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
add rdi, 1
mov rcx, qword [0x10047b438]
mov r8, rcx
mov rax, r15
cmp rcx, r15
mov r9, rcx
je 0x100082615
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 0x1000825e9
mov qword [0x100495210], rcx
xor edx, edx
mov r9d, 0x40
div r8
mov rcx, rdx
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x100493ee0]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
cmp rax, r15
je 0x100082682
mov rcx, rax
mov qword [rsp + 0x28], r15
mov rdx, rax
or rcx, 3
mov r8d, esi
lea r9, [0x1003c433c]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x100082697
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 0x1000825c9
mov rbx, r15
cmp rbx, 0x10000
jb 0x1000826a5
test bl, 3
je 0x1000826cb
cmp rbx, r15
je 0x1000826c8
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]
mov rbx, r15
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [0x100000000]
cmp rbx, r15
je 0x10008250b
mov rcx, rsi
mov rdi, rbx
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x3b23987d
mov rax, r15
mov esi, ebp
lea r13, [0x100000000]
add qword [r12], 9
mov edi, dword [0x1002f3aa4]
mov r14d, dword [r14 + 5]
and r14d, 0xfffffff
mov qword [rsp + 0xa0], r14
sub rdi, r14
add rdi, 1
mov r8, rdi
sub esi, r13d
cmp rdi, r15
mov dword [rsp + 0x30], esi
je 0x100082766
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 0x10008273a
mov qword [0x100495210], rcx
xor edx, edx
div rdi
mov ecx, esi
add rbx, rdx
mov qword [rsp + 0x88], rbx
mov r8, rbx
mov rdx, r14
mov eax, 0x2db560bb
mov rdx, qword [r14 + rbp]
mov dil, r15b
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rdx
mov eax, 0xa17243cc
mov r11, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x74]
mov eax, 0xfffffff
and r11, rax
mov rcx, r13
and r8, rax
add r11, r13
mov rax, qword [0x1003f4900]
sub rcx, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], rcx
mov r15d, 4
jne 0x10008286a
xor r10d, r10d
test r8, r8
je 0x100082ba8
mov r9d, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
movzx eax, byte [r10 + r11]
add r10, 1
add eax, 0x2a318641
add r9d, eax
add eax, ecx
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x38]
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
imul ecx, ecx, 0x2a318641
ror ecx, 0x10
add r9d, ecx
cmp r10, r8
jb 0x1000827e9
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], r9d
jmp 0x100082ba8
mov ecx, dword [0x1002f3aa4]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x425000]
jmp 0x1000825b4
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r13 + 0xb4]
mov r9d, dword [rcx + r13 + 0xb0]
add r9, r13
lea rax, [r11 + r8]
mov qword [rsp + 0x50], rax
mov eax, r11d
sub eax, r13d
mov ecx, eax
mov r10d, eax
mov rax, 0xfffffffffffff000
lea r13, [rcx + r8]
mov rbx, rcx
and r10, rax
mov rcx, r13
sub rbx, r10
and rcx, rax
mov qword [rsp + 0x38], rcx
sub r13, rcx
add rdx, r9
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x68], r13
jmp 0x1000828d8
mov eax, dword [r9]
cmp rax, r10
jae 0x1000828dd
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rdx
jne 0x1000828c9
xor esi, esi
cmp r9, rdx
je 0x100082917
mov eax, dword [r9]
cmp rax, r10
jne 0x100082917
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x100082912
mov ax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbx
jae 0x100082912
add rsi, 1
cmp rsi, rcx
jne 0x1000828f9
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x4c]
lea rbp, [0x100000000]
mov r14, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
cmp r9, rdx
je 0x100082b07
mov eax, dword [r9]
cmp rax, rcx
ja 0x100082b07
mov edi, dword [r9 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x10008296e
add r9, rdi
cmp r9, rdx
je 0x100082b07
mov eax, dword [r9]
cmp rax, rcx
ja 0x100082b07
xor esi, esi
jmp 0x100082942
mov eax, dword [r9]
cmp rax, rcx
jne 0x10008298a
mov ax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100082b07
mov rax, rsi
add rsi, 1
test word [r9 + rax*2 + 8], 0xf000
je 0x10008292d
movzx ebx, word [r9 + rax*2 + 8]
xor r12d, r12d
mov r13d, ebx
and r13d, 0xfff
add r13d, dword [r9]
add r13, rbp
mov rax, r13
sub rax, r11
je 0x100082a2c
mov rdi, rax
movzx eax, byte [r11 + r12]
add r12, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x60], rax
mov ecx, dword [rsp + 0x60]
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
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp r12, rdi
jb 0x1000829bf
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
shr ebx, 0xc
mov rax, qword [r13]
cmp ebx, 3
mov qword [rsp + 0x60], rax
je 0x100082a49
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100082a4e
mov edx, 2
mov r11, r14
neg r11
sub edx, 2
je 0x100082a74
cmp edx, 1
je 0x100082a64
or r11, 0xffffffffffffffff
jmp 0x100082a7c
add rax, r11
mov qword [rsp + 0x60], rax
mov r11d, 8
jmp 0x100082a7c
add dword [rsp + 0x60], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x100082af0
movzx eax, byte [rsp + rbx + 0x60]
add rbx, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
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
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp rbx, r11
jb 0x100082a83
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
add r11, r13
mov rdx, qword [rsp + 0x78]
mov r13, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
jmp 0x10008292d
mov rbp, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x90]
xor r9d, r9d
mov r14, qword [rsp + 0xa0]
mov dil, r9b
mov rbx, qword [rsp + 0x50]
sub rbx, r11
je 0x100082b9c
movzx eax, byte [r9 + r11]
add r9, 1
add eax, 0x2a318641
add r10d, eax
add eax, r8d
imul eax, eax, 0x2a318641
ror eax, 0x10
imul rax, rax, 0x2a318641
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x38]
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
imul r8d, r8d, 0x2a318641
ror r8d, 0x10
add r10d, r8d
cmp r9, rbx
jb 0x100082b2f
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x88]
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 + 0xb7], al
jb 0x100082baa
mov eax, 0xc43b237c
mov r13b, r14b
mov r10, rbp
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rbp
mov r11, rbx
and r13d, 7
mov qword [rsp + 0x38], rbx
je 0x1000830c3
not esi
xor r8d, r8d
mov dword [rsp + 0x50], r8d
xor ebx, ebx
mov dword [rsp + 0x68], ebx
xor r11d, r11d
test r13d, r13d
jle 0x100082c44
lea r9d, [r8 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x100082c1d
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100082c25
mov ecx, r9d
shl edx, cl
or r8d, edx
add r11d, 1
add r10, 1
sub r9d, 8
cmp r11d, r13d
jl 0x100082c0a
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x58], r10
movzx r11d, ax
movzx r10d, word [rsp + 0xba]
movzx r9d, word [rsp + 0xbc]
movzx r8d, word [rsp + 0xbe]
mov ebx, esi
ror ebx, 9
sub ebx, r11d
imul ebx, r10d
xor ebx, dword [rsp + 0x30]
mov ecx, ebx
xor ecx, r9d
mov edx, ebx
ror edx, 1
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov edx, eax
mov dword [rsp + 0x30], esi
sub edx, esi
mov ecx, esi
ror edx, 0xd
mov esi, dword [rsp + 0xbc]
rol ecx, 0xf
xor esi, eax
xor esi, dword [rsp + 0x30]
imul edx, r9d
sub edx, ecx
xor ebx, edx
xor esi, ebx
mov ecx, esi
mov edx, esi
sub edx, dword [rsp + 0xbc]
ror edx, 1
ror ecx, 9
imul edx, r11d
xor ecx, edx
mov edx, dword [rsp + 0xbc]
xor ebx, ecx
xor edx, ebx
mov ecx, eax
sub ecx, edx
xor esi, ecx
mov edx, eax
mov ecx, esi
xor edx, esi
rol edx, 2
rol ecx, 5
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
shr ecx, 6
xor edx, r11d
rol edx, 1
imul edx, r10d
add edx, ecx
xor esi, edx
mov ecx, esi
not ecx
ror ecx, 0xa
add ecx, r11d
imul ecx, r9d
xor ebx, ecx
mov ecx, ebx
sub ecx, r8d
xor ecx, eax
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, r10d
ror edx, 0xa
imul ecx, r9d
add edx, ecx
xor ebx, edx
mov ecx, ebx
sub ecx, dword [rsp + 0xbc]
sub ecx, r10d
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, dword [rsp + 0xbc]
ror edx, 0xd
xor esi, dword [rsp + 0x50]
ror ecx, 9
xor r9d, r9d
imul edx, r11d
sub edx, ecx
mov ecx, dword [rsp + 0x68]
xor edx, ecx
xor ebx, edx
mov ecx, ebx
test r13d, r13d
mov edx, esi
jle 0x100082d96
mov r8, qword [rsp + 0x38]
cmp r9d, r15d
jge 0x100082d7b
rol ecx, 8
mov byte [r8], cl
add r8, 1
xor dil, cl
jmp 0x100082d88
rol edx, 8
mov byte [r8], dl
add r8, 1
xor dil, dl
add r9d, 1
cmp r9d, r13d
jl 0x100082d67
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1000830ab
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r11, qword [rsp + 0x38]
mov r10, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x50]
mov rcx, r14
shr rcx, 3
mov qword [rsp + 0xb0], rcx
je 0x100082fee
mov r12d, dword [rsp + 0x68]
mov rbp, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0xbc]
mov ecx, r15d
movzx edx, ax
mov dword [rsp + 0x30], edx
xor ecx, eax
mov dword [rsp + 0x78], ecx
mov r14d, dword [rsp + 0x78]
movzx ecx, word [rsp + 0xbe]
mov dword [rsp + 0x58], ecx
movzx ecx, r15w
mov dword [rsp + 0x50], ecx
movzx ecx, word [rsp + 0xba]
mov dword [rsp + 0x38], 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
shl r9d, 8
movzx ecx, byte [r10 - 6]
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
shl r8d, 8
movzx ecx, byte [r10 - 1]
or r8d, ecx
xor esi, r8d
mov ecx, esi
ror ecx, 9
sub ecx, edx
movzx edx, word [rsp + 0xba]
imul ecx, edx
xor ecx, r9d
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x50]
ror edx, 1
imul ecx, dword [rsp + 0x58]
xor edx, ecx
xor esi, edx
mov edx, eax
mov ecx, esi
sub edx, esi
ror edx, 0xd
rol ecx, 0xf
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor ebx, edx
xor esi, ebx
xor esi, r14d
mov ecx, esi
mov edx, esi
sub edx, r15d
ror edx, 1
ror ecx, 9
imul edx, dword [rsp + 0x30]
xor ecx, edx
mov edx, r15d
xor ebx, ecx
mov ecx, eax
xor edx, ebx
sub ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 2
rol ecx, 5
imul edx, dword [rsp + 0x50]
sub edx, ecx
movzx ecx, word [rsp + 0xba]
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x30]
rol edx, 1
imul edx, ecx
mov ecx, ebx
shr ecx, 6
add edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xbe]
mov ecx, esi
not ecx
ror ecx, 0xa
add ecx, dword [rsp + 0x30]
imul ecx, dword [rsp + 0x50]
xor ebx, ecx
mov ecx, ebx
sub ecx, edx
xor ecx, eax
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, dword [rsp + 0x38]
ror edx, 0xa
imul ecx, dword [rsp + 0x50]
add edx, ecx
xor ebx, edx
movzx edx, word [rsp + 0xba]
mov ecx, ebx
sub ecx, r15d
sub ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor esi, r13d
sub edx, r15d
ror edx, 0xd
mov r13d, r8d
mov byte [r11 + 7], sil
ror ecx, 9
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor edx, r12d
mov r12d, r9d
xor ebx, edx
mov edx, dword [rsp + 0x30]
xor dil, bl
mov byte [r11 + 3], bl
ror ebx, 8
mov byte [r11 + 2], bl
xor dil, sil
ror esi, 8
mov byte [r11 + 6], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r11 + 1], bl
mov byte [r11 + 5], sil
ror ebx, 8
mov byte [r11], bl
xor dil, sil
ror esi, 8
mov byte [r11 + 4], sil
add r11, 8
mov cl, sil
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub rbp, 1
jne 0x100082e1e
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa8]
cmp dil, byte [r14 + rbp + 8]
je 0x1000830f0
call fcn.1002d3e40
mov r11, qword [rsp + 0x98]
lea r13, [0x1003e8888]
and r12, 0xfffffffffffffff8
mov r10d, 0xffff
lea r8, [r12 + 0xfff]
mov qword [r11 + 0x10], r13
mov r9, rax
mov rax, 0xfffffffffffff000
and r9, rax
mov rcx, qword [0x100495210]
and r8, rax
xor edi, edi
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 0x10008303c
movabs rax, 0x8000800080008001
mov qword [0x100495210], rcx
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x98], r9
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x80], 0
jmp 0x1000830e6
xor esi, esi
test ecx, ecx
jns 0x100082db0
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100082db0
mov r13d, esi
not r13d
mov dword [rsp + 0x68], esi
xor esi, esi
xor ebx, ebx
jmp 0x100082dbf
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1000830d6
jmp 0x10008320a
mov rax, qword [0x1003f4900]
mov rbx, rbp
mov r13, qword [rsp + 0x88]
lea r15, [0x100000000]
sub rbx, r13
mov rsi, r15
sub rsi, rax
jne 0x10008311d
test rbx, rbx
je 0x1000831f7
mov rcx, qword [0x1000016e8]
mov r11, r13
xor edi, edi
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
test r8d, r8d
js 0x100083173
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x16ec]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x100083169
lea r8d, [rax - 1]
jmp 0x10008316e
jbe 0x100083178
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100083143
movsxd r10, edi
jmp 0x1000831f0
movsxd r10, eax
jmp 0x1000831f0
mov edx, dword [r14 + r10*4 + 0x16ec]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1000831f7
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 0x1000831cb
sub edi, 1
je 0x1000831c6
cmp edi, 1
jne 0x1000831d1
mov r9, rsi
jmp 0x1000831d1
mov r9, rbx
jmp 0x1000831d1
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1000831e1
cmp edx, 1
jne 0x1000831ec
add qword [r8 + r11], r9
jmp 0x1000831e5
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x10008317d
mov eax, dword [0x1002f3aa4]
mov eax, 0x2495e08e
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret