Function at 0x1400efc50
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.1400ef790
test rax, rax
jne 0x1400efc9b
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 0x1400efd4d
cmp r13d, 0x18
jge 0x1400efd66
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400efd5e
cmp r13d, 0x10
jge 0x1400efd66
mov esi, r15d
sub esi, eax
sub esi, r12d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x1400efd97
mov rcx, qword [rbx + 0xb8]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x1400efd97
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 0x1400efdac
cmp r14d, 0xff000000
jne 0x1400efdac
lea eax, [r13 - 0x15]
jmp 0x1400efdb7
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400f0a8d
jne 0x1400efdd0
lea r9d, [rcx*4]
jmp 0x1400efdf2
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400f0a8d
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400f0a8d
test r8d, r8d
js 0x1400f0a8d
je 0x1400efe0f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400f0a8d
test ecx, ecx
jne 0x1400efe1d
lea r9d, [rcx*4]
jmp 0x1400efe40
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400f0a78
lea edx, [rcx*4]
test edx, edx
js 0x1400f0a78
mov r9d, edx
test r8d, r8d
je 0x1400efe57
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400f0a78
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 0x1400f0a78
cmp r13d, 0x10
jge 0x1400f0421
xor edi, edi
test esi, esi
je 0x1400f0400
cmp esi, 0x100
jg 0x1400f0400
movsxd rax, esi
test esi, esi
jle 0x1400efffe
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 0x1400efedf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff09
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400eff07
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff09
xor cl, cl
lea rdx, [rbp - 0x5e]
mov qword [rsp + 0x28], rsi
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400eff2e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff53
cmp dword [rsi], 0
je 0x1400eff51
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff53
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400eff74
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff99
cmp dword [rsi], 0
je 0x1400eff97
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400eff99
xor cl, cl
mov byte [rdi + r12*4], cl
cmp r14d, 0xc
je 0x1400effd1
cmp rax, qword [rbx + 0xc0]
jae 0x1400effb8
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400effd1
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400effd1
mov rcx, rbx
call fcn.1400e5f90
inc qword [rbx + 0xb8]
mov byte [r15 + r12*4], 0xff
inc r12
cmp r12, r13
jl 0x1400efec0
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 0x1400f002a
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400f0069
cmp qword [rbx + 0x10], 0
je 0x1400f005f
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400f005f
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 0x1400f0069
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp r13d, 1
jne 0x1400f007c
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400f009a
cmp r13d, 4
jne 0x1400f008d
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400f009a
cmp r13d, 8
jne 0x1400f03df
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x1400f021c
xor r13d, r13d
test eax, eax
jle 0x1400f09a5
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400f00e4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f010a
cmp dword [rbx + 0x30], 0
je 0x1400f0108
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f010a
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x1400f01c8
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 0x1400f01c8
sub esi, 1
mov edx, r8d
jns 0x1400f01bc
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400f0190
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f01b8
cmp dword [rbx + 0x30], 0
je 0x1400f01b6
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x1400f01b8
xor cl, cl
movzx r9d, cl
mov r8d, edx
cmp r15d, edx
jl 0x1400f0120
cmp qword [rbx + 0x10], 0
je 0x1400f01fc
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400f01fc
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 0x1400f0206
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1400f00c0
jmp 0x1400f09a5
mov dword [rbp + 0x400], 0
test eax, eax
jle 0x1400f09a5
lea r15, [rbx + 0xc0]
xor esi, esi
cmp dword [rbx], esi
jle 0x1400f0381
nop
mov r8, qword [rbx + 0xb8]
cmp r8, qword [r15]
jae 0x1400f025c
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1400f0283
cmp dword [rbx + 0x30], 0
je 0x1400f0281
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1400f0283
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r13d, 4
jne 0x1400f02a5
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 0x1400f0381
cmp r13d, 8
jne 0x1400f0339
cmp r8, qword [r15]
jae 0x1400f030c
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x1400f0335
cmp dword [r11], 0
je 0x1400f0333
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x1400f0335
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 0x1400f0240
cmp qword [rbx + 0x10], 0
lea r15, [rbx + 0xc0]
je 0x1400f03b5
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400f03b5
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 0x1400f03bf
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 0x1400f0235
jmp 0x1400f09a5
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 0x1400f0aa0
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 0x1400f0aa0
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 0x1400f047e
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400f04bc
cmp qword [rbx + 0x10], r13
je 0x1400f04b2
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400f04b2
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 0x1400f04bc
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x408]
cmp ecx, 0x18
jne 0x1400f04cf
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400f04df
cmp ecx, 0x10
jne 0x1400f04dc
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400f04df
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp ecx, 0x18
jne 0x1400f0500
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1400f06f3
mov r11d, dword [rsp + 0x40]
xor r10d, r10d
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x28], r10
cmp ecx, 0x20
jne 0x1400f0567
mov qword [rsp + 0x28], r10
cmp r11d, 0xff
jne 0x1400f0567
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], r10
cmp esi, 0xff00
jne 0x1400f056d
mov qword [rsp + 0x28], r10
cmp ecx, 0xff0000
jne 0x1400f056d
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r10
cmp r9d, 0xff000000
jne 0x1400f058b
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1400f06f3
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1400f0a5a
test esi, esi
je 0x1400f0a5a
test r11d, r11d
je 0x1400f0a5a
mov r9d, dword [rsp + 0x44]
call fcn.1400ef690
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.1400ef690
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.1400ef690
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.1400ef690
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 0x1400f09a5
lea r15, [rbx + 0xc0]
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r10, r10
je 0x1400f0868
test eax, eax
jle 0x1400f0942
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x1400f074c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f0776
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1400f0774
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f0776
xor cl, cl
mov byte [rsi + 2], cl
cmp rax, qword [r15]
jae 0x1400f078d
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f07b2
cmp dword [rdi], 0
je 0x1400f07b0
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f07b2
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [r15]
jae 0x1400f07cd
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f07f2
cmp dword [rdi], 0
je 0x1400f07f0
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f07f2
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1400f083b
cmp rax, qword [r15]
jae 0x1400f0814
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f083d
cmp dword [rdi], 0
je 0x1400f0837
mov rcx, rbx
call fcn.1400e5f90
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400f083d
xor cl, cl
jmp 0x1400f083d
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 0x1400f0731
mov edi, dword [rbp + 0x3f8]
jmp 0x1400f093b
test eax, eax
jle 0x1400f0942
lea r15, [rcx + r14]
mov r14d, dword [rbp + 0x408]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400e6190
cmp r14d, 0x10
jne 0x1400f0892
mov esi, eax
jmp 0x1400f08a9
mov rcx, rbx
mov edi, eax
call fcn.1400e6190
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.1400ef700
mov r8d, dword [rsp + 0x48]
mov ecx, esi
and ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov byte [r15], al
call fcn.1400ef700
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.1400ef700
mov r9d, dword [rsp + 0x44]
mov byte [r15 + 2], al
test r9d, r9d
je 0x1400f0911
mov r8d, dword [rsp + 0x58]
and esi, r9d
mov edx, dword [rsp + 0x5c]
mov ecx, esi
call fcn.1400ef700
jmp 0x1400f0916
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 0x1400f0880
mov r14, qword [rsp + 0x68]
lea r15, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov r8d, dword [rsp + 0x34]
je 0x1400f0974
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r8d
jge 0x1400f097b
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 0x1400f0985
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 0x1400f0710
cmp dword [rbp + 0x3f8], 0
jne 0x1400f09ce
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400f09ce
nop
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1400f09c0
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x60], 0
jle 0x1400f0a3e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400f0a3e
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 0x1400f0a2f
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 0x1400f0a10
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400f09e0
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 0x1400f0aab
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 0x1400f0aa0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400f0aa0
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