Function at 0x1400eef50
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 rsi
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
xor esi, esi
mov dword [rbp - 0x74], 0xff
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x20], esi
mov rbx, rcx
call fcn.1400eea90
test rax, rax
jne 0x1400eef9b
add rsp, 0x4c0
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rbx + 4]
mov r8d, eax
mov qword [rsp + 0x4e0], rdi
neg r8d
mov edi, dword [rbp - 0x74]
cmovs r8d, eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x4b8], r12
mov r12d, dword [rsp + 0x78]
mov dword [rbp + 0x400], eax
mov eax, dword [rbp - 0x80]
mov qword [rsp + 0x4b0], r13
mov r13d, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x7c]
mov qword [rsp + 0x4a8], r14
mov r14d, dword [rbp - 0x78]
mov qword [rsp + 0x4a0], r15
movsxd r15, dword [rsp + 0x74]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x34], eax
mov dword [rbx + 4], r8d
mov dword [rsp + 0x44], r14d
mov dword [rbp + 0x3f8], edi
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x30], r12d
mov dword [rbp + 0x408], r13d
cmp r12d, 0xc
jne 0x1400ef04d
cmp r13d, 0x18
jge 0x1400ef066
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400ef05e
cmp r13d, 0x10
jge 0x1400ef066
mov esi, r15d
sub esi, eax
sub esi, r12d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x1400ef097
mov rcx, qword [rbx + 0xb8]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x1400ef097
mov r8d, 0x150f
lea rdx, str.E:ReposSimHapticlibsimgui_stb_image.h
lea rcx, str.info.offset___s__img_buffer___s__buffer_start_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r8d, dword [rbx + 4]
cmp r13d, 0x18
jne 0x1400ef0ac
cmp r14d, 0xff000000
jne 0x1400ef0ac
lea eax, [r13 - 0x15]
jmp 0x1400ef0b7
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400efd8d
jne 0x1400ef0d0
lea r9d, [rcx*4]
jmp 0x1400ef0f2
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400efd8d
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400efd8d
test r8d, r8d
js 0x1400efd8d
je 0x1400ef10f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400efd8d
test ecx, ecx
jne 0x1400ef11d
lea r9d, [rcx*4]
jmp 0x1400ef140
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400efd78
lea edx, [rcx*4]
test edx, edx
js 0x1400efd78
mov r9d, edx
test r8d, r8d
je 0x1400ef157
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400efd78
imul r8d, ecx
lea eax, [r8*4]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
mov r14, rax
test rax, rax
je 0x1400efd78
cmp r13d, 0x10
jge 0x1400ef721
xor edi, edi
test esi, esi
je 0x1400ef700
cmp esi, 0x100
jg 0x1400ef700
movsxd rax, esi
test esi, esi
jle 0x1400ef2fe
mov r14d, dword [rsp + 0x30]
lea rsi, [rbx + 0x30]
xor r12d, r12d
lea r15, [rbp - 0x5d]
mov r13, rax
lea rdi, [rbp - 0x60]
nop
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef1df
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef209
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400ef207
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef209
xor cl, cl
lea rdx, [rbp - 0x5e]
mov qword [rsp + 0x28], rsi
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef22e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef253
cmp dword [rsi], 0
je 0x1400ef251
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef253
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef274
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef299
cmp dword [rsi], 0
je 0x1400ef297
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef299
xor cl, cl
mov byte [rdi + r12*4], cl
cmp r14d, 0xc
je 0x1400ef2d1
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef2b8
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef2d1
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400ef2d1
mov rcx, rbx
call fcn.1400e5290
inc qword [rbx + 0xb8]
mov byte [r15 + r12*4], 0xff
inc r12
cmp r12, r13
jl 0x1400ef1c0
mov r14, qword [rsp + 0x68]
xor edi, edi
mov r15d, dword [rsp + 0x3c]
mov r13d, dword [rbp + 0x408]
mov esi, dword [rsp + 0x20]
mov r12d, dword [rsp + 0x30]
xor eax, eax
cmp r12d, 0xc
setne al
add eax, 3
imul eax, esi
sub r15d, eax
sub r15d, dword [rsp + 0x34]
sub r15d, r12d
jns 0x1400ef32a
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef369
cmp qword [rbx + 0x10], 0
je 0x1400ef35f
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400ef35f
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 0x1400ef369
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp r13d, 1
jne 0x1400ef37c
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400ef39a
cmp r13d, 4
jne 0x1400ef38d
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400ef39a
cmp r13d, 8
jne 0x1400ef6df
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x1400ef51c
xor r13d, r13d
test eax, eax
jle 0x1400efca5
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef3e4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef40a
cmp dword [rbx + 0x30], 0
je 0x1400ef408
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef40a
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x1400ef4c8
mov r8d, edx
nop
mov eax, r9d
mov ecx, esi
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x60]
mov byte [rdi + r14], al
movzx eax, byte [rbp + rcx - 0x5f]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rbp + rcx - 0x5e]
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 0x1400ef4c8
sub esi, 1
mov edx, r8d
jns 0x1400ef4bc
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef490
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef4b8
cmp dword [rbx + 0x30], 0
je 0x1400ef4b6
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x1400ef4b8
xor cl, cl
movzx r9d, cl
mov r8d, edx
cmp r15d, edx
jl 0x1400ef420
cmp qword [rbx + 0x10], 0
je 0x1400ef4fc
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400ef4fc
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 0x1400ef506
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1400ef3c0
jmp 0x1400efca5
mov dword [rbp + 0x400], 0
test eax, eax
jle 0x1400efca5
lea r15, [rbx + 0xc0]
xor esi, esi
cmp dword [rbx], esi
jle 0x1400ef681
nop
mov r8, qword [rbx + 0xb8]
cmp r8, qword [r15]
jae 0x1400ef55c
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1400ef583
cmp dword [rbx + 0x30], 0
je 0x1400ef581
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1400ef583
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r13d, 4
jne 0x1400ef5a5
mov r10d, eax
and r10d, 0xf
shr eax, 4
mov r9d, dword [rbx]
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x60]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5e]
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, r9d
je 0x1400ef681
cmp r13d, 8
jne 0x1400ef639
cmp r8, qword [r15]
jae 0x1400ef60c
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef635
cmp dword [r11], 0
je 0x1400ef633
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x1400ef635
xor cl, cl
movzx r10d, cl
movsxd rcx, edi
lea rdx, [r10*4]
movzx eax, byte [rbp + rdx - 0x60]
inc edi
add esi, 2
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5f]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rbp + rdx - 0x5e]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, r9d
jl 0x1400ef540
cmp qword [rbx + 0x10], 0
lea r15, [rbx + 0xc0]
je 0x1400ef6b5
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400ef6b5
mov rax, qword [r15]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400ef6bf
mov eax, r12d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x400]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rbp + 0x400], ecx
mov edx, eax
cmp ecx, eax
jl 0x1400ef535
jmp 0x1400efca5
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_bpp
jmp 0x1400efda0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1400efda0
sub r15d, dword [rsp + 0x34]
xor r13d, r13d
sub r15d, r12d
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
jns 0x1400ef77e
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef7bc
cmp qword [rbx + 0x10], r13
je 0x1400ef7b2
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400ef7b2
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 0x1400ef7bc
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x408]
cmp ecx, 0x18
jne 0x1400ef7cf
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400ef7df
cmp ecx, 0x10
jne 0x1400ef7dc
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400ef7df
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp ecx, 0x18
jne 0x1400ef800
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1400ef9f3
mov r11d, dword [rsp + 0x40]
xor r10d, r10d
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x28], r10
cmp ecx, 0x20
jne 0x1400ef867
mov qword [rsp + 0x28], r10
cmp r11d, 0xff
jne 0x1400ef867
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], r10
cmp esi, 0xff00
jne 0x1400ef86d
mov qword [rsp + 0x28], r10
cmp ecx, 0xff0000
jne 0x1400ef86d
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r10
cmp r9d, 0xff000000
jne 0x1400ef88b
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1400ef9f3
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1400efd5a
test esi, esi
je 0x1400efd5a
test r11d, r11d
je 0x1400efd5a
mov r9d, dword [rsp + 0x44]
call fcn.1400ee990
mov edx, dword [rbp + 0x400]
sub eax, 7
mov ecx, dword [rbp + 0x400]
shr edx, 1
and ecx, 0x55555555
and edx, 0x55555555
mov dword [rsp + 0x20], 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, esi
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
mov dword [rsp + 0x30], eax
call fcn.1400ee990
sub eax, 7
mov edx, esi
shr edx, 1
mov ecx, esi
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, r11d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
mov dword [rsp + 0x48], eax
call fcn.1400ee990
sub eax, 7
mov edx, r11d
shr edx, 1
mov ecx, r11d
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, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx eax, al
mov dword [rsp + 0x50], eax
call fcn.1400ee990
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x5c], 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 eax, al
mov dword [rsp + 0x58], eax
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x3c], r13d
test eax, eax
jle 0x1400efca5
lea r15, [rbx + 0xc0]
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r10, r10
je 0x1400efb68
test eax, eax
jle 0x1400efc42
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x1400efa4c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efa76
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1400efa74
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efa76
xor cl, cl
mov byte [rsi + 2], cl
cmp rax, qword [r15]
jae 0x1400efa8d
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efab2
cmp dword [rdi], 0
je 0x1400efab0
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efab2
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [r15]
jae 0x1400efacd
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efaf2
cmp dword [rdi], 0
je 0x1400efaf0
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efaf2
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1400efb3b
cmp rax, qword [r15]
jae 0x1400efb14
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb3d
cmp dword [rdi], 0
je 0x1400efb37
mov rcx, rbx
call fcn.1400e5290
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb3d
xor cl, cl
jmp 0x1400efb3d
mov cl, 0xff
movzx eax, cl
add r13d, 4
or dword [rbp + 0x3f8], eax
inc r12d
mov byte [rsi + 3], cl
add rsi, 4
cmp r12d, dword [rbx]
jl 0x1400efa31
mov edi, dword [rbp + 0x3f8]
jmp 0x1400efc3b
test eax, eax
jle 0x1400efc42
lea r15, [rcx + r14]
mov r14d, dword [rbp + 0x408]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400e5490
cmp r14d, 0x10
jne 0x1400efb92
mov esi, eax
jmp 0x1400efba9
mov rcx, rbx
mov edi, eax
call fcn.1400e5490
mov esi, eax
shl esi, 0x10
add esi, edi
mov edi, dword [rbp + 0x3f8]
mov r8d, dword [rsp + 0x30]
mov ecx, esi
and ecx, dword [rbp + 0x400]
mov edx, dword [rsp + 0x20]
call fcn.1400eea00
mov r8d, dword [rsp + 0x48]
mov ecx, esi
and ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov byte [r15], al
call fcn.1400eea00
mov r8d, dword [rsp + 0x50]
mov ecx, esi
and ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x54]
mov byte [r15 + 1], al
call fcn.1400eea00
mov r9d, dword [rsp + 0x44]
mov byte [r15 + 2], al
test r9d, r9d
je 0x1400efc11
mov r8d, dword [rsp + 0x58]
and esi, r9d
mov edx, dword [rsp + 0x5c]
mov ecx, esi
call fcn.1400eea00
jmp 0x1400efc16
mov eax, 0xff
or edi, eax
mov byte [r15 + 3], al
add r15, 4
mov dword [rbp + 0x3f8], edi
add r13d, 4
inc r12d
cmp r12d, dword [rbx]
jl 0x1400efb80
mov r14, qword [rsp + 0x68]
lea r15, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov r8d, dword [rsp + 0x34]
je 0x1400efc74
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r8d
jge 0x1400efc7b
mov rax, qword [r15]
mov edx, r8d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400efc85
lea r15, [rbx + 0xc0]
mov eax, r8d
add qword [rbx + 0xb8], rax
mov r8d, dword [rsp + 0x3c]
mov eax, dword [rbx + 4]
inc r8d
mov r10, qword [rsp + 0x28]
mov edx, eax
mov dword [rsp + 0x3c], r8d
cmp r8d, eax
jl 0x1400efa10
cmp dword [rbp + 0x3f8], 0
jne 0x1400efcce
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400efcce
nop
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1400efcc0
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x60], 0
jle 0x1400efd3e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400efd3e
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, r10d
imul edx, ecx
xor r8d, r8d
imul r9d, ecx
lea eax, [rcx*4]
shl edx, 2
mov r11d, edx
add rdx, r14
shl r9d, 2
test eax, eax
jle 0x1400efd2f
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 0x1400efd10
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400efce0
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x3e8]
mov dword [rcx], eax
mov eax, dword [rbx + 4]
mov rcx, qword [rbp + 0x3f0]
mov dword [rcx], eax
mov rax, r14
jmp 0x1400efdab
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1400efda0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400efda0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.too_large
mov edx, 0x18
mov qword [rdx + rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x4b0]
mov r12, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4e0]
mov r15, qword [rsp + 0x4a0]
add rsp, 0x4c0
pop rsi
pop rbx
pop rbp
ret