Function at 0x100054664
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 [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [0x100000000]
lea r11, [0x100000000]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x98], rcx
lea r12, [rcx + 0x18]
mov ecx, 0xfffffff
mov r14, qword [r12]
mov edx, dword [r14 + 5]
and rdx, rcx
mov ebp, dword [r14 + 1]
mov qword [rsp + 0x90], r12
and rbp, rcx
add rbp, rax
mov eax, dword [0x1002f8888]
mov qword [rsp + 0xa8], rbp
lea rsi, [rax + rdx - 1]
xor edx, edx
mov rcx, rax
mov rax, rsi
div rcx
sub rsi, rdx
mov eax, dword [0x1002f8888]
xor r15d, r15d
mov r10d, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
mov eax, dword [0x1002a02b4]
cmp eax, r15d
je 0x1000547ad
mov r8, r15
mov rax, r15
mov edi, dword [0x1002a02b4]
dec edi
inc rdi
mov r9, rdi
cmp rdi, r15
je 0x100054766
mov rcx, qword [0x1004c43a0]
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 0x100054737
mov qword [0x1004c43a0], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1000547a1
inc r8
mov ecx, 0xffffc428
mov eax, 0x3bd7
lock cmpxchg dword [r11 + rdx*4 + 0x4c5a60], ecx
je 0x100054a4e
mov ecx, dword [0x1002a02b4]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x100054770
mov rbx, r15
cmp rbx, r15
jne 0x1000548e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, r15
mov r13d, eax
mov rcx, qword [0x1004c4380]
mov rax, r15
inc rdi
mov r8, rcx
mov r9, rcx
cmp rcx, r15
je 0x100054807
mov rcx, qword [0x1004c43a0]
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 0x1000547d8
mov qword [0x1004c43a0], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov rdx, rsi
mov r8d, 0x3000
shl rcx, 0x10
add rcx, qword [0x1004c4308]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, r15
mov rbx, rax
je 0x100054874
mov rcx, rax
lea r9, [0x100435424]
mov qword [rsp + 0x28], r15
or rcx, 3
mov rdx, rax
mov r8d, esi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x100054889
mov rcx, rbx
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1000547b9
mov rbx, r15
cmp rbx, 0x10000
jb 0x100054897
test bl, 3
je 0x1000548bd
cmp rbx, r15
je 0x1000548ba
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]
lea r11, [0x100000000]
cmp rbx, r15
je 0x1000546fb
xor eax, eax
mov rdi, rbx
mov rcx, rsi
rep stosb byte [rdi], al
mov eax, 0xde58c5c8
add qword [r12], 9
mov r8d, dword [0x1002f8888]
lea rax, [0x100000000]
mov r14d, dword [r14 + 5]
mov esi, ebp
and r14d, 0xfffffff
sub r8, r14
mov qword [rsp + 0xa0], r14
sub esi, eax
mov rax, r15
mov dword [rsp + 0x30], esi
inc r8
mov rdi, r8
cmp r8, r15
je 0x10005495a
mov rcx, qword [0x1004c43a0]
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 0x10005492b
mov qword [0x1004c43a0], rcx
mov ecx, esi
xor edx, edx
div r8
lea r13, [rdx + rbx]
mov rdx, r14
mov qword [rsp + 0x88], r13
mov r8, r13
mov eax, 0x6426cfc
mov dil, r15b
lea rcx, [rsp + 0x70]
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x70], rdx
mov eax, 0xd5db0df0
mov r8d, dword [rsp + 0x74]
mov eax, 0xfffffff
mov rbx, qword [rsp + 0x70]
and rbx, rax
lea rdx, [0x100000000]
and r8, rax
mov rcx, rdx
mov rax, qword [0x1000487b8]
add rbx, rdx
mov qword [rsp + 0x48], r15
sub rcx, rax
mov r15d, 4
mov qword [rsp + 0x58], rcx
jne 0x100054a65
xor r10d, r10d
test r8, r8
je 0x100054da8
mov ecx, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x48]
movzx eax, byte [rbx + r10]
inc r10
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 0x1000549e5
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], r9d
jmp 0x100054da8
mov ecx, dword [0x1002f8888]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x454000]
jmp 0x1000547a4
lea rax, [rbx + r8]
movsxd rcx, dword [0x10000003c]
mov r9d, dword [rcx + rdx + 0xb0]
mov qword [rsp + 0x50], rax
mov eax, ebx
sub eax, edx
mov r10d, eax
mov r11d, eax
add r9, rdx
lea r13, [rax + r8]
and r10, 0xfffffffffffff000
mov edx, dword [rcx + rdx + 0xb4]
mov rcx, r13
and rcx, 0xfffffffffffff000
sub r11, r10
mov qword [rsp + 0x38], rcx
sub r13, rcx
add rdx, r9
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x68], r13
jmp 0x100054acf
mov eax, dword [r9]
cmp rax, r10
jae 0x100054ad4
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rdx
jne 0x100054ac0
xor esi, esi
cmp r9, rdx
je 0x100054b13
mov eax, dword [r9]
cmp rax, r10
jne 0x100054b13
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x100054b0e
lea r8, [r9 + 8]
movzx eax, word [r8]
and eax, 0xfff
cmp rax, r11
jae 0x100054b0e
inc rsi
add r8, 2
cmp rsi, rcx
jne 0x100054af4
mov rcx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
lea rbp, [0x100000000]
mov r8d, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x48]
cmp r9, rdx
je 0x100054d08
mov eax, dword [r9]
cmp rax, rcx
ja 0x100054d08
mov edi, dword [r9 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x100054b6a
add r9, rdi
cmp r9, rdx
je 0x100054d08
mov eax, dword [r9]
cmp rax, rcx
ja 0x100054d08
xor esi, esi
jmp 0x100054b3e
mov eax, dword [r9]
cmp rax, rcx
jne 0x100054b86
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100054d08
mov edi, 0xf000
mov rax, rsi
inc rsi
test word [r9 + rax*2 + 8], di
je 0x100054b29
xor r12d, r12d
movzx r11d, word [r9 + rax*2 + 8]
mov r13d, r11d
and r13d, 0xfff
add r13d, dword [r9]
add r13, rbp
mov rax, r13
sub rax, rbx
je 0x100054c29
mov rdi, rax
movzx eax, byte [rbx + r12]
inc r12
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
shr rax, 0x20
mov ecx, dword [rsp + 0x60]
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 0x100054bbd
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
shr r11d, 0xc
cmp r11d, 3
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
je 0x100054c4a
sub r11d, 0xa
neg r11d
sbb edx, edx
add edx, 3
jmp 0x100054c4f
mov edx, 2
mov r11, r14
neg r11
sub edx, 2
je 0x100054c75
cmp edx, 1
je 0x100054c65
or r11, 0xffffffffffffffff
jmp 0x100054c7d
add rax, r11
mov qword [rsp + 0x60], rax
mov r11d, 8
jmp 0x100054c7d
add dword [rsp + 0x60], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x100054cf0
movzx eax, byte [rsp + rbx + 0x60]
inc rbx
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
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
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 0x100054c84
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
mov rdx, qword [rsp + 0x78]
lea rbx, [r11 + r13]
mov rcx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x68]
jmp 0x100054b29
mov rbp, qword [rsp + 0xa8]
xor r9d, r9d
mov r11, qword [rsp + 0x50]
mov r14, qword [rsp + 0xa0]
sub r11, rbx
mov dil, r9b
mov r12, qword [rsp + 0x90]
je 0x100054d9c
movzx eax, byte [rbx + r9]
inc r9
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
mov ecx, dword [rsp + 0x38]
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 r9, r11
jb 0x100054d30
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x48], r10d
mov r13, qword [rsp + 0x88]
mov esi, dword [rsp + 0x30]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x48]
mov byte [rsp + rcx + 0xb7], al
jb 0x100054daa
mov eax, 0x2417068
mov r10, rbp
mov r11, r13
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], r13
mov r13, r14
mov qword [rsp + 0x58], rbp
and r13d, 7
je 0x1000552bd
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 0x100054e42
lea r9d, [r8 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x100054e1d
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100054e25
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x100054e0a
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 dword [rsp + 0x30], esi
mov ecx, esi
mov edx, eax
sub edx, esi
mov esi, dword [rsp + 0xbc]
ror edx, 0xd
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
mov edx, eax
xor esi, ecx
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 edx, esi
test r13d, r13d
mov ecx, ebx
jle 0x100054f91
mov r8, qword [rsp + 0x38]
cmp r9d, r15d
jge 0x100054f78
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x100054f84
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x100054f65
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1000552a5
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r11, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x58]
mov rcx, r14
shr rcx, 3
mov qword [rsp + 0xb0], rcx
test rcx, rcx
je 0x1000551ea
mov r15d, dword [rsp + 0xbc]
movzx edx, ax
mov ebp, dword [rsp + 0x68]
mov ecx, r15d
xor ecx, eax
mov r12, qword [rsp + 0xb0]
mov dword [rsp + 0x30], edx
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 r9d, byte [r10 + 1]
movzx r8d, byte [r10 + 4]
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
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 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 ecx, ebx
xor ecx, dword [rsp + 0x50]
mov edx, ebx
ror edx, 1
imul ecx, dword [rsp + 0x58]
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, eax
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 edx, esi
mov ecx, 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
xor ebx, edx
movzx ecx, word [rsp + 0xba]
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
mov ecx, esi
not ecx
movzx edx, word [rsp + 0xbe]
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 edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x38]
ror edx, 0xa
imul ecx, dword [rsp + 0x50]
add edx, ecx
xor ebx, edx
mov ecx, ebx
movzx edx, word [rsp + 0xba]
sub ecx, r15d
sub ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
xor esi, r13d
mov byte [r11 + 7], sil
mov r13d, r8d
sub edx, r15d
ror edx, 0xd
ror ecx, 9
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor edx, ebp
xor ebx, edx
mov edx, dword [rsp + 0x30]
mov ebp, r9d
mov byte [r11 + 3], bl
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r11 + 2], bl
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
ror ebx, 8
xor dil, sil
mov byte [r11 + 5], sil
ror esi, 8
mov cl, sil
mov byte [r11], bl
mov byte [r11 + 4], sil
add r11, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub r12, 1
jne 0x10005501b
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa8]
cmp dil, byte [r14 + rbp + 8]
je 0x1000552ea
call fcn.100058248
lea r13, [0x1001094ec]
mov r9d, 0xffff
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], r13
mov rcx, qword [0x1004c43a0]
mov r10, rax
mov rax, 0xfffffffffffff000
and r12, 0xfffffffffffffff8
lea r8, [r12 + 0xfff]
and r10, rax
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 0x100055238
movabs rax, 0x8000800080008001
mov qword [0x1004c43a0], rcx
mul rdi
mov rax, qword [rsp + 0x80]
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 + 0x80], r9
jmp 0x1000552e0
xor esi, esi
test ecx, ecx
jns 0x100054fab
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100054fab
mov dword [rsp + 0x68], esi
mov r13d, esi
xor esi, esi
xor ebx, ebx
not r13d
jmp 0x100054fba
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1000552d0
jmp 0x100055403
lea r15, [0x100000000]
mov r13, qword [rsp + 0x88]
mov rsi, r15
mov rax, qword [0x1000487b8]
mov rbx, rbp
sub rbx, r13
sub rsi, rax
jne 0x100055317
test rbx, rbx
je 0x1000553f0
xor edi, edi
mov rcx, qword [0x1001d1e58]
mov r11, r13
sub r11, rbp
sub ebp, r15d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
lea r8d, [rcx - 1]
test r8d, r8d
js 0x10005536d
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x1d1e5c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x100055363
lea r8d, [rax - 1]
jmp 0x100055368
jbe 0x100055372
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10005533d
movsxd r10, edi
jmp 0x1000553e9
movsxd r10, eax
jmp 0x1000553e9
mov edx, dword [r14 + r10*4 + 0x1d1e5c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1000553f0
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 0x1000553c5
sub edi, 1
je 0x1000553c0
cmp edi, 1
jne 0x1000553cb
mov r9, rsi
jmp 0x1000553cb
mov r9, rbx
jmp 0x1000553cb
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1000553db
cmp edx, 1
jne 0x1000553e6
add qword [r8 + r11], r9
jmp 0x1000553df
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100055377
mov eax, dword [0x1002f8888]
mov eax, 0xed5c3ce2
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret