Function at 0x18001fe30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
xor r14d, r14d
mov dword [rbp - 0x4c], 0xff
lea rdx, [rbp - 0x68]
mov dword [rsp + 0x30], r14d
mov rbx, rcx
call fcn.180020cf0
test rax, rax
je 0x180020cd2
mov eax, dword [rbx + 4]
mov dword [rbp - 0x74], eax
cdq
xor eax, edx
sub eax, edx
mov dword [rbx + 4], eax
cmp eax, 0x1000000
ja 0x180020cd2
mov r8d, dword [rbx]
cmp r8d, 0x1000000
ja 0x180020cd2
mov eax, dword [rbp - 0x5c]
mov edi, dword [rbp - 0x60]
movsxd r13, dword [rbp - 0x64]
mov edx, dword [rbp - 0x50]
mov r12d, dword [rbp - 0x68]
mov dword [rsp + 0x54], eax
mov eax, dword [rbp - 0x58]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x54]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x5c], edx
mov dword [rsp + 0x3c], r13d
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x50], r12d
cmp edi, 0xc
jne 0x18001ff18
cmp r12d, 0x18
jge 0x18001ff35
mov ecx, r13d
sub ecx, eax
mov eax, 0x55555556
sub ecx, 0x18
imul ecx
mov r14d, edx
shr r14d, 0x1f
add r14d, edx
mov edx, dword [rsp + 0x5c]
jmp 0x18001ff2b
cmp r12d, 0x10
jge 0x18001ff35
mov r14d, r13d
sub r14d, eax
sub r14d, edi
sar r14d, 2
mov dword [rsp + 0x30], r14d
test r14d, r14d
jne 0x18001ff53
movsxd rcx, dword [rbx + 0xb8]
add rcx, qword [rbx + 0xc0]
sub rcx, rbx
sub rcx, 0x38
cmp r13, rcx
jne 0x180020cd2
cmp r12d, 0x18
jne 0x18001ff68
cmp edx, 0xff000000
jne 0x18001ff68
lea r15d, [r12 - 0x15]
jmp 0x18001ff75
xor r15d, r15d
test edx, edx
setne r15b
add r15d, 3
mov eax, dword [rbp + 0x440]
mov ecx, r8d
mov dword [rbx + 8], r15d
mov r9d, dword [rbx + 4]
mov r10d, r9d
cmp eax, 3
jl 0x18001ff91
mov r15d, eax
test ecx, ecx
js 0x180020cd2
je 0x18001ffac
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r15d, eax
jg 0x180020cd2
imul ecx, r15d
test ecx, ecx
js 0x180020cd2
test r10d, r10d
js 0x180020cd2
je 0x18001ffd4
mov eax, 0x7fffffff
cdq
idiv r10d
cmp ecx, eax
jg 0x180020cd2
test r15d, r15d
js 0x180020cd2
test r8d, r8d
je 0x18001fff4
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r15d, eax
jg 0x180020cd2
mov ecx, r8d
imul ecx, r15d
test r9d, r9d
je 0x180020011
mov eax, 0x7fffffff
cdq
idiv r9d
cmp ecx, eax
jg 0x180020cd2
imul r8d, r9d
imul r8d, r15d
movsxd rcx, r8d
call fcn.180042e50
mov qword [rbp - 0x70], rax
mov rsi, rax
test rax, rax
je 0x180020cd2
cmp r12d, 0x10
jge 0x180020569
xor edi, edi
mov dword [rsp + 0x38], edi
test r14d, r14d
je 0x180020cca
cmp r14d, 0x100
jg 0x180020cca
movsxd rax, r14d
test r14d, r14d
jle 0x1800201b5
mov esi, dword [rsp + 0x34]
lea r14, [rbx + 0x30]
xor r13d, r13d
mov rdi, rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18002009f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800200c9
cmp dword [rbx + 0x30], 0
lea r14, [rbx + 0x30]
je 0x1800200c7
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800200c9
xor cl, cl
mov r12, r14
mov byte [rbp + r13*4 - 0x1e], cl
cmp rax, qword [rbx + 0xc8]
jae 0x1800200e9
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18002010f
cmp dword [r14], 0
je 0x18002010d
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18002010f
xor cl, cl
mov byte [rbp + r13*4 - 0x1f], cl
mov rcx, qword [rbx + 0xc8]
cmp rax, rcx
jae 0x180020133
movzx edx, byte [rax]
lea r14, [rbx + 0x30]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020160
cmp dword [r14], 0
je 0x18002015e
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0xc8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020160
xor dl, dl
mov byte [rbp + r13*4 - 0x20], dl
cmp esi, 0xc
je 0x180020191
cmp rax, rcx
jae 0x18002017b
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020191
cmp dword [r12], 0
je 0x180020191
mov rcx, rbx
call fcn.18002ba10
inc qword [rbx + 0xc0]
mov byte [rbp + r13*4 - 0x1d], 0xff
inc r13
cmp r13, rdi
jl 0x180020080
mov edi, dword [rsp + 0x38]
mov rsi, qword [rbp - 0x70]
mov r14d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x3c]
xor eax, eax
mov rcx, rbx
cmp dword [rsp + 0x34], 0xc
setne al
add eax, 3
imul eax, r14d
sub r13d, eax
sub r13d, dword [rsp + 0x64]
sub r13d, dword [rsp + 0x34]
mov edx, r13d
call fcn.18002c110
mov r13d, dword [rsp + 0x50]
cmp r13d, 1
jne 0x1800201f5
mov ecx, dword [rbx]
lea r12d, [rcx + 7]
shr r12d, 3
jmp 0x180020216
cmp r13d, 4
jne 0x180020206
mov ecx, dword [rbx]
lea r12d, [rcx + 1]
shr r12d, 1
jmp 0x180020216
cmp r13d, 8
jne 0x180020cca
mov r12d, dword [rbx]
mov ecx, r12d
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
cmp r13d, 1
jne 0x1800203a6
mov dword [rsp + 0x34], 0
test eax, eax
jle 0x180020bd6
xor edi, edi
nop dword [rax]
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x180020265
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18002028b
cmp dword [rbx + 0x30], 0
je 0x180020289
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18002028b
xor cl, cl
xor r13d, r13d
movzx edx, cl
cmp dword [rbx], r13d
jle 0x180020349
nop word [rax + rax]
mov eax, edx
mov ecx, r14d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x20]
mov byte [rdi + rsi], al
movzx eax, byte [rbp + rcx - 0x1f]
mov byte [rdi + rsi + 1], al
movzx eax, byte [rbp + rcx - 0x1e]
mov byte [rdi + rsi + 2], al
add rdi, 3
cmp r15d, 4
jne 0x1800202dd
mov byte [rdi + rsi], 0xff
inc rdi
mov ecx, dword [rbx]
lea eax, [r13 + 1]
mov r13d, eax
cmp eax, ecx
je 0x180020349
sub r14d, 1
jns 0x180020340
mov rax, qword [rbx + 0xc0]
mov r14d, 7
cmp rax, qword [rbx + 0xc8]
jae 0x180020315
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x18002033d
cmp dword [rbx + 0x30], 0
je 0x18002033b
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx]
jmp 0x18002033d
xor dl, dl
movzx edx, dl
cmp r13d, ecx
jl 0x1800202a0
test r12d, r12d
je 0x18002038c
cmp qword [rbx + 0x10], 0
je 0x180020382
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, r12d
jge 0x180020382
mov rax, qword [rbx + 0xc8]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x18002038c
mov eax, r12d
add qword [rbx + 0xc0], rax
mov ecx, dword [rsp + 0x34]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rsp + 0x34], ecx
cmp ecx, eax
jl 0x180020240
jmp 0x180020bd6
xor edx, edx
mov dword [rsp + 0x30], edx
test eax, eax
jle 0x180020bd6
xor r14d, r14d
test ecx, ecx
jle 0x180020507
nop
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800203df
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020405
cmp dword [rbx + 0x30], 0
je 0x180020403
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020405
xor cl, cl
xor r8d, r8d
movzx eax, cl
cmp r13d, 4
jne 0x18002041b
mov r8d, eax
and r8d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rbp + rdx - 0x20]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x1f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x1e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r15d, 4
jne 0x180020459
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov ecx, dword [rbx]
lea eax, [r14 + 1]
cmp eax, ecx
je 0x180020503
cmp r13d, 8
jne 0x1800204b6
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18002048c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800204b2
cmp dword [rbx + 0x30], 0
je 0x1800204b0
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800204b2
xor cl, cl
movzx r8d, cl
movsxd rcx, edi
lea rdx, [r8*4]
movzx eax, byte [rbp + rdx - 0x20]
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x1f]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
movzx eax, byte [rbp + rdx - 0x1e]
movsxd rcx, edi
inc edi
mov byte [rcx + rsi], al
cmp r15d, 4
jne 0x1800204f4
movsxd rax, edi
inc edi
mov byte [rax + rsi], 0xff
mov ecx, dword [rbx]
add r14d, 2
cmp r14d, ecx
jl 0x1800203c0
mov edx, dword [rsp + 0x30]
test r12d, r12d
je 0x180020553
cmp qword [rbx + 0x10], 0
je 0x180020549
mov r8d, dword [rbx + 0xc8]
sub r8d, dword [rbx + 0xc0]
cmp r8d, r12d
jge 0x180020549
mov rax, qword [rbx + 0xc8]
mov edx, r12d
mov rcx, qword [rbx + 0x28]
sub edx, r8d
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov ecx, dword [rbx]
mov edx, dword [rsp + 0x30]
jmp 0x180020553
mov eax, r12d
add qword [rbx + 0xc0], rax
mov eax, dword [rbx + 4]
inc edx
mov dword [rsp + 0x30], edx
cmp edx, eax
jl 0x1800203b4
jmp 0x180020bd6
sub r13d, dword [rsp + 0x64]
xor eax, eax
sub r13d, edi
mov dword [rsp + 0x6c], eax
mov edx, r13d
mov dword [rsp + 0x70], eax
mov rcx, rbx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x60], eax
mov r14d, eax
mov r12d, eax
call fcn.18002c110
mov ecx, dword [rsp + 0x50]
cmp ecx, 0x18
jne 0x1800205a4
mov eax, dword [rbx]
lea edx, [rax + rax*2]
jmp 0x1800205b1
cmp ecx, 0x10
jne 0x1800205af
mov edx, dword [rbx]
add edx, edx
jmp 0x1800205b1
xor edx, edx
neg edx
and edx, 3
mov dword [rsp + 0x30], edx
cmp ecx, 0x18
jne 0x1800205da
mov edi, 1
mov qword [rsp + 0x48], rdi
mov r9d, r12d
mov r10d, r12d
mov r11d, r12d
mov r8d, r12d
jmp 0x1800207ef
mov r9d, dword [rsp + 0x74]
xor edi, edi
mov r10d, dword [rsp + 0x58]
mov eax, r15d
mov qword [rsp + 0x48], rdi
cmp ecx, 0x20
jne 0x180020636
mov qword [rsp + 0x48], rdi
cmp r9d, 0xff
jne 0x180020636
mov qword [rsp + 0x48], rdi
cmp r10d, 0xff00
jne 0x180020636
cmp dword [rsp + 0x54], 0xff0000
mov qword [rsp + 0x48], rdi
jne 0x180020636
mov r13d, dword [rsp + 0x5c]
mov qword [rsp + 0x48], rdi
cmp r13d, 0xff000000
jne 0x180020660
lea edi, [rcx - 0x1e]
jmp 0x1800205c4
mov r14d, dword [rsp + 0x54]
mov r15d, eax
test r14d, r14d
je 0x180020cca
test r10d, r10d
je 0x180020cca
test r9d, r9d
je 0x180020cca
mov r13d, dword [rsp + 0x5c]
jmp 0x180020665
mov r14d, dword [rsp + 0x54]
mov ecx, r14d
call fcn.180024940
sub eax, 7
mov edx, r14d
shr edx, 1
mov ecx, r14d
and edx, 0x55555555
mov dword [rsp + 0x6c], 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, r10d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r11d, al
call fcn.180024940
sub eax, 7
mov edx, r10d
shr edx, 1
mov ecx, r10d
and edx, 0x55555555
mov dword [rsp + 0x70], 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 r10d, al
call fcn.180024940
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x34], 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, r13d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
call fcn.180024940
lea r8d, [rax - 7]
mov edx, r13d
mov dword [rsp + 0x60], r8d
shr edx, 1
mov ecx, r13d
and edx, 0x55555555
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 r14d, al
cmp r11d, 8
ja 0x180020cca
cmp r10d, 8
ja 0x180020cca
cmp r9d, 8
ja 0x180020cca
cmp r14d, 8
ja 0x180020cca
mov edx, dword [rsp + 0x30]
mov eax, dword [rbx + 4]
mov dword [rsp + 0x38], r12d
test eax, eax
jle 0x180020bd6
mov eax, dword [rsp + 0x6c]
neg eax
mov dword [rsp + 0x3c], eax
mov eax, 8
mov ecx, eax
sub ecx, r11d
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x70]
neg ecx
mov dword [rsp + 0x64], ecx
mov ecx, eax
sub ecx, r10d
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0x34]
neg ecx
mov dword [rsp + 0x7c], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rbp - 0x80], ecx
mov ecx, r8d
neg ecx
sub eax, r14d
mov dword [rbp - 0x7c], ecx
mov dword [rbp - 0x78], eax
mov eax, r11d
mov qword [rbp - 0x40], rax
mov eax, r9d
mov qword [rbp - 0x30], rax
mov eax, r14d
mov ecx, r10d
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x38], rcx
nop word [rax + rax]
mov eax, dword [rbx]
xor r13d, r13d
movsxd rcx, r12d
test rdi, rdi
je 0x1800209fd
test eax, eax
jle 0x180020b7c
lea r14, [rcx + rsi]
mov rsi, qword [rsp + 0x48]
lea rdi, [rbx + 0x30]
nop word [rax + rax]
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800208bf
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800208e9
cmp dword [rbx + 0x30], 0
lea rdi, [rbx + 0x30]
je 0x1800208e7
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800208e9
xor cl, cl
mov byte [r14 + 2], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x18002090c
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020931
cmp dword [rdi], 0
je 0x18002092f
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020931
xor cl, cl
mov byte [r14 + 1], cl
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x180020954
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020979
cmp dword [rdi], 0
je 0x180020977
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x180020979
xor cl, cl
mov byte [r14], cl
add r12d, 3
add r14, 3
cmp rsi, 2
jne 0x1800209d0
mov rax, qword [rbx + 0xc0]
cmp rax, qword [rbx + 0xc8]
jae 0x1800209a9
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800209d2
cmp dword [rdi], 0
je 0x1800209cc
mov rcx, rbx
call fcn.18002ba10
mov rax, qword [rbx + 0xc0]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xc0], rax
jmp 0x1800209d6
xor cl, cl
jmp 0x1800209d6
mov cl, 0xff
lea rdi, [rbx + 0x30]
movzx eax, cl
or dword [rsp + 0x40], eax
cmp r15d, 4
jne 0x1800209ec
inc r12d
mov byte [r14], cl
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x1800208a0
jmp 0x180020b6f
test eax, eax
jle 0x180020b7c
lea r14, [rcx + rsi]
mov esi, dword [rsp + 0x50]
lea rdi, [0x180000000]
mov rcx, rbx
call fcn.1800237c0
cmp esi, 0x10
jne 0x180020a26
mov r8d, eax
jmp 0x180020a41
mov rcx, rbx
mov edi, eax
call fcn.1800237c0
mov r8d, eax
shl r8d, 0x10
add r8d, edi
lea rdi, [0x180000000]
mov r9d, dword [rsp + 0x6c]
mov edx, r8d
and edx, dword [rsp + 0x54]
mov ecx, r9d
mov r11, qword [rbp - 0x40]
mov eax, edx
mov r10, qword [rbp - 0x38]
shr eax, cl
mov ecx, dword [rsp + 0x3c]
shl edx, cl
mov ecx, dword [rsp + 0x68]
test r9d, r9d
mov r9d, dword [rsp + 0x70]
cmovns edx, eax
shr edx, cl
imul edx, dword [rdi + r11*4 + 0x2a7010]
mov ecx, dword [rdi + r11*4 + 0x2a7038]
sar edx, cl
mov ecx, r9d
mov byte [r14], dl
mov edx, r8d
and edx, dword [rsp + 0x58]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x64]
shl edx, cl
mov ecx, dword [rsp + 0x78]
test r9d, r9d
mov r9d, dword [rsp + 0x34]
cmovns edx, eax
shr edx, cl
imul edx, dword [rdi + r10*4 + 0x2a7010]
mov ecx, dword [rdi + r10*4 + 0x2a7038]
sar edx, cl
mov ecx, r9d
mov byte [r14 + 1], dl
mov edx, r8d
and edx, dword [rsp + 0x74]
mov eax, edx
shr eax, cl
mov ecx, dword [rsp + 0x7c]
shl edx, cl
mov ecx, dword [rbp - 0x80]
test r9d, r9d
mov r9, qword [rbp - 0x30]
cmovns edx, eax
mov eax, dword [rsp + 0x5c]
shr edx, cl
add r12d, 3
imul edx, dword [rdi + r9*4 + 0x2a7010]
mov ecx, dword [rdi + r9*4 + 0x2a7038]
sar edx, cl
mov byte [r14 + 2], dl
add r14, 3
test eax, eax
je 0x180020b49
mov edx, dword [rsp + 0x60]
and r8d, eax
mov r9, qword [rbp - 0x28]
mov eax, r8d
mov ecx, edx
shr eax, cl
mov ecx, dword [rbp - 0x7c]
shl r8d, cl
mov ecx, dword [rbp - 0x78]
test edx, edx
cmovns r8d, eax
shr r8d, cl
imul r8d, dword [rdi + r9*4 + 0x2a7010]
mov ecx, dword [rdi + r9*4 + 0x2a7038]
sar r8d, cl
jmp 0x180020b4f
mov r8d, 0xff
or dword [rsp + 0x40], r8d
cmp r15d, 4
jne 0x180020b63
inc r12d
mov byte [r14], r8b
inc r14
inc r13d
cmp r13d, dword [rbx]
jl 0x180020a14
mov edx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rbp - 0x70]
test edx, edx
je 0x180020bbd
cmp qword [rbx + 0x10], 0
je 0x180020bb4
mov ecx, dword [rbx + 0xc8]
sub ecx, dword [rbx + 0xc0]
cmp ecx, edx
jge 0x180020bb4
mov rax, qword [rbx + 0xc8]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xc0], rax
call qword [rbx + 0x18]
mov edx, dword [rsp + 0x30]
jmp 0x180020bbd
mov eax, edx
add qword [rbx + 0xc0], rax
mov r13d, dword [rsp + 0x38]
mov eax, dword [rbx + 4]
inc r13d
mov dword [rsp + 0x38], r13d
cmp r13d, eax
jl 0x180020870
cmp r15d, 4
jne 0x180020bfe
cmp dword [rsp + 0x40], 0
jne 0x180020bfe
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd rcx, eax
test eax, eax
js 0x180020bfe
mov byte [rcx + rsi], 0xff
sub rcx, 4
jns 0x180020bf4
cmp dword [rbp - 0x74], 0
jle 0x180020c6f
mov edx, dword [rbx + 4]
xor r10d, r10d
test edx, 0xfffffffe
jle 0x180020c6f
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, ecx
imul edx, ecx
xor r8d, r8d
imul r9d, r10d
imul ecx, r15d
imul edx, r15d
imul r9d, r15d
mov eax, edx
add rdx, rsi
test ecx, ecx
jle 0x180020c60
sub r9, rax
nop
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [rdx + r9]
mov byte [rdx + r9], al
mov eax, r15d
mov byte [rdx], cl
lea rdx, [rdx + 1]
imul eax, dword [rbx]
cmp r8d, eax
jl 0x180020c40
mov edx, dword [rbx + 4]
inc r10d
mov eax, edx
sar eax, 1
cmp r10d, eax
jl 0x180020c12
mov r8d, dword [rbp + 0x440]
test r8d, r8d
je 0x180020c9d
cmp r8d, r15d
je 0x180020c9d
mov eax, dword [rbx + 4]
mov edx, r15d
mov r9d, dword [rbx]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1800219f0
mov rsi, rax
test rax, rax
je 0x180020cd2
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x428]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x430]
mov eax, dword [rbx + 4]
mov dword [rcx], eax
mov rcx, qword [rbp + 0x438]
test rcx, rcx
je 0x180020cc5
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, rsi
jmp 0x180020cd4
mov rcx, rsi
call fcn.180042ba0
xor eax, eax
mov rbx, qword [rsp + 0x520]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret