Function at 0x14009c760
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
xor r14d, r14d
mov dword [rbp - 0x5c], 0xff
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], r14d
mov rbx, rcx
call fcn.14009c2a0
test rax, rax
jne 0x14009c7ae
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
mov eax, dword [rbx + 4]
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x7c], eax
cdq
mov r8d, eax
mov qword [rsp + 0x4e8], rdi
mov eax, dword [rbp - 0x6c]
xor r8d, edx
mov edi, dword [rbp - 0x78]
sub r8d, edx
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x430], eax
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x5c]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rbp - 0x74]
mov qword [rsp + 0x4d0], r15
mov r15d, dword [rbp - 0x70]
mov dword [rbp + 0x428], eax
mov eax, dword [rbp - 0x58]
mov dword [rsp + 0x38], eax
mov dword [rbx + 4], r8d
mov dword [rbp + 0x438], ecx
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x44], edi
cmp r15d, 0xc
jne 0x14009c850
cmp edi, 0x18
jge 0x14009c86a
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov ecx, dword [rbp + 0x438]
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
jmp 0x14009c862
cmp edi, 0x10
jge 0x14009c867
mov r14d, r13d
sub r14d, eax
sub r14d, r15d
sar r14d, 2
mov dword [rsp + 0x20], r14d
cmp edi, 0x18
jne 0x14009c87b
cmp ecx, 0xff000000
jne 0x14009c87b
mov eax, 3
jmp 0x14009c885
xor eax, eax
test ecx, ecx
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x14009d705
jne 0x14009c89e
lea r9d, [rcx*4]
jmp 0x14009c8c0
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14009d705
lea r9d, [rcx*4]
test r9d, r9d
js 0x14009d705
test r8d, r8d
js 0x14009d705
je 0x14009c8dd
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14009d705
mov qword [rsp + 0x510], rsi
test ecx, ecx
jne 0x14009c8f3
lea r9d, [rcx*4]
jmp 0x14009c916
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14009d6e2
lea edx, [rcx*4]
test edx, edx
js 0x14009d6e2
mov r9d, edx
test r8d, r8d
je 0x14009c92d
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14009d6e2
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call fcn.140182c38
mov qword [rbp - 0x80], rax
mov rsi, rax
test rax, rax
je 0x14009d6e2
mov qword [rsp + 0x4e0], r12
cmp edi, 0x10
jge 0x14009cf6d
xor edi, edi
test r14d, r14d
je 0x14009cf4b
cmp r14d, 0x100
jg 0x14009cf4b
movsxd rax, r14d
test r14d, r14d
lea r14, [rbx + 0xc0]
jle 0x14009cadd
mov esi, dword [rsp + 0x30]
lea r15, [rbx + 0x30]
xor r8d, r8d
mov r13, rax
mov qword [rbp + 0x438], r8
nop dword [rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r14]
jae 0x14009c9bb
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009c9e4
cmp dword [rbx + 0x30], edi
lea r15, [rbx + 0x30]
je 0x14009c9e2
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009c9e4
xor cl, cl
mov r12, r15
mov r15, qword [rbp + 0x438]
mov byte [rbp + r15*4 - 0x2e], cl
cmp rax, qword [r14]
jae 0x14009ca07
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ca2d
cmp dword [r12], edi
je 0x14009ca2b
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ca2d
xor cl, cl
mov byte [rbp + r15*4 - 0x2f], cl
mov rcx, qword [r14]
cmp rax, rcx
jae 0x14009ca4d
movzx edx, byte [rax]
lea r15, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ca79
mov r15, r12
cmp dword [r12], edi
je 0x14009ca77
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
mov rcx, qword [r14]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ca79
xor dl, dl
mov r8, qword [rbp + 0x438]
mov byte [rbp + r8*4 - 0x30], dl
cmp esi, 0xc
je 0x14009cab0
cmp rax, rcx
jae 0x14009ca9b
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009cab0
cmp dword [r12], edi
je 0x14009cab0
mov rcx, rbx
call fcn.140092f50
inc qword [rbx + 0xb8]
mov rcx, qword [rbp + 0x438]
mov byte [rbp + rcx*4 - 0x2d], 0xff
inc rcx
mov qword [rbp + 0x438], rcx
cmp rcx, r13
jl 0x14009c9a0
mov rsi, qword [rbp - 0x80]
mov r13d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x30]
xor eax, eax
cmp r15d, 0xc
setne al
add eax, 3
imul eax, dword [rsp + 0x20]
sub r13d, eax
sub r13d, dword [rsp + 0x38]
sub r13d, r15d
jns 0x14009cb07
mov rax, qword [r14]
mov qword [rbx + 0xb8], rax
jmp 0x14009cb3e
cmp qword [rbx + 0x10], rdi
je 0x14009cb34
mov ecx, dword [r14]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r13d
jge 0x14009cb34
mov rax, qword [r14]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xb8], rax
call qword [rbx + Ordinal_26]
jmp 0x14009cb3e
movsxd rax, r13d
add qword [rbx + 0xb8], rax
mov r13d, dword [rsp + 0x44]
mov rcx, rbx
mov eax, reloc.WS2_32.dll_recv
add rcx, rax
mov qword [rsp + 0x28], rcx
cmp r13d, 1
jne 0x14009cb66
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14009cb92
cmp r13d, 4
jne 0x14009cb80
mov r12d, dword [rbx]
lea rax, [rbx + 0x10]
inc r12d
mov qword [rsp + 0x28], rax
shr r12d, 1
jmp 0x14009cb92
cmp r13d, 8
jne 0x14009cef1
mov r12d, dword [rbx]
mov qword [rsp + 0x28], rcx
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov dword [rbp + 0x430], edi
mov dword [rbp + 0x438], r12d
mov edx, eax
cmp r13d, 1
jne 0x14009cd14
test eax, eax
jle 0x14009d607
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov r15d, 7
cmp rax, qword [r14]
jae 0x14009cbe1
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009cc07
cmp dword [rbx + 0x30], 0
je 0x14009cc05
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009cc07
xor cl, cl
mov edx, dword [rbx]
xor r13d, r13d
movzx r8d, cl
test edx, edx
jle 0x14009ccbd
nop dword [rax + rax]
mov eax, r8d
mov ecx, r15d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov byte [rdi + rsi + 2], al
lea eax, [r13 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r13d, eax
add rdi, 4
cmp eax, edx
je 0x14009ccbd
sub r15d, 1
jns 0x14009ccb2
mov rax, qword [rbx + 0xb8]
mov r15d, 7
cmp rax, qword [r14]
jae 0x14009cc88
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ccae
cmp dword [rbx + 0x30], 0
je 0x14009ccac
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009ccae
xor cl, cl
movzx r8d, cl
mov edx, dword [rbx]
cmp r13d, edx
jl 0x14009cc20
cmp qword [rbx + 0x10], 0
je 0x14009ccea
mov ecx, dword [r14]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x14009ccea
mov rax, qword [r14]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x14009ccf4
mov eax, r12d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rbp + 0x430], ecx
mov edx, eax
cmp ecx, eax
jl 0x14009cbc0
jmp 0x14009d607
test eax, eax
jle 0x14009d607
nop dword [rax]
mov r8d, dword [rbx]
xor r15d, r15d
test r8d, r8d
jle 0x14009ce96
nop
mov r9, qword [rbx + 0xb8]
cmp r9, qword [r14]
jae 0x14009cd4c
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xb8], r9
jmp 0x14009cd76
cmp dword [rbx + 0x30], 0
je 0x14009cd74
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xb8], r9
jmp 0x14009cd76
xor cl, cl
mov r10d, Ordinal_50
mov rax, r14
mov rdx, rbx
mov r11, qword [rax]
lea r12, [rbx + r10]
xor r10d, r10d
movzx eax, cl
cmp r13d, 4
jne 0x14009cd9f
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [r15 + 1]
cmp eax, r8d
je 0x14009ce8f
cmp r13d, 8
jne 0x14009ce47
cmp r9, r11
jae 0x14009ce0a
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov r9d, r8d
mov qword [rbx + 0xb8], rax
mov r8d, dword [rbx]
movzx r10d, cl
jmp 0x14009ce4a
cmp dword [r12], 0
je 0x14009ce39
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r8d, dword [rbx]
mov r9d, r8d
movzx r10d, cl
jmp 0x14009ce4a
xor cl, cl
mov r9d, r8d
mov r8d, dword [rbx]
movzx r10d, cl
jmp 0x14009ce4a
mov r9d, r8d
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x30]
inc edi
add r15d, 2
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x2e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp r15d, r9d
jl 0x14009cd30
mov r12d, dword [rbp + 0x438]
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14009cec7
mov ecx, dword [r14]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x14009cec7
mov rax, qword [r14]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + Ordinal_26]
jmp 0x14009ced1
mov eax, r12d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x430]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rbp + 0x430], ecx
mov edx, eax
cmp ecx, eax
jl 0x14009cd20
jmp 0x14009d607
mov rcx, rsi
call fcn.14017d748
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov r12, qword [rsp + 0x4e0]
mov rsi, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r14
pop rbx
pop rbp
ret
mov rcx, rsi
call fcn.14017d748
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14009cf11
sub r13d, dword [rsp + 0x38]
xor edx, edx
sub r13d, r15d
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x48], edx
mov r11d, edx
mov dword [rsp + 0x4c], edx
mov r14d, edx
mov dword [rsp + 0x30], edx
mov r12d, edx
mov r9d, edx
mov dword [rsp + 0x58], edx
mov r8d, edx
jns 0x14009cfac
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x14009cff5
cmp qword [rbx + 0x10], rdx
je 0x14009cfeb
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r13d
jge 0x14009cfeb
mov rax, qword [rbx + 0xc0]
sub r13d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r13d
mov qword [rbx + 0xb8], rax
call qword [rbx + Ordinal_26]
mov r9d, r12d
mov r8d, r12d
mov r11d, r12d
xor edx, edx
jmp 0x14009cff5
movsxd rax, r13d
add qword [rbx + 0xb8], rax
cmp edi, 0x18
jne 0x14009d001
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x14009d00e
cmp edi, 0x10
jne 0x14009d00c
mov eax, dword [rbx]
add eax, eax
jmp 0x14009d00e
mov eax, edx
neg eax
and eax, 3
mov dword [rsp + 0x38], eax
cmp edi, 0x18
jne 0x14009d02f
mov r10d, 1
mov r13d, r12d
mov qword [rsp + 0x28], r10
jmp 0x14009d22e
mov eax, dword [rsp + 0x40]
mov r10, rdx
mov ecx, dword [rbp + 0x430]
mov qword [rsp + 0x28], rdx
cmp edi, 0x20
jne 0x14009d096
mov qword [rsp + 0x28], rdx
cmp eax, 0xff
jne 0x14009d096
mov qword [rsp + 0x28], rdx
cmp ecx, 0xff00
jne 0x14009d096
cmp dword [rsp + 0x3c], 0xff0000
mov qword [rsp + 0x28], rdx
jne 0x14009d096
mov r15d, dword [rbp + 0x438]
mov qword [rsp + 0x28], rdx
cmp r15d, 0xff000000
jne 0x14009d0bd
mov r10d, 2
mov r13d, r12d
mov qword [rsp + 0x28], r10
jmp 0x14009d22e
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
je 0x14009d6bd
test ecx, ecx
je 0x14009d6bd
test eax, eax
je 0x14009d6bd
mov r15d, dword [rbp + 0x438]
jmp 0x14009d0c2
mov r9d, dword [rsp + 0x3c]
mov ecx, r9d
call fcn.14009c230
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rbp + 0x430]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r13d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x20], r13d
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 r14d, al
call fcn.14009c230
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
mov r9d, dword [rsp + 0x40]
and edx, 0x55555555
and ecx, 0x55555555
mov dword [rsp + 0x48], 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.14009c230
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x4c], 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, r15d
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.14009c230
mov edx, r15d
mov ecx, r15d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r11d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x30], 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 + 0x34], 0
test eax, eax
jle 0x14009d607
mov eax, 8
lea r15, [rbx + 0xc0]
mov ecx, eax
neg r13d
sub ecx, r14d
mov dword [rsp + 0x60], r13d
mov r13d, dword [rsp + 0x58]
mov dword [rsp + 0x64], ecx
mov ecx, dword [rsp + 0x48]
neg ecx
mov dword [rsp + 0x68], ecx
mov ecx, eax
sub ecx, r12d
mov dword [rsp + 0x6c], ecx
mov ecx, dword [rsp + 0x4c]
neg ecx
mov dword [rsp + 0x70], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x74], ecx
mov ecx, r11d
neg ecx
sub eax, r8d
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x50], eax
mov eax, r14d
mov qword [rbp - 0x50], rax
mov eax, r9d
mov qword [rbp - 0x40], rax
mov eax, r8d
mov ecx, r12d
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], rcx
nop word [rax + rax]
mov eax, dword [rbx]
xor r12d, r12d
mov qword [rsp + 0x58], r15
movsxd rcx, r13d
test r10, r10
je 0x14009d431
test eax, eax
jle 0x14009d5aa
lea r14, [rcx + rsi]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x14009d30b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d335
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x14009d333
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d335
xor cl, cl
mov qword [rsp + 0x58], rdi
mov byte [r14 + 2], cl
cmp rax, qword [r15]
jae 0x14009d352
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d377
cmp dword [rdi], 0
je 0x14009d375
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d377
xor cl, cl
mov byte [r14 + 1], cl
mov rcx, qword [r15]
cmp rax, rcx
jae 0x14009d396
movzx edx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d3be
cmp dword [rdi], 0
je 0x14009d3bc
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
mov rcx, qword [r15]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d3be
xor dl, dl
cmp qword [rsp + 0x28], 2
mov byte [r14], dl
jne 0x14009d409
cmp rax, rcx
jae 0x14009d3dd
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d40b
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
je 0x14009d405
mov rcx, rbx
call fcn.140092f50
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x14009d40b
xor cl, cl
jmp 0x14009d40b
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x428], eax
inc r12d
mov byte [r14 + 3], cl
add r14, 4
cmp r12d, dword [rbx]
jl 0x14009d2f0
jmp 0x14009d5aa
test eax, eax
jle 0x14009d5aa
mov r15d, dword [rsp + 0x50]
lea r14, [rcx + rsi]
mov esi, dword [rbp + 0x438]
mov rcx, rbx
call fcn.140093150
cmp edi, 0x10
jne 0x14009d45a
mov r8d, eax
jmp 0x14009d472
mov rcx, rbx
mov edi, eax
call fcn.140093150
mov r8d, eax
shl r8d, 0x10
add r8d, edi
mov edi, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x20]
lea r10, [0x140000000]
mov r11, qword [rbp - 0x50]
mov ecx, r9d
mov edx, r8d
and edx, dword [rsp + 0x3c]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x60]
shl edx, cl
mov ecx, dword [rsp + 0x64]
test r9d, r9d
mov r9d, dword [rsp + 0x48]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r11*4 + 0x996d68]
mov ecx, dword [r10 + r11*4 + 0x996e38]
mov r11, qword [rbp - 0x48]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rbp + 0x430]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x68]
shl edx, cl
mov ecx, dword [rsp + 0x6c]
test r9d, r9d
mov r9d, dword [rsp + 0x4c]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r11*4 + 0x996d68]
mov ecx, dword [r10 + r11*4 + 0x996e38]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x40]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x70]
shl edx, cl
mov ecx, dword [rsp + 0x74]
test r9d, r9d
mov r9, qword [rbp - 0x40]
cmovns edx, eax
shr edx, cl
imul edx, dword [r10 + r9*4 + 0x996d68]
mov ecx, dword [r10 + r9*4 + 0x996e38]
sar edx, cl
mov byte [r14 + 2], dl
test esi, esi
je 0x14009d57c
mov r11d, dword [rsp + 0x30]
and r8d, esi
mov rdx, qword [rbp - 0x38]
mov eax, r8d
mov ecx, r11d
shr eax, cl
mov ecx, dword [rsp + 0x78]
shl r8d, cl
mov ecx, r15d
test r11d, r11d
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [r10 + rdx*4 + 0x996d68]
mov ecx, dword [r10 + rdx*4 + 0x996e38]
sar r8d, cl
jmp 0x14009d582
mov r8d, 0xff
or dword [rbp + 0x428], r8d
add r13d, 4
mov byte [r14 + 3], r8b
inc r12d
add r14, 4
cmp r12d, dword [rbx]
jl 0x14009d448
mov rsi, qword [rbp - 0x80]
mov r15, qword [rsp + 0x58]
cmp qword [rbx + 0x10], 0
mov edx, dword [rsp + 0x38]
je 0x14009d5d7
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, edx
jge 0x14009d5de
mov rax, qword [r15]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xb8], rax
call qword [rbx + Ordinal_26]
jmp 0x14009d5e7
lea r15, [rbx + 0xc0]
mov eax, edx
add qword [rbx + 0xb8], rax
mov ecx, dword [rsp + 0x34]
mov eax, dword [rbx + 4]
inc ecx
mov edi, dword [rsp + 0x44]
mov edx, eax
mov r10, qword [rsp + 0x28]
mov dword [rsp + 0x34], ecx
cmp ecx, eax
jl 0x14009d2c0
cmp dword [rbp + 0x428], 0
jne 0x14009d62e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14009d62e
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x14009d621
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x7c], 0
jle 0x14009d69e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14009d69e
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 0x14009d68f
sub r9, r11
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x14009d670
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x14009d640
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x418]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 0x420]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14009cf17
mov rcx, rsi
call fcn.14017d748
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14009cf11
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009cf1f
mov rax, qword gs:[0x58]
mov edx, Ordinal_27
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14009cf27