Function at 0x1002780b0
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 [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x78], rdx
lea rax, [0x100000000]
lea r12, [rcx + 0x18]
mov qword [rsp + 0x90], rcx
mov r14, qword [r12]
mov edx, dword [r14 + 5]
lea r11, [0x100000000]
mov ebp, dword [r14 + 1]
mov ecx, 0xfffffff
mov qword [rsp + 0x88], r12
and rdx, rcx
shr rbp, 1
and rbp, rcx
add rbp, rax
mov eax, dword [0x1000d5e38]
lea rsi, [rax + rdx - 1]
xor edx, edx
mov qword [rsp + 0xa0], rbp
mov rcx, rax
mov rax, rsi
div rcx
sub rsi, rdx
mov eax, dword [0x1000d5e38]
xor r15d, r15d
mov eax, dword [0x1000d5e38]
mov eax, dword [0x100172988]
cmp eax, r15d
mov r10d, dword [0x100172988]
je 0x1002781f9
mov edi, dword [0x100172988]
dec edi
mov rax, r15
inc rdi
mov r9, rdi
cmp rdi, r15
mov r8, r15
je 0x1002781b2
mov rcx, qword [0x100346e50]
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 0x100278183
mov qword [0x100346e50], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1002781ed
inc r8
mov eax, 0xcb65
mov ecx, 0xffff349a
lock cmpxchg dword [r11 + rdx*4 + 0x349c90], ecx
je 0x1002784cc
mov ecx, dword [0x100172988]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1002781bc
mov rbx, r15
cmp rbx, r15
jne 0x10027832c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
mov rax, r15
mov rcx, qword [0x100348890]
mov r8, rcx
mov r9, rcx
inc rdi
cmp rcx, r15
je 0x100278253
mov rcx, qword [0x100346e50]
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 0x100278224
mov qword [0x100346e50], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdx
mov rdx, rsi
shl rcx, 0x10
add rcx, qword [0x1003475b0]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
cmp rax, r15
je 0x1002782c0
mov qword [rsp + 0x28], r15
mov rdx, rax
mov r8d, esi
lea r9, [0x1002af874]
mov qword [rsp + 0x20], r15
mov rcx, rax
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x1002782d5
mov r8d, 0x8000
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 0x100278205
mov rbx, r15
cmp rbx, 0x10000
jb 0x1002782e3
test bl, 3
je 0x100278309
cmp rbx, r15
je 0x100278306
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 0x100278147
mov rcx, rsi
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0xb7236fbf
mov esi, ebp
add qword [r12], 9
lea rax, [0x100000000]
mov r14d, dword [r14 + 5]
and r14d, 0xfffffff
mov r8d, dword [0x1000d5e38]
mov qword [rsp + 0x98], r14
sub r8, r14
sub esi, eax
inc r8
cmp r8, r15
mov rdi, r8
mov rax, r15
mov dword [rsp + 0x38], esi
je 0x1002783a6
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
cmp rdi, r15
jne 0x100278377
mov qword [0x100346e50], rcx
xor edx, edx
div r8
mov ecx, esi
lea r13, [rdx + rbx]
mov rdx, r14
mov qword [rsp + 0x80], r13
mov r8, r13
mov eax, 0x257fdf4c
mov rdx, qword [r14 + rbp]
lea rcx, [rsp + 0x70]
mov dil, r15b
mov qword [rsp + 0x70], rdx
mov eax, 0xc6aff7de
mov rbx, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x74]
mov eax, 0xfffffff
lea rdx, [0x100000000]
mov rcx, rdx
and rbx, rax
and r9, rax
add rbx, rdx
mov rax, qword [0x100037580]
mov qword [rsp + 0x40], r15
mov r15d, 4
sub rcx, rax
mov qword [rsp + 0x30], rcx
jne 0x1002784e3
xor r10d, r10d
test r9, r9
je 0x1002788c3
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
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
add r8d, eax
cmp r10, r9
jb 0x100278431
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], r8d
jmp 0x1002788c3
mov ecx, dword [0x1000d5e38]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x313000]
jmp 0x1002781f0
lea rax, [rbx + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + rdx + 0xb0]
mov qword [rsp + 0x48], rax
mov eax, ebx
sub eax, edx
mov r10d, eax
mov r11d, eax
lea r13, [rax + r9]
add r8, rdx
mov edx, dword [rcx + rdx + 0xb4]
mov rcx, r13
and r10, 0xfffffffffffff000
and rcx, 0xfffffffffffff000
sub r11, r10
sub r13, rcx
add rdx, r8
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r13
jmp 0x10027854d
mov eax, dword [r8]
cmp rax, r10
jae 0x100278552
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x10027853e
xor esi, esi
cmp r8, rdx
je 0x100278591
mov eax, dword [r8]
cmp rax, r10
jne 0x100278591
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10027858c
lea r9, [r8 + 8]
movzx eax, word [r9]
and eax, 0xfff
cmp rax, r11
jae 0x10027858c
inc rsi
add r9, 2
cmp rsi, rcx
jne 0x100278572
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
lea rdi, [0x100000000]
cmp r8, rdx
je 0x1002787ef
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002787ef
mov r10d, dword [r8 + 4]
lea rax, [r10 - 8]
shr rax, 1
cmp rsi, rax
jne 0x1002785e8
add r8, r10
cmp r8, rdx
je 0x1002787ef
mov eax, dword [r8]
cmp rax, rcx
ja 0x1002787ef
xor esi, esi
jmp 0x1002785bc
mov eax, dword [r8]
cmp rax, rcx
jne 0x100278604
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x1002787ef
mov r10d, 0xf000
mov rax, rsi
inc rsi
test word [r8 + rax*2 + 8], r10w
je 0x1002785a7
movzx r10d, word [r8 + rax*2 + 8]
mov r13d, r10d
xor r12d, r12d
and r13d, 0xfff
add r13d, dword [r8]
add r13, rdi
mov rax, r13
sub rax, rbx
je 0x1002786dc
mov rbp, rax
movzx ecx, byte [rbx + r12]
inc r12
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 + 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 eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rax, 0x6b615f7d
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
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 r12, rbp
jb 0x100278640
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r11d
mov rax, qword [r13]
shr r10d, 0xc
mov qword [rsp + 0x58], rax
cmp r10d, 3
je 0x1002786fd
sub r10d, 0xa
neg r10d
sbb edx, edx
add edx, 3
jmp 0x100278702
mov edx, 2
mov r10, r14
neg r10
sub edx, 2
je 0x100278728
cmp edx, 1
je 0x100278718
or r10, 0xffffffffffffffff
jmp 0x100278730
add rax, r10
mov qword [rsp + 0x58], rax
mov r10d, 8
jmp 0x100278730
add dword [rsp + 0x58], r10d
mov r10, r15
xor ebx, ebx
test r10, r10
je 0x1002787d7
movzx ecx, byte [rsp + rbx + 0x58]
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
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
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 rbx, r10
jb 0x10027873b
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r11d
lea rbx, [r10 + r13]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
jmp 0x1002785a7
xor r8d, r8d
mov rbp, qword [rsp + 0xa0]
mov r10, qword [rsp + 0x48]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0x88]
sub r10, rbx
mov dil, r8b
je 0x1002788b7
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 0x10027881b
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]
cmp rcx, 8
mov byte [rsp + rcx + 0xaf], al
jb 0x1002788c5
mov eax, 0xe0aa8eb1
mov r10, rbp
mov rax, qword [rsp + 0xb0]
mov r11, r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x50], rbp
mov r13, r14
and r13d, 7
je 0x100278de6
mov ecx, esi
xor r8d, r8d
not ecx
xor ebx, ebx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x68], ebx
xor r11d, r11d
test r13d, r13d
jle 0x100278967
lea r9d, [r8 + 0x38]
movzx edx, byte [r10]
cmp r11d, r15d
jge 0x10027893e
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100278946
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x10027892b
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], r10
movzx r9d, word [rsp + 0xb4]
movzx r8d, word [rsp + 0xb6]
mov esi, eax
movzx r11d, ax
xor esi, dword [rsp + 0xb4]
xor esi, ecx
movzx r10d, word [rsp + 0xb2]
mov ecx, dword [rsp + 0x38]
xor esi, ecx
mov ebx, esi
sub ebx, r9d
xor ebx, eax
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, dword [rsp + 0xb4]
ror edx, 0xc
ror ecx, 0xb
imul edx, r10d
sub edx, ecx
xor esi, edx
mov edx, esi
ror edx, 6
mov ecx, esi
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
mov ecx, esi
xor edx, r11d
rol edx, 6
rol ecx, 8
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0xb4]
mov ecx, ebx
xor edx, ebx
rol edx, 2
ror ecx, 6
imul edx, r10d
xor ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, 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 edx, eax
xor edx, esi
rol edx, 3
mov ecx, esi
shr ecx, 8
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0xb4]
sub edx, ebx
mov ecx, ebx
ror edx, 0xc
rol ecx, 8
imul edx, r10d
add ecx, edx
xor esi, ecx
mov edx, dword [rsp + 0xb4]
mov ecx, esi
xor r9d, r9d
xor edx, esi
xor esi, dword [rsp + 0x48]
rol edx, 4
ror ecx, 0xa
mov r8d, esi
imul edx, r11d
sub edx, ecx
mov ecx, dword [rsp + 0x68]
xor edx, ecx
xor ebx, edx
mov edx, ebx
test r13d, r13d
jle 0x100278ac0
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x100278aa6
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100278ab3
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x100278a94
mov qword [rsp + 0x30], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x100278dce
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r13d, dword [rsp + 0x48]
mov r11, qword [rsp + 0x30]
mov r10, qword [rsp + 0x50]
mov rcx, r14
shr rcx, 3
test rcx, rcx
mov qword [rsp + 0xa8], rcx
je 0x100278d19
mov ebp, dword [rsp + 0x68]
mov r12, qword [rsp + 0xa8]
mov r14d, eax
mov r15d, dword [rsp + 0xb4]
movzx ecx, word [rsp + 0xb2]
mov dword [rsp + 0x48], ecx
xor r14d, r15d
neg ecx
mov dword [rsp + 0x30], ecx
movzx ecx, word [rsp + 0xb6]
movzx edx, r15w
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x50], ecx
movzx ecx, ax
mov dword [rsp + 0x60], ecx
movzx r9d, byte [r10 + 1]
movzx ecx, byte [r10]
shl ecx, 8
movzx r8d, byte [r10 + 4]
shl r8d, 8
add r10, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 6]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 5]
or r9d, ecx
movzx ecx, byte [r10 - 3]
or r8d, ecx
movzx ecx, byte [r10 - 2]
xor ebx, r9d
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r10 - 1]
or r8d, ecx
xor esi, r8d
xor esi, ebx
xor esi, r14d
mov ecx, esi
sub ecx, edx
xor ecx, eax
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, r15d
ror edx, 0xc
ror ecx, 0xb
imul edx, dword [rsp + 0x48]
sub edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x50]
ror edx, 6
imul ecx, dword [rsp + 0x60]
xor edx, ecx
xor ebx, edx
movzx ecx, word [rsp + 0xb6]
mov edx, ebx
xor edx, dword [rsp + 0x38]
imul edx, ecx
mov ecx, ebx
shr ecx, 0xb
xor edx, ecx
xor esi, edx
mov edx, esi
xor edx, dword [rsp + 0x60]
mov ecx, esi
rol edx, 6
rol ecx, 8
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
mov edx, r15d
xor edx, ebx
rol edx, 2
mov ecx, ebx
ror ecx, 6
imul edx, dword [rsp + 0x48]
xor ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, dword [rsp + 0x48]
ror edx, 0xe
imul ecx, dword [rsp + 0x60]
add edx, ecx
mov ecx, dword [rsp + 0x30]
xor ebx, edx
lea edx, [rbx + rcx]
movzx ecx, word [rsp + 0xb6]
rol edx, 7
imul edx, ecx
mov ecx, ebx
shr ecx, 5
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 3
shr ecx, 8
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, r15d
sub edx, ebx
ror edx, 0xc
rol ecx, 8
imul edx, dword [rsp + 0x48]
add ecx, edx
xor esi, ecx
mov edx, r15d
xor edx, esi
mov ecx, esi
xor esi, r13d
rol edx, 4
ror ecx, 0xa
mov r13d, r8d
mov byte [r11 + 7], sil
imul edx, dword [rsp + 0x60]
sub edx, ecx
xor edx, ebp
xor ebx, edx
mov ebp, r9d
xor dil, bl
mov edx, dword [rsp + 0x38]
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
mov byte [r11 + 1], bl
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r11 + 5], sil
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r11], bl
mov byte [r11 + 4], sil
mov cl, sil
add r11, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub r12, 1
jne 0x100278b48
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
cmp dil, byte [r14 + rbp + 8]
je 0x100278e10
call fcn.1000de678
mov r11, qword [rsp + 0x90]
mov r9d, 0xffff
mov r10, rax
mov rax, 0xfffffffffffff000
lea r13, [0x100046aec]
and r12, 0xfffffffffffffff8
mov qword [r11 + 0x10], r13
mov rcx, qword [0x100346e50]
and r10, rax
lea r8, [r12 + 0xfff]
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 0x100278d67
mov qword [0x100346e50], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x98], r10
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r9
jmp 0x100278e06
xor esi, esi
test ecx, ecx
jns 0x100278ada
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100278ada
mov r13d, esi
not r13d
mov dword [rsp + 0x68], esi
xor esi, esi
xor ebx, ebx
jmp 0x100278ae9
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x100278df9
jmp 0x100278f29
mov r13, qword [rsp + 0x80]
mov rax, qword [0x100037580]
lea r15, [0x100000000]
mov rbx, rbp
mov rsi, r15
sub rbx, r13
sub rsi, rax
jne 0x100278e3d
test rbx, rbx
je 0x100278f16
xor edi, edi
mov r11, r13
mov rcx, qword [0x100021bc8]
sub r11, rbp
sub ebp, r15d
lea r8d, [rcx - 1]
test r8d, r8d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
js 0x100278e93
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x21bcc]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x100278e89
lea r8d, [rax - 1]
jmp 0x100278e8e
jbe 0x100278e98
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100278e63
movsxd r10, edi
jmp 0x100278f0f
movsxd r10, eax
jmp 0x100278f0f
mov edx, dword [r14 + r10*4 + 0x21bcc]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x100278f16
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 0x100278eeb
sub edi, 1
je 0x100278ee6
cmp edi, 1
jne 0x100278ef1
mov r9, rsi
jmp 0x100278ef1
mov r9, rbx
jmp 0x100278ef1
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100278f01
cmp edx, 1
jne 0x100278f0c
add qword [r8 + r11], r9
jmp 0x100278f05
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100278e9d
mov eax, dword [0x1000d5e38]
mov eax, 0x75dde8ab
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret