Function at 0x4b7ef0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0xe8
cmp dword [rcx + 0x4c], 0
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x30], r15
mov r12d, 0x111
mov rdi, rcx
mov dword [rcx + 0x34], 0
mov dword [rcx + 0x30], 0
jne 0x4b7fc5
mov dword [rcx + 0x4c], 1
mov rcx, qword [rcx]
call qword [rdi + 0x10]
mov rcx, qword [rdi]
lea rdx, [rdi + 0xa10]
mov dword [rdi + 0x40], eax
call qword [rdi + 0x20]
test eax, eax
mov r15d, eax
mov dword [rsp + 0x40], r15d
jne 0x4b7f69
xor esi, esi
jmp 0x4b7fd1
mov esi, dword [rdi + r15*4 + 0xa08]
cmp esi, dword [rdi + 0x48]
jne 0x4b7fd1
mov ebx, dword [rdi + 0x40]
mov rcx, qword [rdi]
cmp ebx, r12d
cmova ebx, r12d
call qword [rdi + 0x18]
mov ecx, dword [rdi + r15*4 + 0xa0c]
lea r11, [rax - 1]
mov rdx, 0xffffffffffffffff
sub rdx, rcx
mov ecx, ebx
add rsi, r11
add rcx, r11
cmp rsi, rcx
je 0x4b7fc0
nop
nop
movzx eax, byte [rdx + rsi]
cmp byte [rsi], al
jne 0x4b7fc0
inc rsi
cmp rsi, rcx
jne 0x4b7fb0
sub esi, r11d
jmp 0x4b7fd1
mov r15d, dword [rcx + 0x3c]
mov esi, dword [rcx + 0x38]
mov dword [rsp + 0x40], r15d
mov ebx, dword [rdi + 0x40]
cmp ebx, 2
jae 0x4b7fed
mov dword [rdi + 0xb8], 0xffffffff
mov eax, 1
jmp 0x4b97da
mov rcx, qword [rdi]
cmp ebx, r12d
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xc0], r14
cmova ebx, r12d
call qword [rdi + 0x18]
movzx r14d, byte [rax - 1]
lea r11, [rax - 1]
xor r13d, r13d
xor r10d, r10d
xor r9d, r9d
lea rbp, [rdi + 0x50]
xor r12d, r12d
nop
nop
nop
nop
mov ecx, dword [rbp]
mov r8, r11
sub r8, rcx
mov dword [rsp + r9 + 0x50], ecx
cmp r14b, byte [r8]
jne 0x4b808c
movzx eax, byte [r8 + 1]
cmp byte [r11 + 1], al
jne 0x4b808c
mov edx, 2
cmp ebx, edx
jbe 0x4b8072
lea rcx, [r11 + 2]
sub r8, r11
nop
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x4b8072
inc edx
inc rcx
cmp edx, ebx
jb 0x4b8060
mov dword [rsp + r9 + 0x98], edx
cmp edx, dword [rsp + r12 + 0x98]
jbe 0x4b8098
mov r13d, r10d
mov r12, r9
jmp 0x4b8098
mov dword [rsp + r9 + 0x98], 0
inc r10d
add r9, 4
add rbp, 4
cmp r10d, 4
jb 0x4b8030
mov ecx, dword [rdi + 0x48]
mov eax, r13d
mov r10d, dword [rsp + rax*4 + 0x98]
cmp r10d, ecx
mov dword [rsp + 0x20], r10d
jb 0x4b80e2
lea ecx, [r10 - 1]
lea edx, [r10 - 1]
mov dword [rdi + 0xb8], r13d
add dword [rdi + 0x4c], ecx
mov rcx, qword [rdi]
call qword [rdi + 0x28]
mov eax, dword [rsp + 0x20]
jmp 0x4b97ca
cmp esi, ecx
jb 0x4b810f
mov ecx, r15d
mov edx, dword [rdi + rcx*4 + 0xa0c]
lea ecx, [rsi - 1]
add dword [rdi + 0x4c], ecx
mov rcx, qword [rdi]
add edx, 4
mov dword [rdi + 0xb8], edx
lea edx, [rsi - 1]
call qword [rdi + 0x28]
mov eax, esi
jmp 0x4b97ca
mov eax, dword [rsp + 0x50]
mov rcx, r11
sub rcx, rax
cmp r10d, esi
mov dword [rsp + 0x34], eax
movzx ebp, byte [rcx]
cmovbe r10d, esi
cmp r10d, 2
mov dword [rsp + 0x20], r10d
jae 0x4b814b
cmp r14b, bpl
je 0x4b814b
mov dword [rdi + 0xb8], 0xffffffff
mov eax, 1
jmp 0x4b97ca
movzx eax, word [rdi + 0x44]
mov ecx, dword [rdi + 0xbc]
mov r12d, dword [rdi + 0x64]
mov r13d, dword [rdi + 0x44]
mov word [rdi + 0xd570], ax
mov eax, dword [rsp + 0xf8]
movzx edx, byte [r11 - 1]
and r12d, eax
shl eax, 8
add edx, eax
mov rax, qword [rdi + 0x68]
and edx, dword [rdi + 0x60]
shl edx, cl
cmp r13d, 7
lea ecx, [rdx + rdx*2]
lea rbx, [rax + rcx*2]
jb 0x4b8207
movzx r8d, r14b
xor r11d, r11d
movzx r9d, bpl
bts r8d, 8
mov r10d, 0x100
nop
nop
nop
mov ecx, r8d
add r9d, r9d
mov eax, r10d
shr ecx, 8
and eax, r9d
add eax, r10d
add ecx, eax
movzx edx, word [rbx + rcx*2]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
mov eax, r8d
and ecx, 1
xor eax, r9d
neg ecx
not eax
shr rcx, 4
and r10d, eax
and ecx, 0x7f
xor rdx, rcx
add r11d, dword [rdi + rdx*4 + 0x810]
cmp r8d, 0x10000
jb 0x4b81b0
mov r10d, dword [rsp + 0x20]
jmp 0x4b824f
movzx r8d, r14b
xor r9d, r9d
bts r8d, 8
nop
nop
nop
nop
mov eax, r8d
shr r8d, 1
movzx edx, word [rbx + r8*2]
and eax, 1
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
add r9d, dword [rdi + rdx*4 + 0x810]
cmp r8d, 2
jae 0x4b8220
mov r11d, r9d
mov r15d, dword [rsp + 0x98]
mov r8, r13
mov eax, r12d
shl r8, 4
mov rdx, r13
add r8, rax
movzx eax, word [rdi + r8*2 + 0x1f64]
shr rax, 4
mov eax, dword [rdi + rax*4 + 0x810]
mov dword [rdi + 0xd598], 0xffffffff
mov word [rdi + 0xd592], 0
lea ecx, [r11 + rax]
mov dword [rdi + 0xd58c], ecx
movzx eax, word [rdi + r8*2 + 0x1f64]
xor rax, 0x7f0
shr rax, 4
mov ecx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + r13*2 + 0x1f04]
xor rax, 0x7f0
mov dword [rsp + 0x3c], ecx
shr rax, 4
cmp bpl, r14b
mov eax, dword [rdi + rax*4 + 0x810]
lea r13d, [rcx + rax]
jne 0x4b8341
test r15d, r15d
jne 0x4b8341
movzx eax, word [rdi + rdx*2 + 0x1f1c]
movzx ecx, word [rdi + r8*2 + 0x20e4]
shr rcx, 4
shr rax, 4
mov edx, dword [rdi + rcx*4 + 0x810]
add edx, dword [rdi + rax*4 + 0x810]
add edx, r13d
cmp edx, dword [rdi + 0xd58c]
jae 0x4b8325
mov dword [rdi + 0xd58c], edx
mov dword [rdi + 0xd598], r15d
mov word [rdi + 0xd592], r15w
cmp r10d, 2
jae 0x4b8341
mov eax, dword [rdi + 0xd598]
mov dword [rdi + 0xb8], eax
mov eax, 1
jmp 0x4b97ca
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0xd594], 1
xor r10d, r10d
mov dword [rdi + 0xd57c], eax
mov eax, dword [rsp + 0x54]
movsxd r12, r12d
mov dword [rsp + 0x64], eax
mov dword [rdi + 0xd580], eax
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0xd584], eax
mov eax, dword [rsp + 0x5c]
lea rbx, [rsp + 0x98]
mov dword [rdi + 0xd588], eax
nop
nop
nop
movsxd r8, dword [rbx]
cmp r8d, 2
jb 0x4b84a2
test r10d, r10d
mov ecx, dword [rdi + 0x44]
movzx eax, word [rdi + rcx*2 + 0x1f1c]
jne 0x4b83dd
shl rcx, 4
shr rax, 4
add rcx, r12
movzx ecx, word [rdi + rcx*2 + 0x20e4]
xor rcx, 0x7f0
shr rcx, 4
mov r9d, dword [rdi + rcx*4 + 0x810]
add r9d, dword [rdi + rax*4 + 0x810]
jmp 0x4b844c
movzx r11d, word [rdi + rcx*2 + 0x1f34]
xor rax, 0x7f0
shr rax, 4
cmp r10d, 1
mov r9d, dword [rdi + rax*4 + 0x810]
jne 0x4b840f
mov rax, r11
shr rax, 4
add r9d, dword [rdi + rax*4 + 0x810]
jmp 0x4b844c
movzx edx, word [rdi + rcx*2 + 0x1f4c]
mov eax, 2
mov rcx, r11
sub eax, r10d
shr rdx, 4
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
and eax, 0x7f
xor rdx, rax
mov eax, dword [rdi + rdx*4 + 0x810]
add eax, dword [rdi + rcx*4 + 0x810]
add r9d, eax
mov rax, r12
mov rcx, r8
lea r11d, [r9 + r13]
imul rax, rax, 0x110
add rax, r8
shl rcx, 5
lea rdx, [rcx + rdi + 0xd578]
lea r9, [rdi + rax*4 + 0x9164]
mov eax, dword [r9]
lea ecx, [r11 + rax]
cmp ecx, dword [rdx - 0xc]
jae 0x4b8490
mov dword [rdx - 0xc], ecx
mov dword [rdx - 4], r8d
mov dword [rdx], r10d
mov word [rdx - 6], 0
add r8d, 0xffffffff
sub r9, 4
sub rdx, 0x20
cmp r8d, 2
jae 0x4b8474
inc r10d
add rbx, 4
cmp r10d, 4
jb 0x4b8390
lea r9d, [r15 + 1]
mov edx, 6
cmp r9d, esi
ja 0x4b85fb
mov eax, dword [rdi + 0x44]
mov r14d, dword [rsp + 0x3c]
xor esi, esi
movzx ecx, word [rdi + rax*2 + 0x1f04]
shr rcx, 4
add r14d, dword [rdi + rcx*4 + 0x810]
cmp r9d, 2
jae 0x4b84ef
lea r9d, [rdx - 4]
jmp 0x4b850c
lea rax, [rdi + 0xa10]
cmp r9d, dword [rax]
jbe 0x4b850c
nop
nop
add rax, 8
add esi, 2
cmp r9d, dword [rax]
ja 0x4b8500
mov r15d, dword [rsp + 0x40]
imul r12, r12, 0x110
movsxd rcx, r9d
add r12, rcx
lea r13, [rcx - 2]
shl rcx, 5
movsxd rax, esi
lea r10, [rcx + rdi + 0xd578]
lea r12, [rdi + r12*4 + 0x4d60]
lea rbp, [rdi + rax*4 + 0xa10]
mov ebx, dword [rbp + 4]
mov eax, dword [r12]
cmp r9d, 5
mov r8d, 3
lea r11d, [r14 + rax]
cmovb r8, r13
cmp ebx, 0x80
jae 0x4b8578
mov eax, ebx
shl r8, 7
and eax, 0x7f
add rax, r8
add r11d, dword [rdi + rax*4 + 0x16e4]
jmp 0x4b85bb
mov ecx, 0x12
cmp ebx, 0x80000
mov rax, rbx
cmovb ecx, edx
shl r8, 6
mov edx, 6
shr rax, cl
movzx eax, byte [rax + rdi + 0x2d64]
lea ecx, [rax + rcx*2]
mov eax, ecx
mov cl, bl
add rax, r8
and ecx, 0xf
mov eax, dword [rdi + rax*4 + 0x12e4]
add eax, dword [rdi + rcx*4 + 0x12a4]
add r11d, eax
cmp r11d, dword [r10 - 0xc]
jae 0x4b85d6
lea eax, [rbx + 4]
mov dword [r10 - 0xc], r11d
mov dword [r10 - 4], r9d
mov dword [r10], eax
mov word [r10 - 6], 0
cmp r9d, dword [rbp]
jne 0x4b85e8
add esi, 2
add rbp, 8
cmp esi, r15d
je 0x4b85fb
inc r9d
add r12, 4
inc r13
add r10, 0x20
jmp 0x4b8541
mov r12d, dword [rsp + 0x20]
mov r15d, 1
mov rbx, r15
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x88], r15
cmp r12d, ebx
je 0x4b96e8
lea rsi, [0x00400000]
nop
nop
nop
cmp r15d, 0x7c0
jae 0x4b968c
mov rcx, qword [rdi]
inc dword [rdi + 0x4c]
call qword [rdi + 0x10]
mov rcx, qword [rdi]
lea rdx, [rdi + 0xa10]
mov dword [rdi + 0x40], eax
call qword [rdi + 0x20]
test eax, eax
mov dword [rsp + 0x40], eax
jne 0x4b866a
xor ebp, ebp
mov qword [rsp + 0x78], rbp
jmp 0x4b86ec
mov esi, eax
mov ebp, dword [rdi + rsi*4 + 0xa08]
cmp ebp, dword [rdi + 0x48]
mov qword [rsp + 0x78], rbp
je 0x4b8686
lea rsi, [0x00400000]
jmp 0x4b86ec
mov ebx, dword [rdi + 0x40]
mov rcx, qword [rdi]
mov eax, 0x111
cmp ebx, eax
cmova ebx, eax
call qword [rdi + 0x18]
mov ecx, dword [rdi + rsi*4 + 0xa0c]
lea r11, [rax - 1]
mov rdx, 0xffffffffffffffff
sub rdx, rcx
mov ecx, ebx
add rbp, r11
add rcx, r11
cmp rbp, rcx
je 0x4b86d1
nop
nop
movzx eax, byte [rdx + rbp]
cmp byte [rbp], al
jne 0x4b86d1
inc rbp
cmp rbp, rcx
jne 0x4b86c0
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x88]
sub ebp, r11d
mov qword [rsp + 0x78], rbp
lea rsi, [0x00400000]
cmp ebp, dword [rdi + 0x48]
jae 0x4b96e2
mov r14d, dword [rsp + 0xf8]
shl rbx, 5
mov ecx, r15d
mov eax, dword [rbx + rdi + 0xd574]
inc r14d
sub ecx, eax
cmp eax, 1
mov dword [rsp + 0xf8], r14d
jne 0x4b8769
mov eax, ecx
shl rax, 5
cmp dword [rbx + rdi + 0xd578], 0
movzx ecx, word [rax + rdi + 0xd570]
jne 0x4b874f
movzx esi, byte [rcx + rsi + 0xdee28]
mov ebp, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x4b8879
movzx esi, byte [rcx + rsi + 0xdedf8]
mov ebp, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x4b8879
movzx r8d, word [rbx + rdi + 0xd572]
mov edx, dword [rbx + rdi + 0xd578]
test r8w, r8w
je 0x4b879f
movzx eax, r8w
mov esi, 8
sub ecx, eax
cmp r8w, 1
jne 0x4b87c7
xor esi, esi
cmp edx, 4
setb sil
add esi, 7
jmp 0x4b87c7
mov eax, ecx
shl rax, 5
cmp edx, 4
movzx r8d, word [rax + rdi + 0xd570]
jae 0x4b87be
movzx esi, byte [r8 + rsi + 0xdee18]
jmp 0x4b87c7
movzx esi, byte [r8 + rsi + 0xdee08]
mov eax, ecx
shl rax, 5
cmp edx, 4
lea rcx, [rax + rdi + 0xd56c]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x64], eax
jae 0x4b8856
test edx, edx
jne 0x4b880c
mov r8d, dword [rcx + 0x18]
mov ebp, eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x50], eax
mov eax, dword [rcx + 0x14]
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x54], eax
mov eax, dword [rcx + 0x1c]
mov dword [rsp + 0x5c], eax
jmp 0x4b8879
cmp edx, 1
mov ebp, dword [rcx + 0x14]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x34], ebp
jne 0x4b8832
mov r8d, dword [rcx + 0x18]
mov eax, dword [rcx + 0x1c]
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], eax
jmp 0x4b8879
mov rax, rdx
mov r8d, ebp
mov dword [rsp + 0x58], ebp
mov ebp, dword [rcx + rdx*4 + 0x10]
xor rax, 1
mov eax, dword [rcx + rax*4 + 0x10]
mov dword [rsp + 0x34], ebp
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x5c], eax
jmp 0x4b8879
mov r8d, dword [rcx + 0x14]
lea ebp, [rdx - 3]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x54], eax
mov eax, dword [rcx + 0x18]
mov dword [rsp + 0x34], ebp
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], eax
mov ecx, dword [rsp + 0x64]
mov word [rbx + rdi + 0xd570], si
mov dword [rbx + rdi + 0xd57c], ebp
mov dword [rbx + rdi + 0xd584], r8d
mov dword [rbx + rdi + 0xd588], eax
mov dword [rbx + rdi + 0xd580], ecx
mov rcx, qword [rdi]
call qword [rdi + 0x18]
mov edx, dword [rbx + rdi + 0xd56c]
movzx r13d, byte [rax - 1]
lea r8, [rax - 1]
mov ecx, ebp
mov ebp, dword [rdi + 0x64]
and ebp, r14d
mov r14d, dword [rbx + rdi + 0xd58c]
mov eax, esi
mov qword [rsp + 0x90], rax
mov eax, ebp
mov r11d, esi
shl r11, 4
xor r10d, r10d
mov r12, r8
add r11, rax
sub r12, rcx
mov qword [rsp + 0x48], r8
movzx eax, word [rdi + r11*2 + 0x1f64]
movzx r9d, byte [r12]
mov dword [rsp + 0x2c], ebp
mov rcx, rax
xor rax, 0x7f0
mov byte [rsp + 0x28], r9b
shr rax, 4
shr rcx, 4
mov qword [rsp + 0x68], r11
mov eax, dword [rdi + rax*4 + 0x810]
mov dword [rsp + 0x38], r10d
add eax, edx
cmp r14d, 0x40000000
mov dword [rsp + 0x3c], eax
mov eax, dword [rdi + rcx*4 + 0x810]
lea r15d, [rdx + rax]
jae 0x4b8944
cmp r9b, r13b
je 0x4b8949
cmp r15d, r14d
jbe 0x4b8951
xor r15d, r15d
jmp 0x4b8a94
mov ecx, dword [rdi + 0xbc]
mov eax, dword [rsp + 0xf8]
movzx edx, byte [r8 - 1]
shl eax, 8
add edx, eax
mov rax, qword [rdi + 0x68]
and edx, dword [rdi + 0x60]
shl edx, cl
cmp esi, 7
lea ecx, [rdx + rdx*2]
lea rbp, [rax + rcx*2]
jb 0x4b89f8
movzx r8d, r13b
xor r11d, r11d
movzx r9d, r9b
bts r8d, 8
mov r10d, 0x100
nop
nop
nop
nop
mov ecx, r8d
add r9d, r9d
mov eax, r10d
shr ecx, 8
and eax, r9d
add eax, r10d
add ecx, eax
movzx edx, word [rbp + rcx*2]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
mov eax, r8d
and ecx, 1
xor eax, r9d
neg ecx
not eax
shr rcx, 4
and r10d, eax
and ecx, 0x7f
xor rdx, rcx
add r11d, dword [rdi + rdx*4 + 0x810]
cmp r8d, 0x10000
jb 0x4b89a0
mov r10d, dword [rsp + 0x38]
jmp 0x4b8a40
movzx r8d, r13b
xor r9d, r9d
bts r8d, 8
nop
nop
nop
mov eax, r8d
shr r8d, 1
movzx edx, word [rbp + r8*2]
and eax, 1
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
add r9d, dword [rdi + rdx*4 + 0x810]
cmp r8d, 2
jae 0x4b8a10
mov r11d, r9d
add r15d, r11d
cmp r15d, r14d
jae 0x4b8a86
mov r9b, byte [rsp + 0x28]
mov r11, qword [rsp + 0x68]
mov ebp, dword [rsp + 0x2c]
mov dword [rbx + rdi + 0xd58c], r15d
mov dword [rbx + rdi + 0xd594], 1
mov dword [rbx + rdi + 0xd598], 0xffffffff
mov word [rbx + rdi + 0xd592], 0
mov r10d, 1
jmp 0x4b8a94
mov r9b, byte [rsp + 0x28]
mov r11, qword [rsp + 0x68]
mov ebp, dword [rsp + 0x2c]
mov ecx, dword [rdi + 0x40]
mov r14d, dword [rsp + 0x3c]
mov edx, esi
movzx eax, word [rdi + rdx*2 + 0x1f04]
xor rax, 0x7f0
shr rax, 4
mov eax, dword [rdi + rax*4 + 0x810]
add r14d, eax
mov eax, 0x7ff
sub eax, dword [rsp + 0x24]
mov dword [rsp + 0x38], r14d
cmp ecx, eax
cmova ecx, eax
cmp esi, 7
mov dword [rsp + 0x60], ecx
jae 0x4b8b67
cmp r9b, r13b
jne 0x4b8b67
mov r8d, dword [rbx + rdi + 0xd58c]
cmp r14d, r8d
jae 0x4b8b67
cmp dword [rbx + rdi + 0xd594], 2
jb 0x4b8b04
cmp dword [rbx + rdi + 0xd598], 0
je 0x4b8b67
movzx eax, word [rdi + rdx*2 + 0x1f1c]
movzx ecx, word [rdi + r11*2 + 0x20e4]
shr rcx, 4
shr rax, 4
mov edx, dword [rdi + rcx*4 + 0x810]
add edx, dword [rdi + rax*4 + 0x810]
add edx, r14d
cmp edx, r8d
jae 0x4b8b63
mov ecx, dword [rsp + 0x60]
mov dword [rbx + rdi + 0xd58c], edx
mov dword [rbx + rdi + 0xd594], 1
mov dword [rbx + rdi + 0xd598], 0
mov word [rbx + rdi + 0xd592], 0
xor r10d, r10d
jmp 0x4b8b67
mov ecx, dword [rsp + 0x60]
cmp ecx, 2
jb 0x4b9655
mov edx, dword [rdi + 0x48]
cmp ecx, edx
mov ebx, edx
cmovbe ebx, ecx
test r10d, r10d
mov dword [rsp + 0x30], ebx
jne 0x4b8cff
test r15d, r15d
je 0x4b8d10
cmp r9b, r13b
je 0x4b8d21
cmp ecx, 2
jbe 0x4b8d32
mov r13, qword [rsp + 0x48]
movzx eax, byte [r12 + 1]
cmp byte [r13 + 1], al
jne 0x4b8d43
movzx eax, byte [r12 + 2]
cmp byte [r13 + 2], al
jne 0x4b8d4f
inc edx
mov r10d, 3
cmp edx, ecx
mov r11, r10
cmova edx, ecx
cmp edx, r10d
jbe 0x4b8bfa
lea rcx, [r13 + 3]
sub r12, r13
movzx eax, byte [r12 + rcx]
cmp byte [rcx], al
jne 0x4b8bfa
inc r10d
inc r11
inc rcx
cmp r10d, edx
jb 0x4b8be3
mov r9d, dword [rsp + 0xf8]
mov r12d, dword [rsp + 0x20]
mov ecx, esi
inc r9d
lea rax, [0x00400000]
movzx eax, byte [rcx + rax + 0xdedf8]
and r9d, dword [rdi + 0x64]
mov rcx, rax
mov r8, rax
shl rcx, 4
add rcx, r9
movzx edx, word [rdi + rcx*2 + 0x20e4]
movzx eax, word [rdi + rcx*2 + 0x1f64]
xor rax, 0x7f0
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
mov ecx, dword [rdi + rdx*4 + 0x810]
mov rdx, qword [rsp + 0x88]
add ecx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + r8*2 + 0x1f04]
add rdx, r11
xor rax, 0x7f0
shr rax, 4
add ecx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + r8*2 + 0x1f1c]
shr rax, 4
add ecx, dword [rdi + rax*4 + 0x810]
lea r8d, [r15 + rcx]
mov r15d, dword [rsp + 0x24]
lea eax, [r10 + r15]
cmp r12d, eax
cmovb r12d, eax
shl rdx, 5
mov dword [rsp + 0x20], r12d
imul r9, r9, 0x110
add r9, r11
add r8d, dword [rdi + r9*4 + 0x9160]
cmp r8d, dword [rdx + rdi + 0xd56c]
jae 0x4b8d59
lea eax, [r10 - 1]
mov dword [rdx + rdi + 0xd56c], r8d
mov dword [rdx + rdi + 0xd578], 0
mov dword [rdx + rdi + 0xd574], eax
mov word [rdx + rdi + 0xd572], 1
jmp 0x4b8d59
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b8d59
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b8d59
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b8d59
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b8d59
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b8d59
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
lea rax, [rsp + 0x50]
xor esi, esi
movsxd rbp, ebp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x2c], 2
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x68], rbp
nop
mov eax, dword [rax]
mov r11, r13
sub r11, rax
movzx eax, byte [r11]
cmp byte [r13], al
jne 0x4b91a2
movzx eax, byte [r11 + 1]
cmp byte [r13 + 1], al
jne 0x4b91a2
mov r9d, 2
cmp ebx, r9d
jbe 0x4b8dc6
mov ecx, r9d
movzx eax, byte [rcx + r11]
cmp byte [rcx + r13], al
jne 0x4b8dc6
inc r9d
cmp r9d, ebx
jb 0x4b8db0
mov rbx, qword [rsp + 0x90]
lea eax, [r9 + r15]
mov r8d, r9d
movzx edx, word [rdi + rbx*2 + 0x1f1c]
cmp r12d, eax
cmovb r12d, eax
test esi, esi
mov dword [rsp + 0x20], r12d
jne 0x4b8e23
mov rax, rbx
shl rax, 4
add rax, rbp
movzx ecx, word [rdi + rax*2 + 0x20e4]
mov rax, rdx
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov r10d, dword [rdi + rcx*4 + 0x810]
add r10d, dword [rdi + rax*4 + 0x810]
jmp 0x4b8e8f
movzx ecx, word [rdi + rbx*2 + 0x1f34]
mov rax, rdx
xor rax, 0x7f0
shr rax, 4
cmp esi, 1
mov r10d, dword [rdi + rax*4 + 0x810]
jne 0x4b8e56
mov rax, rcx
shr rax, 4
add r10d, dword [rdi + rax*4 + 0x810]
jmp 0x4b8e8f
movzx edx, word [rdi + rbx*2 + 0x1f4c]
mov eax, 2
xor rcx, 0x7f0
sub eax, esi
shr rdx, 4
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
mov eax, dword [rdi + rdx*4 + 0x810]
add eax, dword [rdi + rcx*4 + 0x810]
add r10d, eax
movsxd rcx, r9d
lea ebp, [r10 + r14]
mov dword [rsp + 0x80], ebp
mov rbp, qword [rsp + 0x68]
mov rax, rbp
imul rax, rax, 0x110
mov qword [rsp + 0x98], rax
add rax, rcx
lea rdx, [rdi + rax*4 + 0x9164]
mov rax, qword [rsp + 0x88]
add rax, rcx
shl rax, 5
lea rcx, [rax + rdi + 0xd578]
mov edi, dword [rsp + 0x80]
nop
mov eax, dword [rdx]
lea r10d, [rdi + rax]
cmp r10d, dword [rcx - 0xc]
jae 0x4b8efc
mov dword [rcx - 0xc], r10d
mov dword [rcx - 4], r8d
mov dword [rcx], esi
mov word [rcx - 6], 0
add r8d, 0xffffffff
sub rdx, 4
sub rcx, 0x20
cmp r8d, 2
jae 0x4b8ee0
test esi, esi
mov rdi, qword [rsp + 0xf0]
jne 0x4b8f23
lea r10d, [r9 + 1]
mov dword [rsp + 0x2c], r10d
mov eax, dword [rdi + 0x48]
lea r8d, [r9 + 1]
lea ebx, [r8 + rax]
mov eax, dword [rsp + 0x60]
cmp ebx, eax
cmova ebx, eax
add r8d, 2
cmp r8d, ebx
ja 0x4b9192
lea eax, [r8 - 2]
mov ecx, eax
movzx eax, byte [rax + r11]
cmp byte [rcx + r13], al
jne 0x4b9198
lea eax, [r8 - 1]
mov ecx, eax
movzx eax, byte [rax + r11]
cmp byte [rcx + r13], al
jne 0x4b919e
mov eax, dword [rsp + 0xf8]
mov r14, qword [rdi + 0x68]
mov r15d, r9d
movzx r10d, byte [r15 + r13]
movzx esi, byte [r15 + r11]
lea ecx, [r9 + rax]
mov eax, dword [rdi + 0x64]
xor r12d, r12d
bts r10d, 8
and eax, ecx
shl ecx, 8
mov ebp, 0x100
mov dword [rsp + 0x74], eax
movzx eax, byte [r15 + r13 - 1]
add eax, ecx
mov ecx, dword [rdi + 0xbc]
and eax, dword [rdi + 0x60]
shl eax, cl
lea r13d, [rax + rax*2]
nop
nop
add esi, esi
mov eax, ebp
mov ecx, r10d
shr ecx, 8
and eax, esi
add eax, ebp
add eax, ecx
mov ecx, r10d
add r10d, r10d
shr ecx, 7
add rax, r13
movzx edx, word [r14 + rax*2]
and ecx, 1
mov eax, r10d
neg ecx
shr rdx, 4
xor eax, esi
shr rcx, 4
not eax
and ecx, 0x7f
and ebp, eax
xor rdx, rcx
add r12d, dword [rdi + rdx*4 + 0x810]
cmp r10d, 0x10000
jb 0x4b8fc0
mov r10d, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov ebp, dword [rsp + 0x80]
add rax, r15
lea rdx, [0x00400000]
movzx ecx, byte [rcx + rdx + 0xdee18]
shl rcx, 4
add rcx, r10
movzx ecx, word [rdi + rcx*2 + 0x1f64]
shr rcx, 4
mov edx, dword [rdi + rcx*4 + 0x810]
add edx, dword [rdi + rax*4 + 0x9164]
lea eax, [r10 + 1]
and eax, dword [rdi + 0x64]
add edx, r12d
movzx ecx, word [rdi + rax*2 + 0x2184]
mov r10d, eax
movzx eax, word [rdi + rax*2 + 0x2004]
xor rax, 0x7f0
add ebp, edx
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov edx, dword [rdi + rcx*4 + 0x810]
add edx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + 0x1f0e]
xor rax, 0x7f0
shr rax, 4
add edx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + 0x1f26]
shr rax, 4
add edx, dword [rdi + rax*4 + 0x810]
movsxd rax, r8d
add ebp, edx
cmp r8d, ebx
jae 0x4b90f6
mov r13, qword [rsp + 0x48]
sub r11, r13
lea rcx, [r13 + rax]
movzx eax, byte [r11 + rcx]
cmp byte [rcx], al
jne 0x4b90fb
inc r8d
inc rcx
cmp r8d, ebx
jb 0x4b90e0
jmp 0x4b90fb
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
sub r8d, r9d
lea ecx, [r8 + r9]
add ecx, r15d
cmp r12d, ecx
cmovb r12d, ecx
add r8d, 0xffffffff
mov eax, r8d
mov dword [rsp + 0x20], r12d
imul r10, r10, 0x110
add r10, rax
mov eax, dword [rdi + r10*4 + 0x9164]
lea edx, [rbp + rax]
mov eax, ecx
shl rax, 5
cmp edx, dword [rax + rdi + 0xd56c]
jae 0x4b917e
mov esi, dword [rsp + 0x70]
mov ebx, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
inc r9w
mov dword [rax + rdi + 0xd578], esi
mov dword [rax + rdi + 0xd56c], edx
mov dword [rax + rdi + 0xd574], r8d
mov word [rax + rdi + 0xd572], r9w
jmp 0x4b91a2
mov esi, dword [rsp + 0x70]
mov ebx, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
jmp 0x4b91a2
mov ebx, dword [rsp + 0x30]
jmp 0x4b91a2
mov ebx, dword [rsp + 0x30]
jmp 0x4b91a2
mov ebx, dword [rsp + 0x30]
mov rax, qword [rsp + 0xa8]
inc esi
add rax, 4
cmp esi, 4
mov dword [rsp + 0x70], esi
mov qword [rsp + 0xa8], rax
jb 0x4b8d80
mov rcx, qword [rsp + 0x78]
cmp ecx, ebx
jbe 0x4b91fa
lea r8, [rdi + 0xa10]
xor edx, edx
xor eax, eax
cmp ebx, dword [r8]
mov ecx, ebx
jbe 0x4b91ed
add rax, 2
add edx, 2
cmp ebx, dword [r8 + rax*4]
ja 0x4b91e0
add edx, 2
mov dword [r8 + rax*4], ebx
mov dword [rsp + 0x40], edx
jmp 0x4b9201
lea r8, [rdi + 0xa10]
mov r10d, dword [rsp + 0x2c]
cmp ecx, r10d
jb 0x4b965f
mov rax, qword [rsp + 0x90]
mov edx, dword [rsp + 0x3c]
movzx eax, word [rdi + rax*2 + 0x1f04]
shr rax, 4
mov eax, dword [rdi + rax*4 + 0x810]
add edx, eax
lea eax, [rcx + r15]
cmp r12d, eax
mov dword [rsp + 0x74], edx
cmovb r12d, eax
xor r11d, r11d
xor eax, eax
cmp r10d, dword [r8]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x20], r12d
jbe 0x4b9273
nop
nop
nop
nop
add rax, 2
add r11d, 2
cmp r10d, dword [r8 + rax*4]
ja 0x4b9260
mov dword [rsp + 0x30], r11d
mov r10d, dword [r8 + rax*4 + 4]
lea rsi, [r8 + rax*4]
mov eax, 6
cmp r10d, 0x80000
mov ecx, 0x12
mov qword [rsp + 0x78], rsi
cmovb ecx, eax
mov rax, r10
mov dword [rsp + 0x38], r10d
shr rax, cl
mov r8, r10
imul rbp, rbp, 0x110
movzx eax, byte [rax + rdi + 0x2d64]
mov qword [rsp + 0x68], rbp
lea r9d, [rax + rcx*2]
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0xf8]
lea r12d, [rax + rcx]
lea ebx, [rax + 3]
shl r12d, 8
add r15d, 0xfffffffd
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x2c], r12d
nop
mov rax, qword [rsp + 0x68]
lea r14d, [rbx - 3]
mov ebp, r14d
add rax, rbp
mov ecx, dword [rdi + rax*4 + 0x4d60]
lea eax, [rbx - 5]
lea r13d, [rdx + rcx]
mov edx, 3
lea ecx, [rbx - 5]
cmp eax, edx
cmovb edx, ecx
cmp r10d, 0x80
jae 0x4b932c
mov al, r8b
mov ecx, edx
shl rcx, 7
and eax, 0x7f
add rcx, rax
add r13d, dword [rdi + rcx*4 + 0x16e4]
jmp 0x4b934d
shl rdx, 6
mov eax, r9d
mov cl, r8b
add rdx, rax
and ecx, 0xf
mov eax, dword [rdi + rdx*4 + 0x12e4]
add eax, dword [rdi + rcx*4 + 0x12a4]
add r13d, eax
lea ecx, [r15 + rbx]
shl rcx, 5
cmp r13d, dword [rcx + rdi + 0xd56c]
jae 0x4b9384
lea eax, [r10 + 4]
mov dword [rcx + rdi + 0xd56c], r13d
mov dword [rcx + rdi + 0xd574], r14d
mov dword [rcx + rdi + 0xd578], eax
mov word [rcx + rdi + 0xd572], 0
cmp r14d, dword [rsi]
jne 0x4b9632
mov eax, dword [rdi + 0x48]
mov r10, qword [rsp + 0x48]
mov r9d, ebx
lea edx, [rax + rbx - 2]
mov eax, dword [rsp + 0x60]
sub r10, r8
cmp edx, eax
cmova edx, eax
cmp ebx, edx
ja 0x4b95e7
mov r8, qword [rsp + 0x48]
lea eax, [rbx - 2]
mov ecx, eax
movzx eax, byte [rax + r10 - 1]
cmp byte [rcx + r8], al
jne 0x4b95e7
lea eax, [rbx - 1]
mov ecx, eax
movzx eax, byte [rax + r10 - 1]
cmp byte [rcx + r8], al
jne 0x4b95e7
cmp ebx, edx
movsxd rax, ebx
jae 0x4b940c
lea rcx, [r8 + rax]
lea r8, [r10 - 1]
sub r8, qword [rsp + 0x48]
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x4b9407
inc r9d
inc rcx
cmp r9d, edx
jb 0x4b93f3
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x90]
mov r15d, dword [rsp + 0xf8]
movzx r8d, byte [r8 + r14]
movzx r10d, byte [r10 + r14 - 1]
add r15d, 0xfffffffd
lea rcx, [0x00400000]
movzx ecx, byte [rax + rcx + 0xdee08]
add r15d, ebx
sub r9d, r14d
and r15d, dword [rdi + 0x64]
shl rcx, 4
xor esi, esi
mov eax, r15d
bts r8d, 8
mov r11d, 0x100
add rcx, rax
movzx eax, word [rdi + rcx*2 + 0x1f64]
mov ecx, dword [rdi + 0xbc]
shr rax, 4
add r13d, dword [rdi + rax*4 + 0x810]
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + r14 - 1]
add eax, r12d
mov r12, qword [rdi + 0x68]
and eax, dword [rdi + 0x60]
shl eax, cl
lea ebp, [rax + rax*2]
nop
add r10d, r10d
mov eax, r11d
mov ecx, r8d
shr ecx, 8
and eax, r10d
add eax, r11d
add eax, ecx
mov ecx, r8d
add r8d, r8d
shr ecx, 7
add rax, rbp
movzx edx, word [r12 + rax*2]
and ecx, 1
mov eax, r8d
neg ecx
shr rdx, 4
xor eax, r10d
shr rcx, 4
not eax
and ecx, 0x7f
and r11d, eax
xor rdx, rcx
add esi, dword [rdi + rdx*4 + 0x810]
cmp r8d, 0x10000
jb 0x4b9490
lea eax, [r15 + 1]
and eax, dword [rdi + 0x64]
mov r8d, eax
movzx ecx, word [rdi + rax*2 + 0x2164]
movzx eax, word [rdi + rax*2 + 0x1fe4]
xor rax, 0x7f0
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov edx, dword [rdi + rcx*4 + 0x810]
lea ecx, [r14 + r9]
add edx, dword [rdi + rax*4 + 0x810]
add ecx, dword [rsp + 0x24]
movzx eax, word [rdi + 0x1f0c]
xor rax, 0x7f0
shr rax, 4
add edx, dword [rdi + rax*4 + 0x810]
movzx eax, word [rdi + 0x1f24]
shr rax, 4
add edx, dword [rdi + rax*4 + 0x810]
mov eax, dword [rsp + 0x20]
add edx, esi
add r13d, edx
cmp eax, ecx
mov edx, ecx
cmovb eax, ecx
add r9d, 0xffffffff
shl rdx, 5
mov dword [rsp + 0x20], eax
mov eax, r9d
imul r8, r8, 0x110
add r8, rax
mov eax, dword [rdi + r8*4 + 0x9164]
lea r8d, [r13 + rax]
cmp r8d, dword [rdx + rdi + 0xd56c]
jae 0x4b95d3
mov eax, dword [rsp + 0x38]
mov r11d, dword [rsp + 0x30]
mov rsi, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x2c]
mov r15d, dword [rsp + 0x3c]
inc r14w
add eax, 4
mov dword [rdx + rdi + 0xd56c], r8d
mov dword [rdx + rdi + 0xd574], r9d
mov dword [rdx + rdi + 0xd578], eax
mov word [rdx + rdi + 0xd572], r14w
jmp 0x4b95e7
mov r11d, dword [rsp + 0x30]
mov rsi, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x2c]
mov r15d, dword [rsp + 0x3c]
add r11d, 2
add rsi, 8
cmp r11d, dword [rsp + 0x40]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x78], rsi
je 0x4b9649
mov r10d, dword [rsi + 4]
mov eax, 6
mov ecx, 0x12
cmp r10d, 0x80000
mov dword [rsp + 0x38], r10d
mov r8, r10
cmovb ecx, eax
mov rax, r10
shr rax, cl
movzx eax, byte [rax + rdi + 0x2d64]
lea r9d, [rax + rcx*2]
mov edx, dword [rsp + 0x74]
add r12d, 0x100
inc ebx
mov dword [rsp + 0x2c], r12d
jmp 0x4b92e0
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
jmp 0x4b965f
mov r12d, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x24]
mov rbx, qword [rsp + 0x88]
inc r15d
lea rsi, [0x00400000]
inc rbx
cmp r15d, r12d
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x88], rbx
jne 0x4b8630
jmp 0x4b96e8
mov eax, r15d
mov ebx, r15d
shl rax, 5
mov r8d, dword [rax + rdi + 0xd56c]
lea eax, [r15 + 1]
cmp eax, r12d
movsxd rcx, eax
ja 0x4b96cd
shl rcx, 5
lea rcx, [rcx + rdi + 0xd56c]
mov edx, dword [rcx]
cmp r8d, edx
jb 0x4b96c2
mov r8d, edx
mov ebx, eax
inc eax
add rcx, 0x20
cmp eax, r12d
jbe 0x4b96b6
mov edx, ebx
sub edx, r15d
je 0x4b96dd
mov rcx, qword [rdi]
add dword [rdi + 0x4c], edx
call qword [rdi + 0x28]
mov r15d, ebx
jmp 0x4b96e8
mov dword [rdi + 0x3c], eax
mov dword [rdi + 0x38], ebp
movsxd rax, r12d
shl rax, 5
lea rcx, [rax + rdi + 0xd56c]
nop
nop
nop
mov dword [rcx], 0x40000000
sub rcx, 0x20
add r12d, 0xffffffff
jne 0x4b9700
lea r8d, [r15 + 1]
movsxd rax, r8d
mov dword [rdi + 0x34], r8d
shl rax, 5
lea rdx, [rax + rdi + 0xd574]
lea rcx, [rax + rdi + 0xd578]
nop
mov eax, r15d
shl rax, 5
mov r9d, dword [rax + rdi + 0xd574]
movzx r10d, word [rax + rdi + 0xd572]
mov r11d, dword [rax + rdi + 0xd578]
sub r15d, r9d
test r10d, r10d
je 0x4b97a0
sub rdx, 0x20
add r8d, 0xffffffff
sub rcx, 0x20
sub r15d, r10d
cmp r10d, 1
mov dword [rdx], r9d
mov r9d, r10d
jne 0x4b977e
mov dword [rcx], r11d
mov r11d, 0xffffffff
jmp 0x4b97a0
mov dword [rcx], 0
sub rcx, 0x20
add r8d, 0xffffffff
sub rdx, 0x20
lea r9d, [r10 - 1]
mov dword [rcx], 0xffffffff
mov dword [rdx], 1
test r15d, r15d
je 0x4b97bc
sub rcx, 0x20
add r8d, 0xffffffff
sub rdx, 0x20
mov dword [rdx], r9d
mov dword [rcx], r11d
jmp 0x4b9730
mov dword [rdi + 0xb8], r11d
mov dword [rdi + 0x30], r8d
mov eax, r9d
mov r13, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
add rsp, 0xe8
ret