Function at 0x1400ba2d0
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.1400b9e10
test rax, rax
jne 0x1400ba31b
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 0x1400ba3cd
cmp r13d, 0x18
jge 0x1400ba3e6
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400ba3de
cmp r13d, 0x10
jge 0x1400ba3e6
mov esi, r15d
sub esi, eax
sub esi, r12d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x1400ba417
mov rcx, qword [rbx + 0xb8]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x1400ba417
mov r8d, 0x150f
lea rdx, str.E:ReposDCRealisticlibsimgui_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 0x1400ba42c
cmp r14d, 0xff000000
jne 0x1400ba42c
lea eax, [r13 - 0x15]
jmp 0x1400ba437
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400bb10d
jne 0x1400ba450
lea r9d, [rcx*4]
jmp 0x1400ba472
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400bb10d
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400bb10d
test r8d, r8d
js 0x1400bb10d
je 0x1400ba48f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400bb10d
test ecx, ecx
jne 0x1400ba49d
lea r9d, [rcx*4]
jmp 0x1400ba4c0
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400bb0f8
lea edx, [rcx*4]
test edx, edx
js 0x1400bb0f8
mov r9d, edx
test r8d, r8d
je 0x1400ba4d7
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400bb0f8
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 0x1400bb0f8
cmp r13d, 0x10
jge 0x1400baaa1
xor edi, edi
test esi, esi
je 0x1400baa80
cmp esi, 0x100
jg 0x1400baa80
movsxd rax, esi
test esi, esi
jle 0x1400ba67e
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 0x1400ba55f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba589
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400ba587
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba589
xor cl, cl
lea rdx, [rbp - 0x5e]
mov qword [rsp + 0x28], rsi
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ba5ae
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba5d3
cmp dword [rsi], 0
je 0x1400ba5d1
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba5d3
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400ba5f4
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba619
cmp dword [rsi], 0
je 0x1400ba617
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba619
xor cl, cl
mov byte [rdi + r12*4], cl
cmp r14d, 0xc
je 0x1400ba651
cmp rax, qword [rbx + 0xc0]
jae 0x1400ba638
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba651
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400ba651
mov rcx, rbx
call fcn.1400b0610
inc qword [rbx + 0xb8]
mov byte [r15 + r12*4], 0xff
inc r12
cmp r12, r13
jl 0x1400ba540
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 0x1400ba6aa
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400ba6e9
cmp qword [rbx + 0x10], 0
je 0x1400ba6df
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400ba6df
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 0x1400ba6e9
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp r13d, 1
jne 0x1400ba6fc
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400ba71a
cmp r13d, 4
jne 0x1400ba70d
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400ba71a
cmp r13d, 8
jne 0x1400baa5f
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x1400ba89c
xor r13d, r13d
test eax, eax
jle 0x1400bb025
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ba764
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba78a
cmp dword [rbx + 0x30], 0
je 0x1400ba788
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba78a
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x1400ba848
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 0x1400ba848
sub esi, 1
mov edx, r8d
jns 0x1400ba83c
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400ba810
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400ba838
cmp dword [rbx + 0x30], 0
je 0x1400ba836
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x1400ba838
xor cl, cl
movzx r9d, cl
mov r8d, edx
cmp r15d, edx
jl 0x1400ba7a0
cmp qword [rbx + 0x10], 0
je 0x1400ba87c
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400ba87c
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 0x1400ba886
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1400ba740
jmp 0x1400bb025
mov dword [rbp + 0x400], 0
test eax, eax
jle 0x1400bb025
lea r15, [rbx + 0xc0]
xor esi, esi
cmp dword [rbx], esi
jle 0x1400baa01
nop
mov r8, qword [rbx + 0xb8]
cmp r8, qword [r15]
jae 0x1400ba8dc
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1400ba903
cmp dword [rbx + 0x30], 0
je 0x1400ba901
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1400ba903
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r13d, 4
jne 0x1400ba925
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 0x1400baa01
cmp r13d, 8
jne 0x1400ba9b9
cmp r8, qword [r15]
jae 0x1400ba98c
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x1400ba9b5
cmp dword [r11], 0
je 0x1400ba9b3
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x1400ba9b5
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 0x1400ba8c0
cmp qword [rbx + 0x10], 0
lea r15, [rbx + 0xc0]
je 0x1400baa35
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400baa35
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 0x1400baa3f
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 0x1400ba8b5
jmp 0x1400bb025
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 0x1400bb120
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 0x1400bb120
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 0x1400baafe
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400bab3c
cmp qword [rbx + 0x10], r13
je 0x1400bab32
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400bab32
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 0x1400bab3c
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x408]
cmp ecx, 0x18
jne 0x1400bab4f
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400bab5f
cmp ecx, 0x10
jne 0x1400bab5c
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400bab5f
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp ecx, 0x18
jne 0x1400bab80
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1400bad73
mov r11d, dword [rsp + 0x40]
xor r10d, r10d
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x28], r10
cmp ecx, 0x20
jne 0x1400babe7
mov qword [rsp + 0x28], r10
cmp r11d, 0xff
jne 0x1400babe7
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], r10
cmp esi, 0xff00
jne 0x1400babed
mov qword [rsp + 0x28], r10
cmp ecx, 0xff0000
jne 0x1400babed
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r10
cmp r9d, 0xff000000
jne 0x1400bac0b
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1400bad73
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1400bb0da
test esi, esi
je 0x1400bb0da
test r11d, r11d
je 0x1400bb0da
mov r9d, dword [rsp + 0x44]
call fcn.1400b9d10
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.1400b9d10
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.1400b9d10
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.1400b9d10
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 0x1400bb025
lea r15, [rbx + 0xc0]
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r10, r10
je 0x1400baee8
test eax, eax
jle 0x1400bafc2
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x1400badcc
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400badf6
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1400badf4
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400badf6
xor cl, cl
mov byte [rsi + 2], cl
cmp rax, qword [r15]
jae 0x1400bae0d
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae32
cmp dword [rdi], 0
je 0x1400bae30
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae32
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [r15]
jae 0x1400bae4d
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae72
cmp dword [rdi], 0
je 0x1400bae70
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae72
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1400baebb
cmp rax, qword [r15]
jae 0x1400bae94
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400baebd
cmp dword [rdi], 0
je 0x1400baeb7
mov rcx, rbx
call fcn.1400b0610
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400baebd
xor cl, cl
jmp 0x1400baebd
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 0x1400badb1
mov edi, dword [rbp + 0x3f8]
jmp 0x1400bafbb
test eax, eax
jle 0x1400bafc2
lea r15, [rcx + r14]
mov r14d, dword [rbp + 0x408]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400b0810
cmp r14d, 0x10
jne 0x1400baf12
mov esi, eax
jmp 0x1400baf29
mov rcx, rbx
mov edi, eax
call fcn.1400b0810
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.1400b9d80
mov r8d, dword [rsp + 0x48]
mov ecx, esi
and ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov byte [r15], al
call fcn.1400b9d80
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.1400b9d80
mov r9d, dword [rsp + 0x44]
mov byte [r15 + 2], al
test r9d, r9d
je 0x1400baf91
mov r8d, dword [rsp + 0x58]
and esi, r9d
mov edx, dword [rsp + 0x5c]
mov ecx, esi
call fcn.1400b9d80
jmp 0x1400baf96
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 0x1400baf00
mov r14, qword [rsp + 0x68]
lea r15, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov r8d, dword [rsp + 0x34]
je 0x1400baff4
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r8d
jge 0x1400baffb
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 0x1400bb005
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 0x1400bad90
cmp dword [rbp + 0x3f8], 0
jne 0x1400bb04e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400bb04e
nop
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1400bb040
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x60], 0
jle 0x1400bb0be
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400bb0be
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 0x1400bb0af
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 0x1400bb090
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400bb060
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 0x1400bb12b
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 0x1400bb120
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400bb120
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