Function at 0x1401937b0
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 r13
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
lea rdx, [rsp + 0x68]
mov dword [rbp - 0x7c], 0xff
mov rbx, rcx
xor r13d, r13d
call fcn.140193140
test rax, rax
je 0x140193820
mov eax, dword [rbx + 4]
mov dword [rsp + 0x5c], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
jbe 0x14019382e
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4b0
pop r13
pop rbx
pop rbp
ret
cmp dword [rbx], 0x1000000
ja 0x140193804
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x4d0], rsi
mov esi, dword [rsp + 0x70]
mov qword [rsp + 0x4a8], rdi
mov edi, dword [rsp + 0x68]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x4a0], r12
mov r12d, dword [rbp - 0x78]
mov dword [rbp + 0x3f8], eax
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x498], r14
mov r14d, dword [rbp - 0x80]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp - 0x7c]
mov qword [rsp + 0x490], r15
mov r15d, dword [rsp + 0x6c]
mov dword [rbp + 0x3e8], eax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x2c], r15d
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x38], edi
cmp esi, 0xc
jne 0x1401938d5
cmp edi, 0x18
jge 0x1401938f0
mov ecx, r15d
mov eax, 0x55555556
sub ecx, r12d
sub ecx, 0x18
imul ecx
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
jmp 0x1401938e7
cmp edi, 0x10
jge 0x1401938f0
mov r13d, r15d
sub r13d, r12d
sub r13d, esi
sar r13d, 2
test r13d, r13d
jne 0x14019397d
mov edx, dword [rbx + 0xb8]
sub edx, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0xc0]
add edx, r8d
lea eax, [rdx - 1]
cmp eax, 0x3ff
ja 0x140194786
cmp r15d, edx
jl 0x140194771
mov ecx, r15d
sub ecx, edx
cmp ecx, 0x400
jg 0x140194771
test ecx, ecx
je 0x14019397d
jns 0x140193944
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x14019397d
cmp qword [rbx + 0x10], 0
je 0x140193973
mov edx, dword [rbx + 0xc8]
sub edx, r8d
cmp edx, ecx
jge 0x140193973
mov rax, qword [rbx + 0xc8]
sub ecx, edx
mov edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14019397d
movsxd rax, ecx
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x140193990
cmp r14d, 0xff000000
jne 0x140193990
lea eax, [rdi - 0x15]
jmp 0x14019399b
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
test ecx, ecx
js 0x14019475c
jne 0x1401939b8
lea r9d, [rcx*4]
jmp 0x1401939da
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x14019475c
lea r9d, [rcx*4]
test r9d, r9d
js 0x14019475c
test r8d, r8d
js 0x14019475c
je 0x1401939f7
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14019475c
test ecx, ecx
jne 0x140193a05
lea r9d, [rcx*4]
jmp 0x140193a28
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x140194747
lea edx, [rcx*4]
test edx, edx
js 0x140194747
mov r9d, edx
test r8d, r8d
je 0x140193a3f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140194747
imul ecx, r8d
shl ecx, 2
movsxd rcx, ecx
call fcn.140470900
mov qword [rsp + 0x60], rax
mov r14, rax
test rax, rax
je 0x140194747
cmp edi, 0x10
jge 0x140194035
xor edi, edi
test r13d, r13d
je 0x140194015
cmp r13d, 0x100
jg 0x140194015
test r13d, r13d
jle 0x140193bd4
mov r14d, dword [rsp + 0x20]
lea rsi, [rbx + 0x30]
xor r12d, r12d
movsxd r15, r13d
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x140193abf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193ae8
cmp dword [rbx + 0x30], edi
lea rsi, [rbx + 0x30]
je 0x140193ae6
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193ae8
xor cl, cl
mov qword [rbp + 0x3f8], rsi
mov byte [rbp + r12*4 - 0x6e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140193b0c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193b30
cmp dword [rsi], edi
je 0x140193b2e
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193b30
xor cl, cl
mov byte [rbp + r12*4 - 0x6f], cl
cmp rax, qword [rbx + 0xc8]
jae 0x140193b51
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193b75
cmp dword [rsi], edi
je 0x140193b73
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193b75
xor cl, cl
mov byte [rbp + r12*4 - 0x70], cl
cmp r14d, 0xc
je 0x140193baf
cmp rax, qword [rbx + 0xc8]
jae 0x140193b95
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140193baf
mov rax, qword [rbp + 0x3f8]
cmp dword [rax], edi
je 0x140193baf
mov rcx, rbx
call fcn.140189120
inc qword [rbx + 0xc0]
mov byte [rbp + r12*4 - 0x6d], 0xff
inc r12
cmp r12, r15
jl 0x140193aa0
mov r14, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x20]
mov r12d, dword [rsp + 0x28]
xor eax, eax
cmp esi, 0xc
setne al
add eax, 3
imul eax, r13d
sub r15d, eax
sub r15d, r12d
sub r15d, esi
je 0x140193c41
test r15d, r15d
jns 0x140193c03
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x140193c41
cmp qword [rbx + 0x10], rdi
je 0x140193c37
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x140193c37
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x140193c41
movsxd rax, r15d
add qword [rbx + 0xc0], rax
mov r15d, dword [rsp + 0x38]
cmp r15d, 1
jne 0x140193c59
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x140193c77
cmp r15d, 4
jne 0x140193c6a
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x140193c77
cmp r15d, 8
jne 0x140193ff5
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
xor r13d, r13d
mov edx, eax
cmp r15d, 1
jne 0x140193e34
test eax, eax
jle 0x14019466c
nop dword [rax + rax]
mov r9, qword [rbx + 0xc0]
mov esi, 7
cmp r9, qword [rbx + 0xc8]
jae 0x140193cc5
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x140193cec
cmp dword [rbx + 0x30], 0
je 0x140193cea
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x140193cec
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r11d, cl
mov rcx, r9
test edx, edx
jle 0x140193dd9
mov r8, r9
mov r10d, edx
nop word [rax + rax]
mov eax, r11d
mov ecx, esi
sar eax, cl
mov r9d, r8d
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x70]
mov byte [rdi + r14], al
movzx eax, byte [rbp + rcx - 0x6f]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rbp + rcx - 0x6e]
mov rcx, r8
mov byte [rdi + r14 + 2], al
lea eax, [r15 + 1]
mov byte [rdi + r14 + 3], 0xff
mov r15d, eax
add rdi, 4
cmp eax, edx
je 0x140193dd9
sub esi, 1
jns 0x140193dbd
mov esi, 7
cmp r8, qword [rbx + 0xc8]
jae 0x140193d85
movzx r9d, byte [r8]
lea rcx, [r8 + 1]
mov qword [rbx + 0xc0], rcx
mov edx, r10d
movzx r11d, r9b
jmp 0x140193dc7
cmp dword [rbx + 0x30], 0
je 0x140193db1
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx r9d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
mov edx, dword [rbx]
movzx r11d, r9b
jmp 0x140193dc7
xor r9b, r9b
mov edx, r10d
movzx r11d, r9b
jmp 0x140193dc7
mov rcx, qword [rbx + 0xc0]
mov edx, r10d
mov r8, rcx
mov r9d, ecx
mov r10d, edx
cmp r15d, edx
jl 0x140193d10
test r12d, r12d
je 0x140193e1e
cmp qword [rbx + 0x10], 0
je 0x140193e11
mov r8d, dword [rbx + 0xc8]
sub r8d, r9d
cmp r8d, r12d
jge 0x140193e11
mov rax, qword [rbx + 0xc8]
mov edx, r12d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x140193e1e
mov eax, r12d
add rax, rcx
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x140193ca0
jmp 0x14019466c
test eax, eax
jle 0x14019466c
nop dword [rax]
mov r8d, dword [rbx]
xor esi, esi
test r8d, r8d
jle 0x140193f9c
nop
mov r9, qword [rbx + 0xc0]
cmp r9, qword [rbx + 0xc8]
jae 0x140193e70
movzx ecx, byte [r9]
inc r9
mov qword [rbx + 0xc0], r9
jmp 0x140193e9a
cmp dword [rbx + 0x30], 0
je 0x140193e98
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
mov r8d, dword [rbx]
movzx ecx, byte [rax]
lea r9, [rax + 1]
mov qword [rbx + 0xc0], r9
jmp 0x140193e9a
xor cl, cl
mov edx, gethostbyname
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r15d, 4
jne 0x140193ebc
mov r10d, eax
and r10d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x70]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x6f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x6e]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
lea eax, [rsi + 1]
cmp eax, r8d
je 0x140193f9c
cmp r15d, 8
jne 0x140193f51
cmp r9, qword [rbx + 0xc8]
jae 0x140193f24
movzx ecx, byte [r9]
lea rax, [r9 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x140193f4d
cmp dword [r11], 0
je 0x140193f4b
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov r8d, dword [rbx]
jmp 0x140193f4d
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x70]
inc edi
add esi, 2
mov r9d, r8d
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x6f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x6e]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, r8d
jl 0x140193e50
test r12d, r12d
je 0x140193fdf
cmp qword [rbx + 0x10], 0
je 0x140193fd5
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x140193fd5
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140193fdf
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x140193e40
jmp 0x14019466c
mov rcx, r14
call fcn.14046a144
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x140194799
mov rcx, r14
call fcn.14046a144
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x140194799
xor edx, edx
sub r15d, r12d
mov dword [rsp + 0x48], edx
mov r13d, edx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x28], edx
sub r15d, esi
je 0x1401940b7
test r15d, r15d
jns 0x140194077
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xc0], rax
jmp 0x1401940b7
cmp qword [rbx + 0x10], rdx
je 0x1401940ad
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x1401940ad
mov rax, qword [rbx + 0xc8]
sub r15d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, r15d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
xor edx, edx
jmp 0x1401940b7
movsxd rax, r15d
add qword [rbx + 0xc0], rax
cmp edi, 0x18
jne 0x1401940c4
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1401940d4
cmp edi, 0x10
jne 0x1401940d1
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1401940d4
mov r8d, edx
neg r8d
and r8d, 3
mov dword [rsp + 0x24], r8d
cmp edi, 0x18
jne 0x1401940f5
mov r10d, 1
mov qword [rsp + 0x30], r10
jmp 0x140194319
mov r11d, dword [rsp + 0x3c]
cmp edi, 0x20
mov edi, dword [rbp + 0x3f8]
mov r10, rdx
mov qword [rsp + 0x30], rdx
jne 0x14019415e
mov qword [rsp + 0x30], rdx
cmp r11d, 0xff
jne 0x14019415e
mov ecx, dword [rbp + 0x3f0]
mov qword [rsp + 0x30], rdx
cmp edi, 0xff00
jne 0x140194164
mov qword [rsp + 0x30], rdx
cmp ecx, 0xff0000
jne 0x140194164
mov r9d, dword [rsp + 0x40]
mov qword [rsp + 0x30], rdx
cmp r9d, 0xff000000
jne 0x140194182
mov r10d, 2
mov qword [rsp + 0x30], r10
jmp 0x140194319
mov ecx, dword [rbp + 0x3f0]
test ecx, ecx
je 0x14019472a
test edi, edi
je 0x14019472a
test r11d, r11d
je 0x14019472a
mov r9d, dword [rsp + 0x40]
call fcn.140192fd0
mov edx, dword [rbp + 0x3f0]
sub eax, 7
mov ecx, dword [rbp + 0x3f0]
shr edx, 1
and ecx, 0x55555555
and edx, 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, edi
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r15d, al
mov dword [rsp + 0x44], r15d
call fcn.140192fd0
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
and edx, 0x55555555
mov dword [rsp + 0x50], 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, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx esi, al
mov dword [rsp + 0x4c], esi
call fcn.140192fd0
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
and edx, 0x55555555
mov dword [rsp + 0x58], 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, 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
mov dword [rsp + 0x54], edi
call fcn.140192fd0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x2c], 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
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
mov dword [rsp + 0x28], r11d
cmp r15d, 8
ja 0x14019472a
cmp esi, 8
ja 0x14019472a
cmp edi, 8
ja 0x14019472a
cmp r11d, 8
ja 0x14019472a
mov r8d, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
xor edi, edi
mov dword [rsp + 0x20], edi
mov edx, eax
test eax, eax
jle 0x14019466c
nop dword [rax]
mov eax, dword [rbx]
xor r15d, r15d
movsxd rcx, r13d
test r10, r10
je 0x1401944a2
test eax, eax
jle 0x14019460c
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14019437f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401943a9
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1401943a7
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401943a9
xor cl, cl
mov r12, rdi
mov byte [rsi + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401943c7
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401943ec
cmp dword [rdi], 0
je 0x1401943ea
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401943ec
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14019440b
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194430
cmp dword [rdi], 0
je 0x14019442e
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194430
xor cl, cl
cmp qword [rsp + 0x30], 2
mov byte [rsi], cl
jne 0x14019447b
cmp rax, qword [rbx + 0xc8]
jae 0x140194452
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019447d
cmp dword [r12], 0
je 0x140194477
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14019447d
xor cl, cl
jmp 0x14019447d
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x3e8], eax
inc r15d
mov byte [rsi + 3], cl
add rsi, 4
cmp r15d, dword [rbx]
jl 0x140194360
jmp 0x140194603
test eax, eax
jle 0x14019460c
lea rsi, [rcx + r14]
mov r14d, dword [rsp + 0x38]
cmp r14d, 0x10
jne 0x14019456b
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401944dc
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194502
cmp dword [rbx + 0x30], 0
je 0x140194500
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x140194502
xor cl, cl
mov rdx, rbx
mov r8d, gethostbyname
movzx r12d, cl
cmp rax, qword [rbx + 0xc8]
jae 0x140194530
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r12d
mov qword [rbx + 0xc0], rax
jmp 0x140194575
cmp dword [r8 + rdx], 0
je 0x14019455e
mov rcx, rbx
call fcn.140189120
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
movzx edi, cl
shl edi, 8
add edi, r12d
mov qword [rbx + 0xc0], rax
jmp 0x140194575
xor cl, cl
movzx edi, cl
shl edi, 8
add edi, r12d
jmp 0x140194575
mov rcx, rbx
call fcn.140189330
mov edi, eax
mov r8d, dword [rsp + 0x44]
mov ecx, edi
and ecx, dword [rbp + 0x3f0]
mov edx, dword [rsp + 0x48]
call fcn.140193040
mov r8d, dword [rsp + 0x4c]
mov ecx, edi
and ecx, dword [rbp + 0x3f8]
mov edx, dword [rsp + 0x50]
mov byte [rsi], al
call fcn.140193040
mov r8d, dword [rsp + 0x54]
mov ecx, edi
and ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x58]
mov byte [rsi + 1], al
call fcn.140193040
mov r9d, dword [rsp + 0x40]
mov byte [rsi + 2], al
test r9d, r9d
je 0x1401945dc
mov r8d, dword [rsp + 0x28]
and edi, r9d
mov edx, dword [rsp + 0x2c]
mov ecx, edi
call fcn.140193040
jmp 0x1401945e1
mov eax, 0xff
or dword [rbp + 0x3e8], eax
add r13d, 4
mov byte [rsi + 3], al
inc r15d
add rsi, 4
cmp r15d, dword [rbx]
jl 0x1401944b3
mov r14, qword [rsp + 0x60]
mov edi, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x24]
test r8d, r8d
je 0x140194654
cmp qword [rbx + 0x10], 0
je 0x14019464a
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r8d
jge 0x14019464a
mov rax, qword [rbx + 0xc8]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
mov r8d, dword [rsp + 0x24]
jmp 0x140194654
mov eax, r8d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc edi
mov r10, qword [rsp + 0x30]
mov edx, eax
mov dword [rsp + 0x20], edi
cmp edi, eax
jl 0x140194330
cmp dword [rbp + 0x3e8], 0
jne 0x14019469e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14019469e
nop word [rax + rax]
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x140194690
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x5c], 0
jle 0x14019470e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14019470e
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, r14
shl r9d, 2
test eax, eax
jle 0x1401946ff
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 0x1401946e0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1401946b0
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x3d8]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 0x3e0]
mov dword [rcx], eax
mov rax, r14
jmp 0x1401947a4
mov rcx, r14
call fcn.14046a144
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x140194799
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x140194799
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
jmp 0x140194799
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_offset
jmp 0x140194799
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_header
mov edx, 0x28
mov qword [rdx + rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x498]
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4d0]
mov r15, qword [rsp + 0x490]
add rsp, 0x4b0
pop r13
pop rbx
pop rbp
ret