Function at 0x1401b1b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push r15
sub rsp, 0x4f0
mov rbx, rcx
lea rcx, [0x1404394e0]
call fcn.14027ddb0
xor ebp, ebp
mov dword [rsp + 0xa4], 0xff
lea rdx, [rsp + 0x88]
mov rcx, rbx
mov r15d, ebp
call fcn.1401b1630
test rax, rax
je 0x1401b1bbb
mov eax, dword [rbx + 4]
mov r8d, eax
neg r8d
mov dword [rsp + 0x84], eax
cmovs r8d, eax
mov dword [rbx + 4], r8d
cmp r8d, 0x1000000
jbe 0x1401b1bc9
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
mov r9d, dword [rbx]
cmp r9d, 0x1000000
ja 0x1401b1b9f
mov eax, dword [rsp + 0x94]
mov r10d, dword [rsp + 0xa0]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov qword [rsp + 0x4e0], r12
mov r12d, dword [rsp + 0x8c]
mov dword [rsp + 0x530], eax
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0x4d8], r13
mov r13d, dword [rsp + 0x90]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa4]
mov qword [rsp + 0x4d0], r14
mov r14d, dword [rsp + 0xa8]
mov dword [rsp + 0x538], eax
mov dword [rsp + 0x34], r10d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x2c], edi
cmp r13d, 0xc
jne 0x1401b1c8d
cmp edi, 0x18
jge 0x1401b1ca4
mov ecx, r12d
mov eax, 0x55555556
sub ecx, r14d
sub ecx, 0x18
imul ecx
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
jmp 0x1401b1c9f
cmp edi, 0x10
jge 0x1401b1ca4
mov r15d, r12d
sub r15d, r14d
sub r15d, r13d
sar r15d, 2
test r15d, r15d
jne 0x1401b1cf2
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xd0]
add ecx, dword [rbx + 0xb8]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x1401b2999
cmp r12d, ecx
jl 0x1401b2976
mov edx, r12d
sub edx, ecx
cmp edx, 0x400
jg 0x1401b2976
mov rcx, rbx
call fcn.1401a7ef0
mov r8d, dword [rbx + 4]
mov r9d, dword [rbx]
mov r10d, dword [rsp + 0x34]
cmp edi, 0x18
jne 0x1401b1d07
cmp r10d, 0xff000000
jne 0x1401b1d07
mov eax, 3
jmp 0x1401b1d12
test r10d, r10d
mov eax, ebp
setne al
add eax, 3
mov dword [rbx + 8], eax
test r9d, r9d
js 0x1401b2953
jne 0x1401b1d2a
lea ecx, [r9*4]
jmp 0x1401b1d4c
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x1401b2953
lea ecx, [r9*4]
test ecx, ecx
js 0x1401b2953
test r8d, r8d
js 0x1401b2953
je 0x1401b1d68
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1401b2953
test r9d, r9d
je 0x1401b1d7f
mov eax, 0x7fffffff
cdq
idiv r9d
cmp eax, 4
jl 0x1401b2930
lea ecx, [r9*4]
test r8d, r8d
je 0x1401b1d9d
mov eax, 0x7fffffff
cdq
idiv r8d
cmp ecx, eax
jg 0x1401b2930
imul r8d, r9d
lea eax, [r8*4]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov rcx, rax
test rax, rax
je 0x1401b2930
cmp edi, 0x10
mov qword [rsp + 0x510], rsi
mov edi, ebp
jge 0x1401b2300
mov dword [rsp + 0x530], ebp
test r15d, r15d
je 0x1401b22e0
cmp r15d, 0x100
jg 0x1401b22e0
mov r14, rax
test r15d, r15d
jle 0x1401b1f47
mov r12d, dword [rsp + 0x24]
lea rsi, [rbx + 0x30]
movsxd rdi, r15d
nop dword [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b1e2f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1e59
cmp dword [rbx + 0x30], 0
lea rsi, [rbx + 0x30]
je 0x1401b1e57
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1e59
xor cl, cl
mov r13, rsi
mov byte [rsp + rbp*4 + 0xd2], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401b1e7b
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1ea0
cmp dword [rsi], 0
je 0x1401b1e9e
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1ea0
xor cl, cl
mov byte [rsp + rbp*4 + 0xd1], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1401b1ec3
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1ee8
cmp dword [rsi], 0
je 0x1401b1ee6
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1ee8
xor cl, cl
mov byte [rsp + rbp*4 + 0xd0], cl
cmp r12d, 0xc
je 0x1401b1f20
cmp rax, qword [rbx + 0xc8]
jae 0x1401b1f0a
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b1f20
cmp dword [r13], 0
je 0x1401b1f20
mov rcx, rbx
call fcn.1401a7e60
inc qword [rbx + 0xc0]
mov byte [rsp + rbp*4 + 0xd3], 0xff
inc rbp
cmp rbp, rdi
jl 0x1401b1e10
mov edi, dword [rsp + 0x530]
xor ebp, ebp
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
mov eax, ebp
cmp r13d, 0xc
mov rcx, rbx
setne al
add eax, 3
imul eax, r15d
sub r12d, eax
sub r12d, dword [rsp + 0x28]
sub r12d, r13d
mov edx, r12d
call fcn.1401a7ef0
mov r15d, dword [rsp + 0x2c]
cmp r15d, 1
jne 0x1401b1f85
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x1401b1fa3
cmp r15d, 4
jne 0x1401b1f96
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x1401b1fa3
cmp r15d, 8
jne 0x1401b2285
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov ecx, eax
cmp r15d, 1
jne 0x1401b20f0
xor r15d, r15d
test eax, eax
jle 0x1401b2856
xor edi, edi
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401b1ff4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b201a
cmp dword [rbx + 0x30], 0
je 0x1401b2018
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b201a
xor cl, cl
xor ebp, ebp
movzx edx, cl
cmp dword [rbx], ebp
jle 0x1401b20cf
mov eax, edx
mov ecx, esi
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xd0]
mov byte [rdi + r14], al
movzx eax, byte [rsp + rcx + 0xd1]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rsp + rcx + 0xd2]
mov byte [rdi + r14 + 2], al
lea eax, [rbp + 1]
mov byte [rdi + r14 + 3], 0xff
mov ebp, eax
mov ecx, dword [rbx]
add rdi, 4
cmp eax, ecx
je 0x1401b20cf
sub esi, 1
jns 0x1401b20c7
mov rax, qword [rbx + 0xc0]
mov esi, 7
cmp rax, qword [rbx + 0xc8]
jae 0x1401b209c
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b20c4
cmp dword [rbx + 0x30], 0
je 0x1401b20c2
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x1401b20c4
xor dl, dl
movzx edx, dl
cmp ebp, ecx
jl 0x1401b2027
mov edx, r12d
mov rcx, rbx
call fcn.1401a7ef0
mov eax, dword [rbx + 4]
inc r15d
mov ecx, eax
cmp r15d, eax
jl 0x1401b1fd0
jmp 0x1401b2856
xor ebp, ebp
test eax, eax
jle 0x1401b2856
nop word [rax + rax]
xor esi, esi
cmp dword [rbx], esi
jle 0x1401b2266
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b212f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2155
cmp dword [rbx + 0x30], 0
je 0x1401b2153
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2155
xor cl, cl
mov edx, Ordinal_50
xor r8d, r8d
mov rax, rbx
movzx eax, cl
lea r9, [rdx + rbx]
cmp r15d, 4
jne 0x1401b2177
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
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, dword [rbx]
je 0x1401b2266
cmp r15d, 8
jne 0x1401b2216
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b21ec
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2212
cmp dword [r9], 0
je 0x1401b2210
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2212
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
add esi, 2
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
cmp esi, dword [rbx]
jl 0x1401b2110
mov edx, r12d
mov rcx, rbx
call fcn.1401a7ef0
mov eax, dword [rbx + 4]
inc ebp
mov ecx, eax
cmp ebp, eax
jl 0x1401b2100
jmp 0x1401b2856
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_bpp
mov qword [rdx + rcx], rax
xor eax, eax
mov rsi, qword [rsp + 0x510]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4e8]
mov r13, qword [rsp + 0x4d8]
mov r14, qword [rsp + 0x4d0]
add rsp, 0x4f0
pop r15
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.invalid
jmp 0x1401b22a6
sub r12d, r14d
mov dword [rsp + 0x40], ebp
sub r12d, r13d
mov dword [rsp + 0x24], ebp
mov edx, r12d
mov dword [rsp + 0x60], ebp
mov rcx, rbx
mov r15d, ebp
mov esi, ebp
call fcn.1401a7ef0
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0x18
jne 0x1401b2332
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x1401b233f
cmp ecx, 0x10
jne 0x1401b233d
mov eax, dword [rbx]
add eax, eax
jmp 0x1401b233f
xor eax, eax
neg eax
and eax, 3
mov dword [rsp + 0x80], eax
cmp ecx, 0x18
jne 0x1401b236f
mov r14, qword [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x38], rdx
mov r12d, esi
mov qword [rsp + 0x48], r14
mov r13d, esi
jmp 0x1401b24c5
mov r8, qword [rsp + 0x50]
xor eax, eax
mov r12d, dword [rsp + 0x44]
mov r14, r8
mov qword [rsp + 0x38], rax
cmp ecx, 0x20
jne 0x1401b23e8
mov qword [rsp + 0x38], rax
cmp r12d, 0xff
jne 0x1401b23e8
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x530]
cmp eax, 0xff00
jne 0x1401b23ef
xor eax, eax
cmp dword [rsp + 0x30], 0xff0000
mov qword [rsp + 0x38], rax
jne 0x1401b23e8
cmp dword [rsp + 0x34], 0xff000000
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r8
jne 0x1401b2430
mov edx, 2
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdx
mov r12d, eax
mov r13d, eax
jmp 0x1401b24c5
mov eax, dword [rsp + 0x530]
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x1401b240a
test eax, eax
je 0x1401b240a
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r8
test r12d, r12d
jne 0x1401b2434
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_masks
jmp 0x1401b22a6
mov edi, dword [rsp + 0x30]
mov ecx, edi
call fcn.1401b1490
mov ecx, edi
lea r13d, [rax - 7]
call fcn.1401b1520
mov ecx, dword [rsp + 0x530]
mov r15d, eax
call fcn.1401b1490
mov ecx, dword [rsp + 0x530]
sub eax, 7
mov dword [rsp + 0x40], eax
call fcn.1401b1520
mov ecx, r12d
mov edi, eax
call fcn.1401b1490
sub eax, 7
mov ecx, r12d
mov dword [rsp + 0x24], eax
call fcn.1401b1520
mov ecx, dword [rsp + 0x34]
mov esi, eax
call fcn.1401b1490
mov ecx, dword [rsp + 0x34]
lea r12d, [rax - 7]
call fcn.1401b1520
mov ebp, eax
cmp r15d, 8
jg 0x1401b240a
cmp edi, 8
jg 0x1401b240a
cmp esi, 8
jg 0x1401b240a
cmp eax, 8
jg 0x1401b240a
mov rdx, qword [rsp + 0x38]
mov eax, dword [rbx + 4]
mov ecx, eax
mov dword [rsp + 0x20], 0
test eax, eax
jle 0x1401b2856
mov ecx, 8
mov eax, r13d
neg eax
mov dword [rsp + 0x28], eax
mov eax, ecx
sub eax, r15d
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x68], eax
mov eax, ecx
sub eax, edi
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x24]
neg eax
mov dword [rsp + 0x70], eax
mov eax, ecx
sub eax, esi
mov dword [rsp + 0x74], eax
mov eax, r12d
neg eax
mov dword [rsp + 0x78], eax
sub ecx, ebp
movsxd rax, r15d
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x7c], ecx
movsxd rcx, edi
mov qword [rsp + 0xb0], rax
movsxd rax, esi
movsxd rdi, ebp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0xb8], rcx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx]
xor ebp, ebp
movsxd rcx, r15d
test rdx, rdx
je 0x1401b26d5
test eax, eax
jle 0x1401b2822
lea rsi, [r14 + rcx]
lea rdi, [rbx + 0x30]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b259f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b25c9
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1401b25c7
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b25c9
xor cl, cl
mov byte [rsi + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b25eb
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2610
cmp dword [rdi], 0
je 0x1401b260e
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b2610
xor cl, cl
mov byte [rsi + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b2636
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b265b
cmp dword [rdi], 0
je 0x1401b2659
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b265b
xor cl, cl
cmp qword [rsp + 0x38], 2
mov byte [rsi], cl
jne 0x1401b26af
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1401b2688
movzx ecx, byte [rax]
lea rdi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b26b1
cmp dword [rdi], 0
je 0x1401b26ab
mov rcx, rbx
call fcn.1401a7e60
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1401b26b1
xor cl, cl
jmp 0x1401b26b1
mov cl, 0xff
mov byte [rsi + 3], cl
add r15d, 4
movzx eax, cl
add rsi, 4
or dword [rsp + 0x538], eax
inc ebp
cmp ebp, dword [rbx]
jl 0x1401b2580
jmp 0x1401b2822
test eax, eax
jle 0x1401b2822
lea rsi, [r14 + rcx]
mov r14d, dword [rsp + 0x2c]
mov rcx, rbx
call fcn.1401a8120
cmp r14d, 0x10
je 0x1401b2708
mov rcx, rbx
mov edi, eax
call fcn.1401a8120
shl eax, 0x10
add eax, edi
mov rdi, qword [rsp + 0x58]
mov edx, eax
and edx, dword [rsp + 0x30]
test r13d, r13d
jns 0x1401b271b
mov ecx, dword [rsp + 0x28]
shl edx, cl
jmp 0x1401b2720
mov ecx, r13d
shr edx, cl
mov r8, qword [rsp + 0xb0]
lea r9, [0x140000000]
mov ecx, dword [rsp + 0x64]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x36bbf8]
mov ecx, dword [r9 + r8*4 + 0x36bc50]
sar edx, cl
mov ecx, dword [rsp + 0x40]
mov byte [rsi], dl
mov edx, eax
and edx, dword [rsp + 0x530]
test ecx, ecx
jns 0x1401b2763
mov ecx, dword [rsp + 0x68]
shl edx, cl
jmp 0x1401b2765
shr edx, cl
mov r8, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x6c]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x36bbf8]
mov ecx, dword [r9 + r8*4 + 0x36bc50]
sar edx, cl
mov ecx, dword [rsp + 0x24]
mov byte [rsi + 1], dl
mov edx, eax
and edx, dword [rsp + 0x44]
test ecx, ecx
jns 0x1401b279f
mov ecx, dword [rsp + 0x70]
shl edx, cl
jmp 0x1401b27a1
shr edx, cl
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x74]
shr edx, cl
imul edx, dword [r9 + r8*4 + 0x36bbf8]
mov ecx, dword [r9 + r8*4 + 0x36bc50]
sar edx, cl
mov ecx, dword [rsp + 0x34]
mov byte [rsi + 2], dl
test ecx, ecx
je 0x1401b27fc
and eax, ecx
test r12d, r12d
jns 0x1401b27dc
mov ecx, dword [rsp + 0x78]
shl eax, cl
jmp 0x1401b27e1
mov ecx, r12d
shr eax, cl
mov ecx, dword [rsp + 0x7c]
shr eax, cl
imul eax, dword [r9 + rdi*4 + 0x36bbf8]
mov ecx, dword [r9 + rdi*4 + 0x36bc50]
sar eax, cl
jmp 0x1401b2801
mov eax, 0xff
or dword [rsp + 0x538], eax
add r15d, 4
mov byte [rsi + 3], al
inc ebp
add rsi, 4
cmp ebp, dword [rbx]
jl 0x1401b26e6
mov r14, qword [rsp + 0x48]
mov edx, dword [rsp + 0x80]
mov rcx, rbx
call fcn.1401a7ef0
mov r8d, dword [rsp + 0x20]
mov eax, dword [rbx + 4]
inc r8d
mov rdx, qword [rsp + 0x38]
mov ecx, eax
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], r8d
cmp r8d, eax
jl 0x1401b2560
cmp dword [rsp + 0x538], 0
jne 0x1401b2883
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rdx, eax
test eax, eax
js 0x1401b2883
mov rax, qword [rsp + 0x50]
mov byte [rax + rdx], 0xff
sub rdx, 4
jns 0x1401b2876
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x84], 0
jle 0x1401b2900
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x1401b2900
nop word [rax + rax]
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
lea eax, [rcx*4]
shl edx, 2
shl r9d, 2
add rdx, r14
add r9, r14
test eax, eax
jle 0x1401b28ef
sub r9, rdx
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [rdx], cl
lea rdx, [rdx + 1]
mov eax, dword [rbx]
shl eax, 2
cmp r8d, eax
jl 0x1401b28d0
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x1401b28a0
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x518]
mov dword [rdx], eax
mov rax, qword [rsp + 0x520]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x528]
test rcx, rcx
je 0x1401b2928
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x1401b22ac
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.outofmem
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401b22b4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.too_large
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401b22b4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_offset
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401b22b4
mov rax, qword gs:[0x58]
mov edx, Ordinal_50
mov rcx, qword [rax]
lea rax, str.bad_header
mov qword [rdx + rcx], rax
xor eax, eax
jmp 0x1401b22b4