Function at 0x14001e4b0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push rbx
push r15
sub rsp, 0x518
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov qword [rsp + 0xd0], rdx
mov rbx, rcx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0xd8], r8
xor r15d, r15d
mov dword [rsp + 0xac], 0xff
call fcn.14001e100
test rax, rax
je 0x14001e53a
mov eax, dword [rbx + 4]
mov r9d, eax
neg r9d
mov dword [rsp + 0x78], eax
cmovs r9d, eax
mov dword [rbx + 4], r9d
cmp r9d, 0x1000000
jbe 0x14001e541
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14001ecce
mov r8d, dword [rbx]
cmp r8d, 0x1000000
ja 0x14001e51e
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x548], rbp
mov ebp, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa4]
mov qword [rsp + 0x508], rdi
mov edi, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xac]
mov qword [rsp + 0x500], r12
mov r12d, dword [rsp + 0x94]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xb0]
mov qword [rsp + 0x4f8], r13
mov r13d, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x2c], ebp
mov dword [rsp + 0x20], r13d
cmp ebp, 0xc
jne 0x14001e5fa
cmp r13d, 0x18
jge 0x14001e612
mov ecx, r12d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x14001e60d
cmp r13d, 0x10
jge 0x14001e612
mov r15d, r12d
sub r15d, eax
sub r15d, ebp
sar r15d, 2
test r15d, r15d
jne 0x14001e65b
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add ecx, dword [rbx + 0xb8]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x14001f4bd
cmp r12d, ecx
jl 0x14001f49a
mov edx, r12d
sub edx, ecx
cmp edx, 0x400
jg 0x14001f49a
mov rcx, rbx
call fcn.140014d10
mov r9d, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r13d, 0x18
jne 0x14001e66f
cmp edi, 0xff000000
jne 0x14001e66f
lea eax, [r13 - 0x15]
jmp 0x14001e679
xor eax, eax
test edi, edi
setne al
add eax, 3
mov dword [rbx + 8], eax
test r8d, r8d
js 0x14001f477
jne 0x14001e691
lea ecx, [r8*4]
jmp 0x14001e6b3
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x14001f477
lea ecx, [r8*4]
test ecx, ecx
js 0x14001f477
test r9d, r9d
js 0x14001f477
je 0x14001e6cf
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x14001f477
mov qword [rsp + 0x510], rsi
test r8d, r8d
je 0x14001e6ee
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x14001f454
lea ecx, [r8*4]
test r9d, r9d
je 0x14001e70c
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x14001f454
imul r8d, r9d
lea eax, [r8*4]
movsxd rcx, eax
call fcn.14022b0a0
mov qword [rsp + 0x80], rax
mov rsi, rax
test rax, rax
je 0x14001f454
xor edi, edi
mov qword [rsp + 0x4f0], r14
cmp r13d, 0x10
jge 0x14001ed0b
test r15d, r15d
je 0x14001ece9
cmp r15d, 0x100
jg 0x14001ece9
test r15d, r15d
jle 0x14001e8bc
mov r12d, dword [rsp + 0x2c]
lea rbp, [rbx + 0x30]
xor r14d, r14d
movsxd rsi, r15d
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14001e79f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e7c8
cmp dword [rbx + 0x30], edi
lea rbp, [rbx + 0x30]
je 0x14001e7c6
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e7c8
xor cl, cl
mov r13, rbp
mov byte [rsp + r14*4 + 0xe2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14001e7eb
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e810
cmp dword [rbp], edi
je 0x14001e80e
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e810
xor cl, cl
mov byte [rsp + r14*4 + 0xe1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14001e834
movzx ecx, byte [rax]
lea rbp, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e859
cmp dword [rbp], edi
je 0x14001e857
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e859
xor cl, cl
mov byte [rsp + r14*4 + 0xe0], cl
cmp r12d, 0xc
je 0x14001e891
cmp rax, qword [rbx + 0xc8]
jae 0x14001e87c
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001e891
cmp dword [r13], edi
je 0x14001e891
mov rcx, rbx
call fcn.140014c90
inc qword [rbx + 0xc0]
mov byte [rsp + r14*4 + 0xe3], 0xff
inc r14
cmp r14, rsi
jl 0x14001e780
mov rsi, qword [rsp + 0x80]
mov r12d, dword [rsp + 0x24]
mov ebp, dword [rsp + 0x2c]
mov r13d, dword [rsp + 0x20]
xor eax, eax
mov rcx, rbx
cmp ebp, 0xc
setne al
add eax, 3
imul eax, r15d
sub r12d, eax
sub r12d, dword [rsp + 0x48]
sub r12d, ebp
mov edx, r12d
call fcn.140014d10
cmp r13d, 1
jne 0x14001e8f4
mov r15d, dword [rbx]
add r15d, 7
shr r15d, 3
jmp 0x14001e912
cmp r13d, 4
jne 0x14001e905
mov r15d, dword [rbx]
inc r15d
shr r15d, 1
jmp 0x14001e912
cmp r13d, 8
jne 0x14001ec78
mov r15d, dword [rbx]
mov eax, dword [rbx + 4]
neg r15d
and r15d, 3
mov edx, eax
cmp r13d, 1
jne 0x14001eabf
xor r12d, r12d
test eax, eax
jle 0x14001f36d
mov r8, qword [rbx + 0xc0]
mov ebp, 7
cmp r8, qword [rbx + 0xc8]
jae 0x14001e958
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x14001e97f
cmp dword [rbx + 0x30], 0
je 0x14001e97d
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x14001e97f
xor cl, cl
mov r9d, dword [rbx]
xor r14d, r14d
movzx r10d, cl
mov rcx, r8
test r9d, r9d
jle 0x14001ea64
mov rdx, r8
nop dword [rax + rax]
mov eax, r10d
mov ecx, ebp
sar eax, cl
mov r8d, edx
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xe0]
mov byte [rdi + rsi], al
movzx eax, byte [rsp + rcx + 0xe1]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rsp + rcx + 0xe2]
mov rcx, rdx
mov byte [rdi + rsi + 2], al
lea eax, [r14 + 1]
mov byte [rdi + rsi + 3], 0xff
mov r14d, eax
add rdi, 4
cmp eax, r9d
je 0x14001ea64
sub ebp, 1
jns 0x14001ea4b
mov ebp, 7
cmp rdx, qword [rbx + 0xc8]
jae 0x14001ea18
movzx r8d, byte [rdx]
lea rcx, [rdx + 1]
mov qword [rbx + 0xc0], rcx
movzx r10d, r8b
jmp 0x14001ea52
cmp dword [rbx + 0x30], 0
je 0x14001ea42
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx r8d, byte [rax]
lea rcx, [rax + 1]
mov qword [rbx + 0xc0], rcx
movzx r10d, r8b
jmp 0x14001ea52
xor r8b, r8b
movzx r10d, r8b
jmp 0x14001ea52
mov rcx, qword [rbx + 0xc0]
mov r9d, dword [rbx]
mov rdx, rcx
mov r8d, ecx
cmp r14d, r9d
jl 0x14001e9a0
test r15d, r15d
je 0x14001eaa9
cmp qword [rbx + 0x10], 0
je 0x14001ea9c
mov r9d, dword [rbx + 0xc8]
sub r9d, r8d
cmp r9d, r15d
jge 0x14001ea9c
mov rax, qword [rbx + 0xc8]
mov edx, r15d
mov rcx, qword [rbx + 0x28]
sub edx, r9d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
jmp 0x14001eaa9
mov eax, r15d
add rax, rcx
mov qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r12d
mov edx, eax
cmp r12d, eax
jl 0x14001e933
jmp 0x14001f36d
xor r14d, r14d
test eax, eax
jle 0x14001f36d
nop word [rax + rax]
xor ebp, ebp
cmp dword [rbx], ebp
jle 0x14001ec1f
nop word [rax + rax]
mov r8, qword [rbx + 0xc0]
cmp r8, qword [rbx + 0xc8]
jae 0x14001eb00
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xc0], r8
jmp 0x14001eb27
cmp dword [rbx + 0x30], 0
je 0x14001eb25
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xc0], r8
jmp 0x14001eb27
xor cl, cl
xor r9d, r9d
movzx eax, cl
cmp r13d, 4
jne 0x14001eb3d
mov r9d, eax
and r9d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xe0]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xe1]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xe2]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
lea eax, [rbp + 1]
cmp eax, dword [rbx]
je 0x14001ec1f
cmp r13d, 8
jne 0x14001ebd3
cmp r8, qword [rbx + 0xc8]
jae 0x14001eba9
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xc0], rax
jmp 0x14001ebcf
cmp dword [rbx + 0x30], 0
je 0x14001ebcd
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001ebcf
xor cl, cl
movzx r9d, cl
movsxd rcx, edi
lea rdx, [r9*4]
movzx eax, byte [rsp + rdx + 0xe0]
inc edi
add ebp, 2
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xe1]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rsp + rdx + 0xe2]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
cmp ebp, dword [rbx]
jl 0x14001eae0
test r15d, r15d
je 0x14001ec62
cmp qword [rbx + 0x10], 0
je 0x14001ec58
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r15d
jge 0x14001ec58
mov rax, qword [rbx + 0xc8]
mov edx, r15d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x14001ec62
mov eax, r15d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc r14d
mov edx, eax
cmp r14d, eax
jl 0x14001ead0
jmp 0x14001f36d
mov rcx, rsi
call fcn.140229280
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x508]
mov r12, qword [rsp + 0x500]
mov rbp, qword [rsp + 0x548]
mov r13, qword [rsp + 0x4f8]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x518
pop r15
pop rbx
ret
mov rcx, rsi
call fcn.140229280
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x14001ec98
sub r12d, dword [rsp + 0x48]
mov rcx, rbx
sub r12d, ebp
mov dword [rsp + 0x40], 0
mov edx, r12d
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
xor r13d, r13d
mov dword [rsp + 0x44], 0
xor r14d, r14d
xor r15d, r15d
call fcn.140014d10
mov r12d, dword [rsp + 0x20]
cmp r12d, 0x18
jne 0x14001ed5a
mov eax, dword [rbx]
lea r10d, [rax + rax*2]
jmp 0x14001ed6b
cmp r12d, 0x10
jne 0x14001ed68
mov r10d, dword [rbx]
add r10d, r10d
jmp 0x14001ed6b
xor r10d, r10d
neg r10d
and r10d, 3
mov dword [rsp + 0x20], r10d
cmp r12d, 0x18
jne 0x14001ed96
mov qword [rsp + 0x50], 1
mov r9d, edi
mov r8d, edi
mov r11d, edi
mov ebp, edi
jmp 0x14001efb6
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x50], rax
cmp r12d, 0x20
jne 0x14001ee01
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x28]
cmp eax, 0xff
jne 0x14001ee05
xor eax, eax
mov qword [rsp + 0x50], rax
cmp ecx, 0xff00
jne 0x14001ee01
cmp dword [rsp + 0x3c], 0xff0000
mov qword [rsp + 0x50], rax
jne 0x14001ee01
mov r10d, dword [rsp + 0x58]
mov qword [rsp + 0x50], rax
cmp r10d, 0xff000000
jne 0x14001ee28
mov qword [rsp + 0x50], 2
mov r9d, eax
mov r8d, eax
mov r11d, eax
mov ebp, eax
jmp 0x14001efb1
mov eax, dword [rsp + 0x28]
mov edi, dword [rsp + 0x3c]
test edi, edi
je 0x14001f42f
test ecx, ecx
je 0x14001f42f
test eax, eax
je 0x14001f42f
mov r10d, dword [rsp + 0x58]
jmp 0x14001ee2c
mov edi, dword [rsp + 0x3c]
mov ecx, edi
call fcn.14001e020
mov edx, edi
mov ecx, edi
mov edi, dword [rsp + 0x30]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r11d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x40], r11d
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 r9d, al
call fcn.14001e020
mov edx, edi
mov ecx, edi
mov edi, dword [rsp + 0x28]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea ebp, [rax - 7]
add edx, ecx
mov dword [rsp + 0x38], ebp
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 r13d, al
call fcn.14001e020
sub eax, 7
mov edx, edi
shr edx, 1
mov ecx, edi
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
mov ecx, r10d
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.14001e020
mov edx, r10d
mov ecx, r10d
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
add edx, ecx
lea r8d, [rax - 7]
mov ecx, edx
mov dword [rsp + 0x44], r8d
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 edi, al
cmp r9d, 8
ja 0x14001f42f
cmp r13d, 8
ja 0x14001f42f
cmp r14d, 8
ja 0x14001f42f
cmp edi, 8
ja 0x14001f42f
mov r10d, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x24], r15d
test eax, eax
jle 0x14001f36d
mov eax, r11d
mov qword [rsp + 0x88], rdi
neg eax
mov dword [rsp + 0x5c], eax
mov eax, 8
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x60], ecx
mov ecx, ebp
neg ecx
mov dword [rsp + 0x64], ecx
mov ecx, eax
sub ecx, r13d
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x2c]
neg ecx
mov dword [rsp + 0x6c], ecx
mov ecx, eax
sub ecx, r14d
mov dword [rsp + 0x70], ecx
mov ecx, r8d
neg ecx
sub eax, edi
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x48], eax
mov eax, r9d
mov ecx, r13d
mov r13d, dword [rsp + 0x48]
mov qword [rsp + 0xb8], rax
mov eax, r14d
mov r14, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xc0], rcx
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r15d
test r14, r14
je 0x14001f1a2
test eax, eax
jle 0x14001f306
lea rdi, [rcx + rsi]
nop dword [rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x14001f08f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f0b5
cmp dword [rbx + 0x30], 0
je 0x14001f0b3
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f0b5
xor cl, cl
mov byte [rdi + 2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14001f0d0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f0f6
cmp dword [rbx + 0x30], 0
je 0x14001f0f4
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f0f6
xor cl, cl
mov byte [rdi + 1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x14001f111
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f137
cmp dword [rbx + 0x30], 0
je 0x14001f135
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f137
xor cl, cl
mov byte [rdi], cl
cmp r14, 2
jne 0x14001f17f
cmp rax, qword [rbx + 0xc8]
jae 0x14001f157
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f181
cmp dword [rbx + 0x30], 0
je 0x14001f17b
mov rcx, rbx
call fcn.140014c90
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x14001f181
xor cl, cl
jmp 0x14001f181
mov cl, 0xff
movzx eax, cl
add r15d, 4
or dword [rsp + 0x34], eax
inc ebp
mov byte [rdi + 3], cl
add rdi, 4
cmp ebp, dword [rbx]
jl 0x14001f070
jmp 0x14001f301
test eax, eax
jle 0x14001f306
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x38]
mov rcx, rbx
call fcn.140014f30
cmp r12d, 0x10
je 0x14001f1d7
mov rcx, rbx
mov edi, eax
call fcn.140014f30
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x88]
mov r11d, dword [rsp + 0x40]
mov edx, eax
and edx, dword [rsp + 0x3c]
test r11d, r11d
jns 0x14001f1ef
mov ecx, dword [rsp + 0x5c]
shl edx, cl
jmp 0x14001f1f4
mov ecx, r11d
shr edx, cl
mov r8, qword [rsp + 0xb8]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x60]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x2ecbe0]
mov ecx, dword [r9 + r8*4 + 0x2e42b8]
sar edx, cl
mov byte [r14], dl
mov edx, eax
and edx, dword [rsp + 0x30]
test esi, esi
jns 0x14001f231
mov ecx, dword [rsp + 0x64]
shl edx, cl
jmp 0x14001f235
mov ecx, esi
shr edx, cl
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x68]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x2ecbe0]
mov ecx, dword [r9 + r8*4 + 0x2e42b8]
sar edx, cl
mov ecx, dword [rsp + 0x2c]
mov byte [r14 + 1], dl
mov edx, eax
and edx, dword [rsp + 0x28]
test ecx, ecx
jns 0x14001f270
mov ecx, dword [rsp + 0x6c]
shl edx, cl
jmp 0x14001f272
shr edx, cl
mov r8, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x70]
mov r10d, dword [rsp + 0x58]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x2ecbe0]
mov ecx, dword [r9 + r8*4 + 0x2e42b8]
sar edx, cl
mov byte [r14 + 2], dl
test r10d, r10d
je 0x14001f2d5
mov r8d, dword [rsp + 0x44]
and eax, r10d
test r8d, r8d
jns 0x14001f2b6
mov ecx, dword [rsp + 0x74]
shl eax, cl
jmp 0x14001f2bb
mov ecx, r8d
shr eax, cl
mov ecx, r13d
shr eax, cl
imul eax, dword [r9 + rdi*4 + 0x2ecbe0]
mov ecx, dword [r9 + rdi*4 + 0x2e42b8]
sar eax, cl
jmp 0x14001f2da
mov eax, 0xff
or dword [rsp + 0x34], eax
add r15d, 4
mov byte [r14 + 3], al
inc ebp
add r14, 4
cmp ebp, dword [rbx]
jl 0x14001f1b2
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x20]
test r10d, r10d
je 0x14001f34e
cmp qword [rbx + 0x10], 0
je 0x14001f344
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r10d
jge 0x14001f344
mov rax, qword [rbx + 0xc8]
mov edx, r10d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
mov r10d, dword [rsp + 0x20]
jmp 0x14001f34e
mov eax, r10d
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x24]
mov eax, dword [rbx + 4]
inc ecx
mov rdi, qword [rsp + 0x88]
mov edx, eax
mov dword [rsp + 0x24], ecx
cmp ecx, eax
jl 0x14001f050
cmp dword [rsp + 0x34], 0
jne 0x14001f392
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x14001f392
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x14001f385
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x78], 0
jle 0x14001f40e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x14001f40e
nop dword [rax]
nop dword [rax + rax]
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
shl r9d, 2
add rdx, rsi
add r9, rsi
test eax, eax
jle 0x14001f3ff
sub r9, rdx
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 0x14001f3e0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x14001f3b0
mov eax, dword [rbx]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0xd8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x14001ec9e
mov rcx, rsi
call fcn.140229280
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x14001ec98
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14001eca6
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14001ecae
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14001ecae
mov rax, qword gs:[0x58]
mov edx, 0x48
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x14001ecae