Function at 0x14002d0f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov qword [rbp - 0x28], rdx
mov rbx, rcx
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x20], r8
xor r13d, r13d
mov dword [rbp - 0x54], 0xff
call fcn.14002cc30
test rax, rax
je 0x14002d889
mov eax, dword [rbx + 4]
mov ecx, dword [rbp - 0x58]
mov dword [rsp + 0x7c], eax
cdq
mov r8d, eax
mov qword [rsp + 0x520], rdi
mov eax, dword [rbp - 0x64]
xor r8d, edx
mov edi, dword [rbp - 0x70]
sub r8d, edx
mov dword [rsp + 0x44], eax
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp - 0x54]
mov qword [rsp + 0x510], r14
mov r14d, dword [rbp - 0x68]
mov dword [rsp + 0x34], eax
mov eax, dword [rbp - 0x50]
mov qword [rsp + 0x508], r15
mov r15d, dword [rbp - 0x6c]
mov dword [rsp + 0x38], eax
mov dword [rbx + 4], r8d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x3c], edi
cmp r14d, 0xc
jne 0x14002d1da
cmp edi, 0x18
jge 0x14002d1ef
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov ecx, dword [rsp + 0x40]
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x14002d1ec
cmp edi, 0x10
jge 0x14002d1ec
mov r13d, r15d
sub r13d, eax
sub r13d, r14d
sar r13d, 2
cmp edi, 0x18
jne 0x14002d200
cmp ecx, 0xff000000
jne 0x14002d200
mov eax, 3
jmp 0x14002d20a
xor eax, eax
test ecx, ecx
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x14002e05d
jne 0x14002d223
lea r9d, [rcx*4]
jmp 0x14002d245
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14002e05d
lea r9d, [rcx*4]
test r9d, r9d
js 0x14002e05d
test r8d, r8d
js 0x14002e05d
je 0x14002d262
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14002e05d
mov qword [rsp + 0x528], rsi
test ecx, ecx
jne 0x14002d278
lea r9d, [rcx*4]
jmp 0x14002d29b
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14002e03a
lea edx, [rcx*4]
test edx, edx
js 0x14002e03a
mov r9d, edx
test r8d, r8d
je 0x14002d2b2
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14002e03a
imul r8d, ecx
shl r8d, 2
movsxd rcx, r8d
call fcn.1400a9790
mov qword [rbp - 0x78], rax
mov rsi, rax
test rax, rax
je 0x14002e03a
mov qword [rsp + 0x518], r12
cmp edi, 0x10
jge 0x14002d8c6
xor edi, edi
test r13d, r13d
je 0x14002d8a4
cmp r13d, 0x100
jg 0x14002d8a4
test r13d, r13d
jle 0x14002d44c
mov esi, dword [rsp + 0x20]
lea r14, [rbx + 0x30]
xor r12d, r12d
movsxd r15, r13d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14002d33f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d368
cmp dword [rbx + 0x30], edi
lea r14, [rbx + 0x30]
je 0x14002d366
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d368
xor cl, cl
mov qword [rsp + 0x60], r14
mov byte [rbp + r12*4 - 0xe], cl
cmp rax, qword [rbx + 0xc0]
jae 0x14002d38a
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d3af
cmp dword [r14], edi
je 0x14002d3ad
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d3af
xor cl, cl
mov byte [rbp + r12*4 - 0xf], cl
cmp rax, qword [rbx + 0xc0]
jae 0x14002d3d0
movzx ecx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d3f5
cmp dword [r14], edi
je 0x14002d3f3
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d3f5
xor cl, cl
mov byte [rbp + r12*4 - 0x10], cl
cmp esi, 0xc
je 0x14002d42c
cmp rax, qword [rbx + 0xc0]
jae 0x14002d414
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d42c
mov rax, qword [rsp + 0x60]
cmp dword [rax], edi
je 0x14002d42c
mov rcx, rbx
call fcn.140023860
inc qword [rbx + 0xb8]
mov byte [rbp + r12*4 - 0xd], 0xff
inc r12
cmp r12, r15
jl 0x14002d320
mov rsi, qword [rbp - 0x78]
mov r15d, dword [rsp + 0x24]
mov r14d, dword [rsp + 0x20]
xor eax, eax
cmp r14d, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, dword [rsp + 0x38]
sub r15d, r14d
jns 0x14002d479
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x14002d4b7
cmp qword [rbx + 0x10], rdi
je 0x14002d4ad
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x14002d4ad
mov rax, qword [rbx + 0xc0]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x14002d4b7
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov r13d, dword [rsp + 0x3c]
mov rcx, rbx
mov eax, InitCommonControls
add rcx, rax
mov qword [rsp + 0x28], rcx
cmp r13d, 1
jne 0x14002d4df
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14002d50b
cmp r13d, 4
jne 0x14002d4f9
mov r12d, dword [rbx]
lea rax, [rbx + 0x10]
inc r12d
mov qword [rsp + 0x28], rax
shr r12d, 1
jmp 0x14002d50b
cmp r13d, 8
jne 0x14002d83b
mov r12d, dword [rbx]
mov qword [rsp + 0x28], rcx
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x14002d685
xor r13d, r13d
test eax, eax
jle 0x14002df5a
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov r14d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x14002d555
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d57b
cmp dword [rbx + 0x30], 0
je 0x14002d579
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d57b
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r8d, cl
test edx, edx
jle 0x14002d631
nop dword [rax]
mov eax, r8d
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x10]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0xf]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0xe]
mov byte [rdi + rsi + 2], al
lea eax, [r15 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r15d, eax
add rdi, 4
cmp eax, edx
je 0x14002d631
sub r14d, 1
jns 0x14002d626
mov rax, qword [rbx + 0xb8]
mov r14d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x14002d5fc
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d622
cmp dword [rbx + 0x30], 0
je 0x14002d620
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002d622
xor cl, cl
movzx r8d, cl
mov edx, dword [rbx]
cmp r15d, edx
jl 0x14002d590
cmp qword [rbx + 0x10], 0
je 0x14002d665
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x14002d665
mov rax, qword [rbx + 0xc0]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14002d66f
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x14002d530
jmp 0x14002df5a
xor r15d, r15d
test eax, eax
jle 0x14002df5a
xor r14d, r14d
cmp dword [rbx], r14d
jle 0x14002d7e3
nop dword [rax]
mov r8, qword [rbx + 0xb8]
cmp r8, qword [rbx + 0xc0]
jae 0x14002d6c0
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x14002d6e7
cmp dword [rbx + 0x30], 0
je 0x14002d6e5
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x14002d6e7
xor cl, cl
mov edx, gethostbyname
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rdx + rbx]
cmp r13d, 4
jne 0x14002d709
mov r10d, eax
and r10d, 0xf
shr eax, 4
mov r9d, dword [rbx]
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x10]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xf]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xe]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r14 + 1]
cmp eax, r9d
je 0x14002d7e3
cmp r13d, 8
jne 0x14002d79e
cmp r8, qword [rbx + 0xc0]
jae 0x14002d771
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x14002d79a
cmp dword [r11], 0
je 0x14002d798
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x14002d79a
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x10]
inc edi
add r14d, 2
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xf]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0xe]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r14d, r9d
jl 0x14002d6a0
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14002d81b
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x14002d81b
mov rax, qword [rbx + 0xc0]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14002d825
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r15d
mov edx, eax
cmp r15d, eax
jl 0x14002d690
jmp 0x14002df5a
mov rcx, rsi
call fcn.1400a9798
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov r12, qword [rsp + 0x518]
mov rsi, qword [rsp + 0x528]
mov rdi, qword [rsp + 0x520]
mov r14, qword [rsp + 0x510]
mov r15, qword [rsp + 0x508]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400a24f0
add rsp, 0x530
pop r13
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.1400a9798
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14002d85b
sub r15d, dword [rsp + 0x38]
xor edx, edx
sub r15d, r14d
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x50], edx
mov r11d, edx
mov dword [rsp + 0x54], edx
mov edi, edx
mov dword [rsp + 0x58], edx
mov r12d, edx
mov r9d, edx
mov dword [rsp + 0x20], edx
mov r8d, edx
mov r13d, edx
jns 0x14002d907
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x14002d950
cmp qword [rbx + 0x10], rdx
je 0x14002d946
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x14002d946
mov rax, qword [rbx + 0xc0]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
mov r9d, edi
mov r8d, edi
mov r11d, edi
xor edx, edx
jmp 0x14002d950
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rsp + 0x3c]
cmp ecx, 0x18
jne 0x14002d961
mov eax, dword [rbx]
lea r14d, [rax + rax*2]
jmp 0x14002d971
cmp ecx, 0x10
jne 0x14002d96e
mov r14d, dword [rbx]
add r14d, r14d
jmp 0x14002d971
mov r14d, edx
neg r14d
and r14d, 3
mov dword [rsp + 0x38], r14d
cmp ecx, 0x18
jne 0x14002d995
mov r10d, 1
mov r15d, edi
mov qword [rsp + 0x28], r10
jmp 0x14002db8b
mov eax, dword [rsp + 0x4c]
cmp ecx, 0x20
mov ecx, dword [rsp + 0x30]
mov r10, rdx
mov qword [rsp + 0x28], rdx
jne 0x14002d9f8
mov qword [rsp + 0x28], rdx
cmp eax, 0xff
jne 0x14002d9f8
mov qword [rsp + 0x28], rdx
cmp ecx, 0xff00
jne 0x14002d9f8
cmp dword [rsp + 0x44], 0xff0000
mov qword [rsp + 0x28], rdx
jne 0x14002d9f8
mov r14d, dword [rsp + 0x40]
mov qword [rsp + 0x28], rdx
cmp r14d, 0xff000000
jne 0x14002da1d
mov r10d, 2
mov r15d, edi
mov qword [rsp + 0x28], r10
jmp 0x14002db8b
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x14002e015
test ecx, ecx
je 0x14002e015
test eax, eax
je 0x14002e015
mov r14d, dword [rsp + 0x40]
jmp 0x14002da22
mov r9d, dword [rsp + 0x44]
mov ecx, r9d
call fcn.14002cbc0
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rsp + 0x30]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r15d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x48], r15d
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
call fcn.14002cbc0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x4c]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x50], eax
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r12d, al
call fcn.14002cbc0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x54], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r14d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
call fcn.14002cbc0
mov edx, r14d
mov ecx, r14d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r11d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x58], r11d
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r8d, al
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x24], r13d
test eax, eax
jle 0x14002df5a
mov eax, 8
neg r15d
mov ecx, eax
mov dword [rsp + 0x5c], r15d
sub ecx, edi
lea r15, [rbx + 0xc0]
mov dword [rbp - 0x80], ecx
mov ecx, dword [rsp + 0x50]
neg ecx
mov dword [rbp - 0x7c], ecx
mov ecx, eax
sub ecx, r12d
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x54]
neg ecx
mov dword [rsp + 0x6c], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x70], ecx
mov ecx, r11d
neg ecx
sub eax, r8d
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x78], eax
mov eax, edi
mov qword [rbp - 0x48], rax
mov eax, r9d
mov ecx, r12d
mov edi, r8d
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], rcx
mov qword [rsp + 0x60], rdi
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
mov qword [rbp - 0x30], r15
movsxd rcx, r13d
test r10, r10
je 0x14002dd7e
test eax, eax
jle 0x14002def2
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x14002dc5b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dc85
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x14002dc83
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dc85
xor cl, cl
mov r13, rdi
mov byte [r14 + 2], cl
cmp rax, qword [r15]
jae 0x14002dca0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dcc5
cmp dword [rdi], 0
je 0x14002dcc3
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dcc5
xor cl, cl
mov byte [r14 + 1], cl
cmp rax, qword [r15]
jae 0x14002dce1
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dd06
cmp dword [rdi], 0
je 0x14002dd04
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dd06
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [r14], cl
jne 0x14002dd4e
cmp rax, qword [r15]
jae 0x14002dd25
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dd50
cmp dword [r13], 0
je 0x14002dd4a
mov rcx, rbx
call fcn.140023860
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14002dd50
xor cl, cl
jmp 0x14002dd50
mov cl, 0xff
mov r13d, dword [rsp + 0x20]
inc r12d
add r13d, 4
movzx eax, cl
or dword [rsp + 0x34], eax
mov byte [r14 + 3], cl
add r14, 4
mov dword [rsp + 0x20], r13d
cmp r12d, dword [rbx]
jl 0x14002dc40
jmp 0x14002def2
test eax, eax
jle 0x14002def2
mov r15d, dword [rsp + 0x40]
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x3c]
mov rcx, rbx
call fcn.140023a60
cmp esi, 0x10
jne 0x14002dda5
mov r8d, eax
jmp 0x14002ddbe
mov rcx, rbx
mov edi, eax
call fcn.140023a60
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov rdi, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x48]
lea r10, [0x140000000]
mov r11, qword [rbp - 0x48]
mov ecx, r9d
mov edx, r8d
and edx, dword [rsp + 0x44]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x5c]
shl edx, cl
mov ecx, dword [rbp - 0x80]
test r9d, r9d
mov r9d, dword [rsp + 0x50]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r11*4 + 0x115748]
mov ecx, dword [r10 + r11*4 + 0x115720]
mov r11, qword [rbp - 0x40]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rsp + 0x30]
mov eax, edx
shr eax, cl
mov ecx, dword [rbp - 0x7c]
shl edx, cl
mov ecx, dword [rsp + 0x68]
test r9d, r9d
mov r9d, dword [rsp + 0x54]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r11*4 + 0x115748]
mov ecx, dword [r10 + r11*4 + 0x115720]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x4c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x6c]
shl edx, cl
mov ecx, dword [rsp + 0x70]
test r9d, r9d
mov r9, qword [rbp - 0x38]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r9*4 + 0x115748]
mov ecx, dword [r10 + r9*4 + 0x115720]
sar edx, cl
mov byte [r14 + 2], dl
test r15d, r15d
je 0x14002dec2
mov r11d, dword [rsp + 0x58]
and r8d, r15d
mov eax, r8d
mov ecx, r11d
shr eax, cl
mov ecx, dword [rsp + 0x74]
shl r8d, cl
mov ecx, dword [rsp + 0x78]
test r11d, r11d
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [r10 + rdi*4 + 0x115748]
mov ecx, dword [r10 + rdi*4 + 0x115720]
sar r8d, cl
jmp 0x14002dec8
mov r8d, 0xff
or dword [rsp + 0x34], r8d
add r13d, 4
mov byte [r14 + 3], r8b
inc r12d
add r14, 4
cmp r12d, dword [rbx]
jl 0x14002dd93
mov rsi, qword [rbp - 0x78]
mov r15, qword [rbp - 0x30]
mov dword [rsp + 0x20], r13d
cmp qword [rbx + 0x10], 0
mov r14d, dword [rsp + 0x38]
je 0x14002df24
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r14d
jge 0x14002df2b
mov rax, qword [r15]
mov edx, r14d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14002df35
lea r15, [rbx + 0xc0]
mov eax, r14d
add qword [rbx + 0xb8], rax
mov r14d, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
inc r14d
mov r10, qword [rsp + 0x28]
mov edx, eax
mov rdi, qword [rsp + 0x60]
mov dword [rsp + 0x24], r14d
cmp r14d, eax
jl 0x14002dc10
cmp dword [rsp + 0x34], 0
jne 0x14002df7f
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14002df7f
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x14002df72
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x7c], 0
jle 0x14002dfee
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14002dfee
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, rsi
shl r9d, 2
test eax, eax
jle 0x14002dfdf
sub r9, r11
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x14002dfc0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x14002df91
mov eax, dword [rbx]
mov rcx, qword [rbp - 0x28]
mov dword [rcx], eax
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14002e00d
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14002d861
mov rcx, rsi
call fcn.1400a9798
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14002d85b
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14002d869
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14002d871