Function at 0x100045b90
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 [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea r11, [0x100000000]
mov r15d, 0x269ec3
mov eax, dword [0x1000d5e38]
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x78], rdx
mov r14d, 0xfffffff
mov r13d, 0x8000
mov edx, dword [r12 + 1]
mov qword [rsp + 0x90], rcx
shr rdx, 3
mov rcx, rax
and rdx, r14
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
mov eax, dword [0x1000d5e38]
sub rsi, rdx
mov eax, dword [0x1000d5e38]
mov r10d, dword [0x100172988]
mov eax, dword [0x100172988]
test eax, eax
je 0x100045cb6
mov edi, dword [0x100172988]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x100045c70
mov rcx, qword [0x100346e50]
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 0x100045c45
mov qword [0x100346e50], rcx
xor edx, edx
div rdi
test r10, r10
je 0x100045cab
mov ecx, 0xffff349a
mov eax, 0xcb65
inc r8
lock cmpxchg dword [r11 + rdx*4 + 0x349c90], ecx
je 0x100045f79
mov ecx, dword [0x100172988]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x100045c7a
xor ebx, ebx
test rbx, rbx
jne 0x100045dd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
xor edi, edi
mov rcx, qword [0x100348890]
mov r9, rcx
inc rdi
xor eax, eax
test rcx, rcx
mov r8, rcx
je 0x100045d09
mov rcx, qword [0x100346e50]
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 0x100045cde
mov qword [0x100346e50], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov rdx, rsi
shl rcx, 0x10
add rcx, qword [0x1003475b0]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
je 0x100045d71
mov r8d, esi
lea r9, [0x1002af874]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rax
or rcx, 3
mov rdx, rax
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x100045d85
mov r8d, r13d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x100045cc0
xor ebx, ebx
cmp rbx, 0x10000
jb 0x100045d93
test bl, 3
je 0x100045db5
test rbx, rbx
je 0x100045db3
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, r13d
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 0x100045c0e
xor eax, eax
mov rcx, rsi
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x15f1526
mov r8d, dword [0x1000d5e38]
lea r15, [0x100000000]
mov ebp, dword [r12 + 1]
mov rax, rbp
shr rbp, 3
and eax, 7
and rbp, r14
sub r8, rbp
lea r12, [rax + r12 + 9]
mov qword [rsp + 0x98], r12
mov esi, r12d
mov qword [rsp + 0x88], rbp
xor eax, eax
sub esi, r15d
mov dword [rsp + 0x38], esi
inc r8
mov rdi, r8
je 0x100045e5e
mov rcx, qword [0x100346e50]
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
test rdi, rdi
jne 0x100045e2f
mov qword [0x100346e50], rcx
mov ecx, esi
xor edx, edx
div r8
lea r13, [rdx + rbx]
mov r8, r13
mov rdx, rbp
mov qword [rsp + 0x80], r13
mov eax, 0x241501e4
mov rdx, qword [r12 + rbp]
mov qword [rsp + 0x70], rdx
xor dil, dil
lea rcx, [rsp + 0x70]
mov eax, 0x4e103aac
mov rbx, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x74]
mov rax, qword [0x100037580]
mov rcx, r15
and qword [rsp + 0x40], 0
and rbx, r14
and r9, r14
add rbx, r15
mov r14d, 4
sub rcx, rax
mov qword [rsp + 0x30], rcx
jne 0x100045f90
xor r10d, r10d
test r9, r9
je 0x10004635c
mov eax, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
movzx ecx, byte [r10 + rbx]
inc r10
add ecx, 0x6b615f7d
add r8d, ecx
add ecx, eax
mov eax, ecx
imul eax, eax, 0xfc05
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rax, 0x6b615f7d
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, rax, 0x6b615f7d
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
add r8d, eax
cmp r10, r9
jb 0x100045ede
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], r8d
jmp 0x10004635c
mov ecx, dword [0x1000d5e38]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x313000]
jmp 0x100045cad
movsxd rcx, dword [0x10000003c]
lea rax, [rbx + r9]
mov r8d, dword [rcx + r15 + 0xb0]
mov ecx, dword [rcx + r15 + 0xb4]
add r8, r15
mov qword [rsp + 0x60], rax
mov eax, ebx
sub eax, r15d
mov r10d, eax
lea r13, [rax + r9]
mov r11d, eax
mov r15, r13
and r10, 0xfffffffffffff000
sub r11, r10
and r15, 0xfffffffffffff000
sub r13, r15
add rcx, r8
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], r13
jmp 0x100045ff7
mov eax, dword [r8]
cmp rax, r10
jae 0x100045ffc
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x100045fe8
xor esi, esi
cmp r8, rcx
je 0x10004603a
mov eax, dword [r8]
cmp rax, r10
jne 0x10004603a
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100046035
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r11
jae 0x100046035
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x10004601c
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rsp + 0x44]
mov rbp, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x40]
cmp r8, rcx
je 0x100046290
mov eax, dword [r8]
cmp rax, r15
ja 0x100046290
mov edx, dword [r8 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x10004608a
add r8, rdx
cmp r8, rcx
je 0x100046290
mov eax, dword [r8]
cmp rax, r15
ja 0x100046290
xor esi, esi
jmp 0x10004605e
mov eax, dword [r8]
cmp rax, r15
jne 0x1000460a6
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100046290
mov edx, 0xf000
mov rax, rsi
inc rsi
test word [r8 + rax*2 + 8], dx
je 0x100046049
xor edi, edi
movzx r10d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, r10d
and r13d, 0xfff
add r13d, dword [r8]
add r13, rax
mov rax, r13
sub rax, rbx
je 0x100046182
mov r12, rax
movzx ecx, byte [rdi + rbx]
inc rdi
add ecx, 0x6b615f7d
add r11d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0xfc05
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rax, 0x6b615f7d
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 eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rax, 0x6b615f7d
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x48]
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 r11d, r9d
cmp rdi, r12
jb 0x1000460e7
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r11d
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
shr r10d, 0xc
cmp r10d, 3
je 0x1000461a3
sub r10d, 0xa
neg r10d
sbb edx, edx
add edx, 3
jmp 0x1000461a8
mov edx, 2
mov r10, rbp
neg r10
sub edx, 2
je 0x1000461ce
cmp edx, 1
je 0x1000461be
or r10, 0xffffffffffffffff
jmp 0x1000461d6
add rax, r10
mov r10d, 8
mov qword [rsp + 0x48], rax
jmp 0x1000461d6
add dword [rsp + 0x48], r10d
mov r10, r14
xor ebx, ebx
test r10, r10
je 0x10004627d
movzx ecx, byte [rsp + rbx + 0x48]
inc rbx
add ecx, 0x6b615f7d
add r11d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0xfc05
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rax, 0x6b615f7d
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, rax, 0x6b615f7d
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r11d, r9d
cmp rbx, r10
jb 0x1000461e1
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r11d
mov rcx, qword [rsp + 0x68]
lea rbx, [r10 + r13]
mov r13, qword [rsp + 0x58]
jmp 0x100046049
xor r8d, r8d
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x98]
mov r10, qword [rsp + 0x60]
mov dil, r8b
sub r10, rbx
je 0x100046350
movzx ecx, byte [rbx + r8]
inc r8
add ecx, 0x6b615f7d
add r11d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0xfc05
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rax, 0x6b615f7d
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, rax, 0x6b615f7d
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r11d, r9d
cmp r8, r10
jb 0x1000462b4
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r11d
mov esi, dword [rsp + 0x38]
mov r13, qword [rsp + 0x80]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x40]
mov byte [rsp + rcx + 0x9f], al
cmp rcx, 8
jb 0x10004635e
mov eax, 0xc31583b1
mov r11d, dword [rsp + 0xa4]
mov r10, r13
mov rax, qword [rsp + 0xa0]
mov r15, r12
mov qword [rsp + 0x30], r13
mov r13, rbp
and r13d, 7
je 0x100046855
mov ecx, esi
not ecx
xor r8d, r8d
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x60], ecx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
xor r10d, r10d
test r13d, r13d
jle 0x1000463fe
lea r9d, [r8 + 0x38]
cmp r10d, r14d
movzx edx, byte [r15]
jge 0x1000463da
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x1000463e2
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r13d
jl 0x1000463c7
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], r8d
movzx r10d, word [rsp + 0xa2]
mov esi, eax
xor esi, r11d
xor esi, ecx
mov ecx, dword [rsp + 0x38]
movzx r9d, r11w
xor esi, ecx
mov ebx, esi
sub ebx, r9d
movzx r8d, word [rsp + 0xa6]
xor ebx, eax
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, r11d
movzx r11d, ax
ror edx, 0xc
ror ecx, 0xb
imul edx, r10d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
ror edx, 6
xor ecx, r8d
imul ecx, r11d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
xor edx, r9d
shr ecx, 0xb
imul edx, r8d
xor edx, ecx
xor esi, edx
mov edx, esi
xor edx, r11d
rol edx, 6
mov ecx, esi
rol ecx, 8
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0xa4]
xor edx, ebx
rol edx, 2
ror ecx, 6
imul edx, r10d
xor ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
ror edx, 0xe
xor ecx, r10d
imul ecx, r11d
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, r10d
shr ecx, 5
rol edx, 7
imul edx, r8d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 3
shr ecx, 8
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0xa4]
mov ecx, ebx
sub edx, ebx
ror edx, 0xc
rol ecx, 8
imul edx, r10d
add ecx, edx
xor esi, ecx
xor r9d, r9d
mov ecx, esi
mov edx, dword [rsp + 0xa4]
xor edx, esi
rol edx, 4
ror ecx, 0xa
imul edx, r11d
mov r11d, dword [rsp + 0x58]
sub edx, ecx
mov ecx, dword [rsp + 0x50]
xor esi, r11d
xor edx, ecx
mov r8d, esi
xor ebx, edx
mov edx, ebx
test r13d, r13d
jle 0x10004654e
mov rcx, qword [rsp + 0x30]
cmp r9d, r14d
jge 0x100046534
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100046541
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x100046522
mov qword [rsp + 0x30], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10004683d
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr esi, cl
shl esi, cl
mov r10, qword [rsp + 0x30]
mov r14, rbp
shr r14, 3
test r14, r14
je 0x100046785
mov r12d, dword [rsp + 0x50]
mov ebp, eax
mov r13d, dword [rsp + 0xa4]
movzx edx, r13w
movzx ecx, word [rsp + 0xa2]
xor ebp, r13d
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x38], edx
neg ecx
mov dword [rsp + 0x30], ecx
movzx ecx, word [rsp + 0xa6]
mov dword [rsp + 0x68], ecx
movzx ecx, ax
mov dword [rsp + 0x58], ecx
movzx ecx, byte [r15]
shl ecx, 8
movzx r9d, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
shl r8d, 8
add r15, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 6]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 5]
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
xor ebx, r9d
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
or r8d, ecx
xor esi, r8d
xor esi, ebx
xor esi, ebp
mov ecx, esi
sub ecx, edx
xor ecx, eax
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, r13d
ror edx, 0xc
ror ecx, 0xb
imul edx, dword [rsp + 0x60]
sub edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x68]
ror edx, 6
imul ecx, dword [rsp + 0x58]
xor edx, ecx
movzx ecx, word [rsp + 0xa6]
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x38]
imul edx, ecx
mov ecx, ebx
shr ecx, 0xb
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, dword [rsp + 0x58]
rol edx, 6
rol ecx, 8
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, r13d
xor edx, ebx
rol edx, 2
ror ecx, 6
imul edx, dword [rsp + 0x60]
xor ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x60]
ror edx, 0xe
imul ecx, dword [rsp + 0x58]
add edx, ecx
mov ecx, dword [rsp + 0x30]
xor ebx, edx
lea edx, [rbx + rcx]
rol edx, 7
movzx ecx, word [rsp + 0xa6]
imul edx, ecx
mov ecx, ebx
shr ecx, 5
xor edx, ecx
xor esi, edx
mov edx, eax
xor edx, esi
mov ecx, esi
rol edx, 3
shr ecx, 8
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
mov edx, r13d
mov ecx, ebx
sub edx, ebx
ror edx, 0xc
rol ecx, 8
imul edx, dword [rsp + 0x60]
add ecx, edx
mov edx, r13d
xor esi, ecx
mov ecx, esi
xor edx, esi
xor esi, r11d
rol edx, 4
mov r11d, r8d
ror ecx, 0xa
mov byte [r10 + 7], sil
imul edx, dword [rsp + 0x58]
sub edx, ecx
xor edx, r12d
xor ebx, edx
mov edx, dword [rsp + 0x38]
mov r12d, r9d
mov byte [r10 + 3], bl
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 2], bl
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r10 + 6], sil
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 1], bl
mov byte [r10 + 5], sil
ror ebx, 8
mov byte [r10], bl
xor dil, sil
ror esi, 8
mov byte [r10 + 4], sil
add r10, 8
mov cl, sil
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub r14, 1
jne 0x1000465bc
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x98]
cmp dil, byte [r12 + rbp + 8]
je 0x10004687e
call fcn.1000de678
lea r13, [0x100046aec]
mov r10d, 0xffff
mov r11, rax
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 0x18]
and r8, 0xfffffffffffffff8
mov rax, 0xfffffffffffff000
mov qword [rbx + 0x10], r13
and r11, rax
lea r9, [r8 + 0xfff]
mov rcx, qword [0x100346e50]
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 0x1000467d6
movabs rax, 0x8000800080008001
mov qword [0x100346e50], rcx
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
mov rax, qword [rsp + 0x78]
inc rdi
mov qword [rax + 0x98], r11
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r10
jmp 0x100046874
xor esi, esi
test ecx, ecx
jns 0x100046568
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100046568
mov r11d, esi
not r11d
mov dword [rsp + 0x50], esi
xor esi, esi
xor ebx, ebx
jmp 0x10004656d
mov rax, qword [rsp + 0x78]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100046868
jmp 0x100046995
mov r13, qword [rsp + 0x80]
mov rax, qword [0x100037580]
lea r14, [0x100000000]
mov rsi, r14
mov rbx, r12
sub rbx, r13
sub rsi, rax
jne 0x1000468ab
test rbx, rbx
je 0x100046982
mov rcx, qword [0x100021bc8]
lea r15, [0x100000000]
lea r8d, [rcx - 1]
xor edi, edi
mov r11, r13
sub r11, r12
sub r12d, r14d
add ebp, r12d
test r8d, r8d
js 0x100046900
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x21bcc]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x1000468f6
lea r8d, [rax - 1]
jmp 0x1000468fb
jbe 0x100046905
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1000468d0
movsxd r10, edi
jmp 0x10004697b
movsxd r10, eax
jmp 0x10004697b
mov edx, dword [r15 + r10*4 + 0x21bcc]
mov eax, edx
and eax, 0xfffffff
cmp eax, ebp
jae 0x100046982
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 0x100046957
sub edi, 1
je 0x100046952
cmp edi, 1
jne 0x10004695d
mov r9, rsi
jmp 0x10004695d
mov r9, rbx
jmp 0x10004695d
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10004696d
cmp edx, 1
jne 0x100046978
add qword [r8 + r11], r9
jmp 0x100046971
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10004690a
mov eax, dword [0x1000d5e38]
mov eax, 0x11eaa614
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret