Function at 0x1400baae0
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.1400ba620
test rax, rax
jne 0x1400bab2b
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 0x1400babdd
cmp r13d, 0x18
jge 0x1400babf6
mov ecx, r15d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x1400babee
cmp r13d, 0x10
jge 0x1400babf6
mov esi, r15d
sub esi, eax
sub esi, r12d
sar esi, 2
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x1400bac27
mov rcx, qword [rbx + 0xb8]
sub rcx, rbx
sub rcx, 0x38
cmp r15, rcx
je 0x1400bac27
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 0x1400bac3c
cmp r14d, 0xff000000
jne 0x1400bac3c
lea eax, [r13 - 0x15]
jmp 0x1400bac47
xor eax, eax
test r14d, r14d
setne al
add eax, 3
mov dword [rbx + 8], eax
mov ecx, dword [rbx]
test ecx, ecx
js 0x1400bb91d
jne 0x1400bac60
lea r9d, [rcx*4]
jmp 0x1400bac82
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400bb91d
lea r9d, [rcx*4]
test r9d, r9d
js 0x1400bb91d
test r8d, r8d
js 0x1400bb91d
je 0x1400bac9f
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400bb91d
test ecx, ecx
jne 0x1400bacad
lea r9d, [rcx*4]
jmp 0x1400bacd0
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1400bb908
lea edx, [rcx*4]
test edx, edx
js 0x1400bb908
mov r9d, edx
test r8d, r8d
je 0x1400bace7
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x1400bb908
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 0x1400bb908
cmp r13d, 0x10
jge 0x1400bb2b1
xor edi, edi
test esi, esi
je 0x1400bb290
cmp esi, 0x100
jg 0x1400bb290
movsxd rax, esi
test esi, esi
jle 0x1400bae8e
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 0x1400bad6f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bad99
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1400bad97
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bad99
xor cl, cl
lea rdx, [rbp - 0x5e]
mov qword [rsp + 0x28], rsi
mov byte [rdx + r12*4], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400badbe
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bade3
cmp dword [rsi], 0
je 0x1400bade1
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bade3
xor cl, cl
mov byte [rbp + r12*4 - 0x5f], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400bae04
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae29
cmp dword [rsi], 0
je 0x1400bae27
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae29
xor cl, cl
mov byte [rdi + r12*4], cl
cmp r14d, 0xc
je 0x1400bae61
cmp rax, qword [rbx + 0xc0]
jae 0x1400bae48
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bae61
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
je 0x1400bae61
mov rcx, rbx
call fcn.1400b0e20
inc qword [rbx + 0xb8]
mov byte [r15 + r12*4], 0xff
inc r12
cmp r12, r13
jl 0x1400bad50
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 0x1400baeba
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400baef9
cmp qword [rbx + 0x10], 0
je 0x1400baeef
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400baeef
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 0x1400baef9
movsxd rax, r15d
add qword [rbx + 0xb8], rax
cmp r13d, 1
jne 0x1400baf0c
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1400baf2a
cmp r13d, 4
jne 0x1400baf1d
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1400baf2a
cmp r13d, 8
jne 0x1400bb26f
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r13d, 1
jne 0x1400bb0ac
xor r13d, r13d
test eax, eax
jle 0x1400bb835
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400baf74
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400baf9a
cmp dword [rbx + 0x30], 0
je 0x1400baf98
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400baf9a
xor cl, cl
mov edx, dword [rbx]
xor r15d, r15d
movzx r9d, cl
test edx, edx
jle 0x1400bb058
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 0x1400bb058
sub esi, 1
mov edx, r8d
jns 0x1400bb04c
mov rax, qword [rbx + 0xb8]
mov esi, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400bb020
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb048
cmp dword [rbx + 0x30], 0
je 0x1400bb046
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x1400bb048
xor cl, cl
movzx r9d, cl
mov r8d, edx
cmp r15d, edx
jl 0x1400bafb0
cmp qword [rbx + 0x10], 0
je 0x1400bb08c
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400bb08c
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 0x1400bb096
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r13d
mov edx, eax
cmp r13d, eax
jl 0x1400baf50
jmp 0x1400bb835
mov dword [rbp + 0x400], 0
test eax, eax
jle 0x1400bb835
lea r15, [rbx + 0xc0]
xor esi, esi
cmp dword [rbx], esi
jle 0x1400bb211
nop
mov r8, qword [rbx + 0xb8]
cmp r8, qword [r15]
jae 0x1400bb0ec
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x1400bb113
cmp dword [rbx + 0x30], 0
je 0x1400bb111
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x1400bb113
xor cl, cl
mov edx, 0x30
xor r10d, r10d
mov rax, rbx
movzx eax, cl
lea r11, [rbx + rdx]
cmp r13d, 4
jne 0x1400bb135
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 0x1400bb211
cmp r13d, 8
jne 0x1400bb1c9
cmp r8, qword [r15]
jae 0x1400bb19c
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x1400bb1c5
cmp dword [r11], 0
je 0x1400bb1c3
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov r9d, dword [rbx]
jmp 0x1400bb1c5
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 0x1400bb0d0
cmp qword [rbx + 0x10], 0
lea r15, [rbx + 0xc0]
je 0x1400bb245
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400bb245
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 0x1400bb24f
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 0x1400bb0c5
jmp 0x1400bb835
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 0x1400bb930
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 0x1400bb930
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 0x1400bb30e
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400bb34c
cmp qword [rbx + 0x10], r13
je 0x1400bb342
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r15d
jge 0x1400bb342
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 0x1400bb34c
movsxd rax, r15d
add qword [rbx + 0xb8], rax
mov ecx, dword [rbp + 0x408]
cmp ecx, 0x18
jne 0x1400bb35f
mov eax, dword [rbx]
lea r8d, [rax + rax*2]
jmp 0x1400bb36f
cmp ecx, 0x10
jne 0x1400bb36c
mov r8d, dword [rbx]
add r8d, r8d
jmp 0x1400bb36f
xor r8d, r8d
neg r8d
and r8d, 3
mov dword [rsp + 0x34], r8d
cmp ecx, 0x18
jne 0x1400bb390
mov r10d, 1
mov qword [rsp + 0x28], r10
jmp 0x1400bb583
mov r11d, dword [rsp + 0x40]
xor r10d, r10d
mov esi, dword [rsp + 0x38]
mov qword [rsp + 0x28], r10
cmp ecx, 0x20
jne 0x1400bb3f7
mov qword [rsp + 0x28], r10
cmp r11d, 0xff
jne 0x1400bb3f7
mov ecx, dword [rbp + 0x400]
mov qword [rsp + 0x28], r10
cmp esi, 0xff00
jne 0x1400bb3fd
mov qword [rsp + 0x28], r10
cmp ecx, 0xff0000
jne 0x1400bb3fd
mov r9d, dword [rsp + 0x44]
mov qword [rsp + 0x28], r10
cmp r9d, 0xff000000
jne 0x1400bb41b
mov r10d, 2
mov qword [rsp + 0x28], r10
jmp 0x1400bb583
mov ecx, dword [rbp + 0x400]
test ecx, ecx
je 0x1400bb8ea
test esi, esi
je 0x1400bb8ea
test r11d, r11d
je 0x1400bb8ea
mov r9d, dword [rsp + 0x44]
call fcn.1400ba520
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.1400ba520
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.1400ba520
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.1400ba520
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 0x1400bb835
lea r15, [rbx + 0xc0]
nop dword [rax]
mov eax, dword [rbx]
xor r12d, r12d
movsxd rcx, r13d
test r10, r10
je 0x1400bb6f8
test eax, eax
jle 0x1400bb7d2
lea rsi, [rcx + r14]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [r15]
jae 0x1400bb5dc
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb606
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1400bb604
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb606
xor cl, cl
mov byte [rsi + 2], cl
cmp rax, qword [r15]
jae 0x1400bb61d
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb642
cmp dword [rdi], 0
je 0x1400bb640
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb642
xor cl, cl
mov byte [rsi + 1], cl
cmp rax, qword [r15]
jae 0x1400bb65d
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb682
cmp dword [rdi], 0
je 0x1400bb680
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb682
xor cl, cl
cmp qword [rsp + 0x28], 2
mov byte [rsi], cl
jne 0x1400bb6cb
cmp rax, qword [r15]
jae 0x1400bb6a4
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb6cd
cmp dword [rdi], 0
je 0x1400bb6c7
mov rcx, rbx
call fcn.1400b0e20
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400bb6cd
xor cl, cl
jmp 0x1400bb6cd
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 0x1400bb5c1
mov edi, dword [rbp + 0x3f8]
jmp 0x1400bb7cb
test eax, eax
jle 0x1400bb7d2
lea r15, [rcx + r14]
mov r14d, dword [rbp + 0x408]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400b1020
cmp r14d, 0x10
jne 0x1400bb722
mov esi, eax
jmp 0x1400bb739
mov rcx, rbx
mov edi, eax
call fcn.1400b1020
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.1400ba590
mov r8d, dword [rsp + 0x48]
mov ecx, esi
and ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov byte [r15], al
call fcn.1400ba590
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.1400ba590
mov r9d, dword [rsp + 0x44]
mov byte [r15 + 2], al
test r9d, r9d
je 0x1400bb7a1
mov r8d, dword [rsp + 0x58]
and esi, r9d
mov edx, dword [rsp + 0x5c]
mov ecx, esi
call fcn.1400ba590
jmp 0x1400bb7a6
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 0x1400bb710
mov r14, qword [rsp + 0x68]
lea r15, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov r8d, dword [rsp + 0x34]
je 0x1400bb804
mov ecx, dword [r15]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r8d
jge 0x1400bb80b
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 0x1400bb815
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 0x1400bb5a0
cmp dword [rbp + 0x3f8], 0
jne 0x1400bb85e
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x1400bb85e
nop
mov byte [rcx + r14], 0xff
sub rcx, 4
jns 0x1400bb850
mov edx, dword [rbx + 4]
cmp dword [rsp + 0x60], 0
jle 0x1400bb8ce
xor r10d, r10d
test edx, 0xfffffffe
jle 0x1400bb8ce
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 0x1400bb8bf
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 0x1400bb8a0
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x1400bb870
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 0x1400bb93b
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 0x1400bb930
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.outofmem
jmp 0x1400bb930
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