Function at 0x1400eefb0
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.1400eeaf0
test rax, rax
jne 0x1400eeffb
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 0x1400ef0ad
cmp r13d, 0x18
jge 0x1400ef0c6
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400ef0be
cmp r13d, 0x10
jge 0x1400ef0c6
mov esi, r15d
sub esi, eax
sub esi, r12d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x1400ef0f7
mov rcx, qword [rbx + 0xb8]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x1400ef0f7
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 0x1400ef10c
cmp r14d, 0xff000000
jne 0x1400ef10c
lea eax, [r13 - 0x15]
jmp 0x1400ef117
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400efded
jne 0x1400ef130
lea r9d, [rcx*4]
jmp 0x1400ef152
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400efded
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400efded
test r8d, r8d
js 0x1400efded
je 0x1400ef16f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400efded
test ecx, ecx
jne 0x1400ef17d
lea r9d, [rcx*4]
jmp 0x1400ef1a0
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400efdd8
lea edx, [rcx*4]
test edx, edx
js 0x1400efdd8
mov r9d, edx
test r8d, r8d
je 0x1400ef1b7
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400efdd8
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 0x1400efdd8
cmp r13d, 0x10
jge 0x1400ef781
xor edi, edi
test esi, esi
je 0x1400ef760
cmp esi, 0x100
jg 0x1400ef760
movsxd rax, esi
test esi, esi
jle 0x1400ef35e
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 0x1400ef23f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef269
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400ef267
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef269
xor cl, cl
lea rdx, [rbp - 0x5e]
mov qword [rsp + 0x28], rsi
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef28e
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef2b3
cmp dword [rsi], 0
je 0x1400ef2b1
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef2b3
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef2d4
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef2f9
cmp dword [rsi], 0
je 0x1400ef2f7
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef2f9
xor cl, cl
mov byte [rdi + r12*4], cl
cmp r14d, 0xc
je 0x1400ef331
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef318
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef331
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400ef331
mov rcx, rbx
call fcn.1400e52f0
inc qword [rbx + 0xb8]
mov byte [r15 + r12*4], 0xff
inc r12
cmp r12, r13
jl 0x1400ef220
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 0x1400ef38a
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef3c9
cmp qword [rbx + 0x10], 0
je 0x1400ef3bf
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400ef3bf
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 0x1400ef3c9
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp r13d, 1
jne 0x1400ef3dc
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400ef3fa
cmp r13d, 4
jne 0x1400ef3ed
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400ef3fa
cmp r13d, 8
jne 0x1400ef73f
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x1400ef57c
xor r13d, r13d
test eax, eax
jle 0x1400efd05
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef444
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef46a
cmp dword [rbx + 0x30], 0
je 0x1400ef468
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef46a
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x1400ef528
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 0x1400ef528
sub esi, 1
mov edx, r8d
jns 0x1400ef51c
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ef4f0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ef518
cmp dword [rbx + 0x30], 0
je 0x1400ef516
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x1400ef518
xor cl, cl
movzx r9d, cl
mov r8d, edx
cmp r15d, edx
jl 0x1400ef480
cmp qword [rbx + 0x10], 0
je 0x1400ef55c
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400ef55c
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 0x1400ef566
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1400ef420
jmp 0x1400efd05
mov dword [rbp + 0x400], 0
test eax, eax
jle 0x1400efd05
lea r15, [rbx + 0xc0]
xor esi, esi
cmp dword [rbx], esi
jle 0x1400ef6e1
nop
mov r8, qword [rbx + 0xb8]
cmp r8, qword [r15]
jae 0x1400ef5bc
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1400ef5e3
cmp dword [rbx + 0x30], 0
je 0x1400ef5e1
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1400ef5e3
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r13d, 4
jne 0x1400ef605
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 0x1400ef6e1
cmp r13d, 8
jne 0x1400ef699
cmp r8, qword [r15]
jae 0x1400ef66c
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef695
cmp dword [r11], 0
je 0x1400ef693
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x1400ef695
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 0x1400ef5a0
cmp qword [rbx + 0x10], 0
lea r15, [rbx + 0xc0]
je 0x1400ef715
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400ef715
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 0x1400ef71f
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 0x1400ef595
jmp 0x1400efd05
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 0x1400efe00
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 0x1400efe00
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 0x1400ef7de
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400ef81c
cmp qword [rbx + 0x10], r13
je 0x1400ef812
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400ef812
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 0x1400ef81c
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x408]
cmp ecx, 0x18
jne 0x1400ef82f
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400ef83f
cmp ecx, 0x10
jne 0x1400ef83c
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400ef83f
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp ecx, 0x18
jne 0x1400ef860
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1400efa53
mov r11d, dword [rsp + 0x40]
xor r10d, r10d
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x28], r10
cmp ecx, 0x20
jne 0x1400ef8c7
mov qword [rsp + 0x28], r10
cmp r11d, 0xff
jne 0x1400ef8c7
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], r10
cmp esi, 0xff00
jne 0x1400ef8cd
mov qword [rsp + 0x28], r10
cmp ecx, 0xff0000
jne 0x1400ef8cd
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r10
cmp r9d, 0xff000000
jne 0x1400ef8eb
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1400efa53
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1400efdba
test esi, esi
je 0x1400efdba
test r11d, r11d
je 0x1400efdba
mov r9d, dword [rsp + 0x44]
call fcn.1400ee9f0
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.1400ee9f0
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.1400ee9f0
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.1400ee9f0
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 0x1400efd05
lea r15, [rbx + 0xc0]
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r10, r10
je 0x1400efbc8
test eax, eax
jle 0x1400efca2
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x1400efaac
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efad6
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1400efad4
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efad6
xor cl, cl
mov byte [rsi + 2], cl
cmp rax, qword [r15]
jae 0x1400efaed
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb12
cmp dword [rdi], 0
je 0x1400efb10
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb12
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [r15]
jae 0x1400efb2d
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb52
cmp dword [rdi], 0
je 0x1400efb50
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb52
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1400efb9b
cmp rax, qword [r15]
jae 0x1400efb74
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb9d
cmp dword [rdi], 0
je 0x1400efb97
mov rcx, rbx
call fcn.1400e52f0
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400efb9d
xor cl, cl
jmp 0x1400efb9d
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 0x1400efa91
mov edi, dword [rbp + 0x3f8]
jmp 0x1400efc9b
test eax, eax
jle 0x1400efca2
lea r15, [rcx + r14]
mov r14d, dword [rbp + 0x408]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400e54f0
cmp r14d, 0x10
jne 0x1400efbf2
mov esi, eax
jmp 0x1400efc09
mov rcx, rbx
mov edi, eax
call fcn.1400e54f0
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.1400eea60
mov r8d, dword [rsp + 0x48]
mov ecx, esi
and ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov byte [r15], al
call fcn.1400eea60
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.1400eea60
mov r9d, dword [rsp + 0x44]
mov byte [r15 + 2], al
test r9d, r9d
je 0x1400efc71
mov r8d, dword [rsp + 0x58]
and esi, r9d
mov edx, dword [rsp + 0x5c]
mov ecx, esi
call fcn.1400eea60
jmp 0x1400efc76
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 0x1400efbe0
mov r14, qword [rsp + 0x68]
lea r15, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov r8d, dword [rsp + 0x34]
je 0x1400efcd4
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r8d
jge 0x1400efcdb
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 0x1400efce5
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 0x1400efa70
cmp dword [rbp + 0x3f8], 0
jne 0x1400efd2e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400efd2e
nop
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1400efd20
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x60], 0
jle 0x1400efd9e
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400efd9e
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 0x1400efd8f
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 0x1400efd70
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400efd40
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 0x1400efe0b
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 0x1400efe00
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400efe00
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