Function at 0x1401e2570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push r15
sub rsp, 0x4f0
mov rbx, rcx
lea rcx, [0x1404b98c8]
call fcn.1402b13b0
xor ebp, ebp
mov dword [rsp + 0xa4], 0xff
lea rdx, [rsp + 0x88]
mov rcx, rbx
mov r15d, ebp
call fcn.1401e2070
test rax, rax
je 0x1401e25fb
mov eax, dword [rbx + 4]
mov r9d, eax
neg r9d
mov dword [rsp + 0x84], eax
cmovs r9d, eax
mov dword [rbx + 4], r9d
cmp r9d, 0x1000000
jbe 0x1401e2609
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
mov r8d, dword [rbx]
cmp r8d, 0x1000000
ja 0x1401e25df
mov eax, dword [rsp + 0x94]
mov r10d, dword [rsp + 0xa0]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rsp + 0x8c]
mov dword [rsp + 0x538], eax
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rsp + 0x90]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa4]
mov qword [rsp + 0x4d0], r14
mov r14d, dword [rsp + 0xa8]
mov dword [rsp + 0x530], eax
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x2c], edi
cmp r13d, 0xc
jne 0x1401e26cd
cmp edi, 0x18
jge 0x1401e26e4
mov ecx, r12d
mov eax, 0x55555556
sub ecx, r14d
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x1401e26df
cmp edi, 0x10
jge 0x1401e26e4
mov r15d, r12d
sub r15d, r14d
sub r15d, r13d
sar r15d, 2
test r15d, r15d
jne 0x1401e2732
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add ecx, dword [rbx + 0xb8]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x1401e33d9
cmp r12d, ecx
jl 0x1401e33b6
mov edx, r12d
sub edx, ecx
cmp edx, 0x400
jg 0x1401e33b6
mov rcx, rbx
call fcn.1401d8880
mov r9d, dword [rbx + 4]
mov r8d, dword [rbx]
mov r10d, dword [rsp + 0x34]
cmp edi, 0x18
jne 0x1401e2747
cmp r10d, 0xff000000
jne 0x1401e2747
mov eax, 3
jmp 0x1401e2752
test r10d, r10d
mov eax, ebp
setne al
add eax, 3
mov dword [rbx + 8], eax
test r8d, r8d
js 0x1401e3393
jne 0x1401e276a
lea ecx, [r8*4]
jmp 0x1401e278c
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x1401e3393
lea ecx, [r8*4]
test ecx, ecx
js 0x1401e3393
test r9d, r9d
js 0x1401e3393
je 0x1401e27a8
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x1401e3393
test r8d, r8d
je 0x1401e27bf
mov eax, 0x7fffffff
cdq
idiv r8d
cmp eax, 4
jl 0x1401e3370
lea ecx, [r8*4]
test r9d, r9d
je 0x1401e27dd
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x1401e3370
imul r8d, r9d
lea eax, [r8*4]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov rcx, rax
test rax, rax
je 0x1401e3370
cmp edi, 0x10
mov qword [rsp + 0x510], rsi
mov edi, ebp
jge 0x1401e2d40
mov dword [rsp + 0x538], ebp
test r15d, r15d
je 0x1401e2d20
cmp r15d, 0x100
jg 0x1401e2d20
mov r14, rax
test r15d, r15d
jle 0x1401e2987
mov r12d, dword [rsp + 0x24]
lea rsi, [rbx + 0x30]
movsxd rdi, r15d
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e286f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2899
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1401e2897
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2899
xor cl, cl
mov r13, rsi
mov byte [rsp + rbp*4 + 0xd2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401e28bb
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e28e0
cmp dword [rsi], 0
je 0x1401e28de
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e28e0
xor cl, cl
mov byte [rsp + rbp*4 + 0xd1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2903
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2928
cmp dword [rsi], 0
je 0x1401e2926
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2928
xor cl, cl
mov byte [rsp + rbp*4 + 0xd0], cl
cmp r12d, 0xc
je 0x1401e2960
cmp rax, qword [rbx + 0xc8]
jae 0x1401e294a
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2960
cmp dword [r13], 0
je 0x1401e2960
mov rcx, rbx
call fcn.1401d87f0
inc qword [rbx + 0xc0]
mov byte [rsp + rbp*4 + 0xd3], 0xff
inc rbp
cmp rbp, rdi
jl 0x1401e2850
mov edi, dword [rsp + 0x538]
xor ebp, ebp
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
mov eax, ebp
cmp r13d, 0xc
mov rcx, rbx
setne al
add eax, 3
imul eax, r15d
sub r12d, eax
sub r12d, dword [rsp + 0x28]
sub r12d, r13d
mov edx, r12d
call fcn.1401d8880
mov r15d, dword [rsp + 0x2c]
cmp r15d, 1
jne 0x1401e29c5
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1401e29e3
cmp r15d, 4
jne 0x1401e29d6
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1401e29e3
cmp r15d, 8
jne 0x1401e2cc5
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov ecx, eax
cmp r15d, 1
jne 0x1401e2b30
xor r15d, r15d
test eax, eax
jle 0x1401e3296
xor edi, edi
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2a34
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2a5a
cmp dword [rbx + 0x30], 0
je 0x1401e2a58
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2a5a
xor cl, cl
xor ebp, ebp
movzx edx, cl
cmp dword [rbx], ebp
jle 0x1401e2b0f
mov eax, edx
mov ecx, esi
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xd0]
mov byte [rdi + r14], al
movzx eax, byte [rsp + rcx + 0xd1]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rsp + rcx + 0xd2]
mov byte [rdi + r14 + 2], al
lea eax, [rbp + 1]
mov byte [rdi + r14 + 3], 0xff
mov ebp, eax
mov ecx, dword [rbx]
add rdi, 4
cmp eax, ecx
je 0x1401e2b0f
sub esi, 1
jns 0x1401e2b07
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2adc
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2b04
cmp dword [rbx + 0x30], 0
je 0x1401e2b02
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x1401e2b04
xor dl, dl
movzx edx, dl
cmp ebp, ecx
jl 0x1401e2a67
mov edx, r12d
mov rcx, rbx
call fcn.1401d8880
mov eax, dword [rbx + 4]
inc r15d
mov ecx, eax
cmp r15d, eax
jl 0x1401e2a10
jmp 0x1401e3296
xor ebp, ebp
test eax, eax
jle 0x1401e3296
nop word [rax + rax]
xor esi, esi
cmp dword [rbx], esi
jle 0x1401e2ca6
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2b6f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2b95
cmp dword [rbx + 0x30], 0
je 0x1401e2b93
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2b95
xor cl, cl
mov edx, Ordinal_50
xor r8d, r8d
mov rax, rbx
movzx eax, cl
lea r9, [rbx + rdx]
cmp r15d, 4
jne 0x1401e2bb7
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
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, dword [rbx]
je 0x1401e2ca6
cmp r15d, 8
jne 0x1401e2c56
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2c2c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2c52
cmp dword [r9], 0
je 0x1401e2c50
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e2c52
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
add esi, 2
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, dword [rbx]
jl 0x1401e2b50
mov edx, r12d
mov rcx, rbx
call fcn.1401d8880
mov eax, dword [rbx + 4]
inc ebp
mov ecx, eax
cmp ebp, eax
jl 0x1401e2b40
jmp 0x1401e3296
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r14, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1401e2ce6
sub r12d, r14d
mov dword [rsp + 0x40], ebp
sub r12d, r13d
mov dword [rsp + 0x24], ebp
mov edx, r12d
mov dword [rsp + 0x60], ebp
mov rcx, rbx
mov r15d, ebp
mov esi, ebp
call fcn.1401d8880
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0x18
jne 0x1401e2d72
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x1401e2d7f
cmp ecx, 0x10
jne 0x1401e2d7d
mov eax, dword [rbx]
add eax, eax
jmp 0x1401e2d7f
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x80], eax
cmp ecx, 0x18
jne 0x1401e2daf
mov r14, qword [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x38], rdx
mov r12d, esi
mov qword [rsp + 0x48], r14
mov r13d, esi
jmp 0x1401e2f05
mov r8, qword [rsp + 0x50]
xor eax, eax
mov r12d, dword [rsp + 0x44]
mov r14, r8
mov qword [rsp + 0x38], rax
cmp ecx, 0x20
jne 0x1401e2e28
mov qword [rsp + 0x38], rax
cmp r12d, 0xff
jne 0x1401e2e28
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x538]
cmp eax, 0xff00
jne 0x1401e2e2f
xor eax, eax
cmp dword [rsp + 0x30], 0xff0000
mov qword [rsp + 0x38], rax
jne 0x1401e2e28
cmp dword [rsp + 0x34], 0xff000000
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
jne 0x1401e2e70
mov edx, 2
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdx
mov r12d, eax
mov r13d, eax
jmp 0x1401e2f05
mov eax, dword [rsp + 0x538]
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x1401e2e4a
test eax, eax
je 0x1401e2e4a
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r8
test r12d, r12d
jne 0x1401e2e74
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1401e2ce6
mov edi, dword [rsp + 0x30]
mov ecx, edi
call fcn.1401e1ed0
mov ecx, edi
lea r13d, [rax - 7]
call fcn.1401e1f60
mov ecx, dword [rsp + 0x538]
mov r15d, eax
call fcn.1401e1ed0
mov ecx, dword [rsp + 0x538]
sub eax, 7
mov dword [rsp + 0x40], eax
call fcn.1401e1f60
mov ecx, r12d
mov edi, eax
call fcn.1401e1ed0
sub eax, 7
mov ecx, r12d
mov dword [rsp + 0x24], eax
call fcn.1401e1f60
mov ecx, dword [rsp + 0x34]
mov esi, eax
call fcn.1401e1ed0
mov ecx, dword [rsp + 0x34]
lea r12d, [rax - 7]
call fcn.1401e1f60
mov ebp, eax
cmp r15d, 8
jg 0x1401e2e4a
cmp edi, 8
jg 0x1401e2e4a
cmp esi, 8
jg 0x1401e2e4a
cmp eax, 8
jg 0x1401e2e4a
mov rdx, qword [rsp + 0x38]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x20], 0
test eax, eax
jle 0x1401e3296
mov ecx, 8
mov eax, r13d
neg eax
mov dword [rsp + 0x28], eax
mov eax, ecx
sub eax, r15d
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x68], eax
mov eax, ecx
sub eax, edi
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x24]
neg eax
mov dword [rsp + 0x70], eax
mov eax, ecx
sub eax, esi
mov dword [rsp + 0x74], eax
mov eax, r12d
neg eax
mov dword [rsp + 0x78], eax
sub ecx, ebp
movsxd rax, r15d
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x7c], ecx
movsxd rcx, edi
mov qword [rsp + 0xb0], rax
movsxd rax, esi
movsxd rdi, ebp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0xb8], rcx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r15d
test rdx, rdx
je 0x1401e3115
test eax, eax
jle 0x1401e3262
lea rsi, [r14 + rcx]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e2fdf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e3009
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1401e3007
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e3009
xor cl, cl
mov byte [rsi + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e302b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e3050
cmp dword [rdi], 0
je 0x1401e304e
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e3050
xor cl, cl
mov byte [rsi + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e3076
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e309b
cmp dword [rdi], 0
je 0x1401e3099
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e309b
xor cl, cl
cmp qword [rsp + 0x38], 2
mov byte [rsi], cl
jne 0x1401e30ef
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401e30c8
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e30f1
cmp dword [rdi], 0
je 0x1401e30eb
mov rcx, rbx
call fcn.1401d87f0
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401e30f1
xor cl, cl
jmp 0x1401e30f1
mov cl, 0xff
mov byte [rsi + 3], cl
add r15d, 4
movzx eax, cl
add rsi, 4
or dword [rsp + 0x530], eax
inc ebp
cmp ebp, dword [rbx]
jl 0x1401e2fc0
jmp 0x1401e3262
test eax, eax
jle 0x1401e3262
lea rsi, [r14 + rcx]
mov r14d, dword [rsp + 0x2c]
mov rcx, rbx
call fcn.1401d8ab0
cmp r14d, 0x10
je 0x1401e3148
mov rcx, rbx
mov edi, eax
call fcn.1401d8ab0
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x58]
mov edx, eax
and edx, dword [rsp + 0x30]
test r13d, r13d
jns 0x1401e315b
mov ecx, dword [rsp + 0x28]
shl edx, cl
jmp 0x1401e3160
mov ecx, r13d
shr edx, cl
mov r8, qword [rsp + 0xb0]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x64]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3e8598]
mov ecx, dword [r9 + r8*4 + 0x3e85f0]
sar edx, cl
mov ecx, dword [rsp + 0x40]
mov byte [rsi], dl
mov edx, eax
and edx, dword [rsp + 0x538]
test ecx, ecx
jns 0x1401e31a3
mov ecx, dword [rsp + 0x68]
shl edx, cl
jmp 0x1401e31a5
shr edx, cl
mov r8, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x6c]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3e8598]
mov ecx, dword [r9 + r8*4 + 0x3e85f0]
sar edx, cl
mov ecx, dword [rsp + 0x24]
mov byte [rsi + 1], dl
mov edx, eax
and edx, dword [rsp + 0x44]
test ecx, ecx
jns 0x1401e31df
mov ecx, dword [rsp + 0x70]
shl edx, cl
jmp 0x1401e31e1
shr edx, cl
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x74]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x3e8598]
mov ecx, dword [r9 + r8*4 + 0x3e85f0]
sar edx, cl
mov ecx, dword [rsp + 0x34]
mov byte [rsi + 2], dl
test ecx, ecx
je 0x1401e323c
and eax, ecx
test r12d, r12d
jns 0x1401e321c
mov ecx, dword [rsp + 0x78]
shl eax, cl
jmp 0x1401e3221
mov ecx, r12d
shr eax, cl
mov ecx, dword [rsp + 0x7c]
shr eax, cl
imul eax, dword [r9 + rdi*4 + 0x3e8598]
mov ecx, dword [r9 + rdi*4 + 0x3e85f0]
sar eax, cl
jmp 0x1401e3241
mov eax, 0xff
or dword [rsp + 0x530], eax
add r15d, 4
mov byte [rsi + 3], al
inc ebp
add rsi, 4
cmp ebp, dword [rbx]
jl 0x1401e3126
mov r14, qword [rsp + 0x48]
mov edx, dword [rsp + 0x80]
mov rcx, rbx
call fcn.1401d8880
mov r8d, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
inc r8d
mov rdx, qword [rsp + 0x38]
mov ecx, eax
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], r8d
cmp r8d, eax
jl 0x1401e2fa0
cmp dword [rsp + 0x530], 0
jne 0x1401e32c3
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x1401e32c3
mov rax, qword [rsp + 0x50]
mov byte [rdx + rax], 0xff
sub rdx, 4
jns 0x1401e32b6
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x84], 0
jle 0x1401e3340
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x1401e3340
nop word [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, r14
add r9, r14
test eax, eax
jle 0x1401e332f
sub r9, rdx
nop
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 0x1401e3310
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x1401e32e0
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x518]
mov dword [rdx], eax
mov rax, qword [rsp + 0x520]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x528]
test rcx, rcx
je 0x1401e3368
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x1401e2cec
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401e2cf4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401e2cf4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401e2cf4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401e2cf4