Function at 0x14012e7e0
Capabilities:
Encrypt data using rc4 ksa
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x570
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov rax, qword [rsp + 0x5d0]
movsxd rdi, dword [r8 + 0x78]
mov ebp, dword [r8 + 0x74]
xor r10d, r10d
mov qword [rsp + 0x90], rcx
mov ecx, dword [r8 + 0x70]
movzx r15d, r10w
mov word [rsp + 0x60], r9w
mov rbx, r8
mov dword [rsp + 0x5c], ecx
mov r12, rdx
mov qword [rsp + 0xc8], rdx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0xbc], 0xfa00
mov word [rsp + 0x88], r10w
cmp dword [r8 + 0x30], r10d
jle 0x14012e881
mov eax, dword [r8 + 0x34]
test eax, eax
jle 0x14012e881
cmp ecx, eax
jbe 0x14012e881
mov dword [r8 + 0x70], eax
mov ecx, eax
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x5c8], rsi
test r9w, r9w
je 0x14012e897
mov r9d, dword [r8]
mov esi, r9d
jmp 0x14012e8d1
mov esi, dword [r8 + 0x10]
cmp esi, 8
jle 0x14012e8af
mov r9d, dword [r8]
imul esi, r9d
add esi, 7
sar esi, 3
jmp 0x14012e8d1
mov r9d, dword [rbx]
mov eax, 8
cdq
lea ecx, [r9 - 1]
idiv esi
add ecx, eax
mov r8d, eax
dec eax
not eax
and ecx, eax
mov eax, ecx
cdq
idiv r8d
mov esi, eax
movsx ecx, word [rbx + 0xa]
movzx edx, word [rbx + 0x64]
mov dword [rsp + 0x68], esi
mov r14d, ecx
mov dword [rbx + 0xc0], r10d
mov r8d, ecx
mov r13, r10
mov qword [rsp + 0xa8], r10
imul r14d, r9d
cmp dx, 6
jne 0x14012e93a
movsx eax, word [rbx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [rbx + 0x70]
imul eax, r9d
lea ecx, [rax + rax]
call fcn.1401bee78
mov r13, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x14012e9ea
mov eax, 1
jmp 0x14012fbd7
movzx eax, word [rbx + 8]
cmp ax, 8
jl 0x14012e9ea
cmp word [rbx + 0xe], 1
jne 0x14012e990
cmp word [rbx + 0xc], r10w
jle 0x14012e990
cmp cx, 4
jg 0x14012e96e
cmp dx, 1
ja 0x14012e990
cmp ax, 8
jne 0x14012e994
cmp cx, 1
jle 0x14012e990
mov ecx, dword [rbx + 0x70]
cwde
cdq
and edx, 7
lea esi, [rdx + rax]
sar esi, 3
imul esi, r8d
imul esi, r9d
imul ecx, esi
mov dword [rsp + 0x68], esi
add ecx, 0x40
jmp 0x14012e917
cmp ax, 8
jg 0x14012ea23
cmp ax, 8
jne 0x14012e9ea
cmp cx, 2
jne 0x14012e9ad
cmp word [rbx + 0xe], 1
je 0x14012ea23
cmp ax, 8
jne 0x14012e9ea
cmp word [rbx + 0xe], 1
jne 0x14012e9ea
cmp word [rbx + 0xc], 1
jne 0x14012e9ea
cmp dword [rbx + 0x10], 0x18
jne 0x14012e9ea
mov eax, dword [rbx + 0x70]
mov dword [rsp + 0x68], r14d
imul eax, r9d
lea ecx, [rax*4 + 0x400]
call fcn.1401bee78
mov r13, rax
mov qword [rsp + 0xa8], rax
mov edx, 4
mov rcx, rdi
call fcn.1401be1f8
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x14012ead1
test r13, r13
je 0x14012e930
mov rcx, r13
call fcn.1401be23c
mov eax, 1
jmp 0x14012fbd7
cmp ax, 0xc
jne 0x14012ea3f
lea eax, [rsi*2 + 1]
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov dword [rsp + 0x68], eax
jmp 0x14012ea5a
cmp ax, 0x10
jne 0x14012ea49
add esi, esi
jmp 0x14012ea56
cmp ax, 0x20
jne 0x14012ea5a
lea esi, [rsi*4]
mov dword [rsp + 0x68], esi
cmp word [rbx + 0x8c], r10w
je 0x14012ea85
mov eax, dword [rbx + 4]
imul eax, esi
movsxd rcx, eax
call fcn.1401bee78
mov r13, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jmp 0x14012e92a
cmp word [rbx + 0x60], 1
jne 0x14012eaad
lea eax, [rsi + 0x400]
movsxd rcx, eax
call fcn.1401bee78
mov r13, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jmp 0x14012e92a
mov ecx, dword [rbx + 0x70]
imul ecx, esi
add ecx, 0x400
call fcn.1401bee78
mov r13, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jmp 0x14012e92a
mov esi, dword [rbx + 0x7c]
xor eax, eax
mov qword [rsp + 0x80], rax
test esi, esi
jle 0x14012eb1e
lea edx, [rax + 4]
mov rcx, rdi
call fcn.1401be1f8
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x14012eb1e
test r13, r13
je 0x14012eb07
mov rcx, r13
call fcn.1401be23c
mov rcx, qword [rsp + 0xa0]
call fcn.1401be23c
mov eax, 1
jmp 0x14012fbd7
cmp edi, 1
jne 0x14012eb45
mov rdi, qword [rsp + 0xa0]
mov dword [rdi], ebp
mov rbp, qword [rsp + 0x90]
test rax, rax
je 0x14012ecc1
mov dword [rax], esi
jmp 0x14012ecc1
mov edx, ebp
mov rbp, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.1401c1f88
test eax, eax
je 0x14012eb90
test r13, r13
je 0x14012eb6c
mov rcx, r13
call fcn.1401be23c
mov rcx, qword [rsp + 0xa0]
call fcn.1401be23c
mov rcx, qword [rsp + 0x80]
call fcn.1401be23c
mov eax, 4
jmp 0x14012fbd7
xor esi, esi
cmp word [rbx + 0x80], 3
jne 0x14012ebd0
test rdi, rdi
jle 0x14012ebf8
mov r13, qword [rsp + 0xa0]
nop dword [rax]
mov rcx, rbp
call qword [rbx + 0x40]
inc rsi
movzx eax, ax
mov dword [r13 + rsi*4 - 4], eax
cmp rsi, rdi
jl 0x14012ebb0
mov r13, qword [rsp + 0xa8]
jmp 0x14012ebf8
test rdi, rdi
jle 0x14012ebf8
mov r15, qword [rsp + 0xa0]
nop dword [rax]
mov rcx, rbp
call qword [rbx + 0x48]
inc rsi
mov dword [r15 + rsi*4 - 4], eax
cmp rsi, rdi
jl 0x14012ebe0
mov r15d, dword [rsp + 0x58]
cmp qword [rsp + 0x80], 0
je 0x14012ecb9
mov edx, dword [rbx + 0x7c]
mov rcx, qword [rbp]
xor r8d, r8d
call fcn.1401c1f88
xor esi, esi
cmp word [rbx + 0x82], 3
jne 0x14012ec50
test rdi, rdi
jle 0x14012ec7b
mov r12, qword [rsp + 0x80]
nop
mov rcx, rbp
call qword [rbx + 0x40]
inc rsi
movzx eax, ax
mov dword [r12 + rsi*4 - 4], eax
cmp rsi, rdi
jl 0x14012ec30
mov r12, qword [rsp + 0xc8]
jmp 0x14012ec7b
test rdi, rdi
jle 0x14012ec7b
mov r13, qword [rsp + 0x80]
nop dword [rax]
mov rcx, rbp
call qword [rbx + 0x48]
inc rsi
mov dword [r13 + rsi*4 - 4], eax
cmp rsi, rdi
jl 0x14012ec60
mov r13, qword [rsp + 0xa8]
mov rcx, qword [rbp]
call fcn.1401c1a94
test eax, eax
je 0x14012ecb9
test r13, r13
je 0x14012ec95
mov rcx, r13
call fcn.1401be23c
mov rcx, qword [rsp + 0xa0]
call fcn.1401be23c
mov rcx, qword [rsp + 0x80]
call fcn.1401be23c
mov eax, 0xb
jmp 0x14012fbd7
mov rdi, qword [rsp + 0xa0]
movzx r9d, word [rsp + 0x60]
movzx ecx, word [rbx + 0x60]
or eax, 0xffffffff
xor r11d, r11d
test r9w, r9w
mov r8d, 0x804c
mov edx, r11d
mov esi, 0x8774
lea r10d, [r8 + 0x66]
cmove edx, eax
mov eax, dword [rsp + 0x68]
mov dword [rbx + 0x14], eax
mov eax, dword [rbx]
mov dword [rsp + 0x64], edx
mov dword [rbx + 0x18], eax
cmp cx, 5
jne 0x14012ed17
mov rcx, rbx
call fcn.140168350
test ax, ax
jne 0x14012ed7e
mov eax, 1
jmp 0x14012fbd7
lea eax, [rcx - 2]
cmp ax, 2
jbe 0x14012ed76
cmp cx, 7
jne 0x14012ed3b
lea r8, [rsp + 0x140]
mov rdx, rbx
mov rcx, rbp
call fcn.140168d40
jmp 0x14012ed7e
cmp cx, si
jne 0x14012ed58
mov rcx, rbx
cmp word [rbx + 0x64], r8w
jne 0x14012ed51
call fcn.140169320
jmp 0x14012ed7e
call fcn.140169650
jmp 0x14012ed7e
cmp cx, r10w
je 0x14012ed64
cmp cx, 8
jne 0x14012ed8b
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.1401692f0
jmp 0x14012ed7e
mov rcx, rbx
call fcn.1401515f0
movzx r9d, word [rsp + 0x60]
mov edx, dword [rsp + 0x64]
xor r11d, r11d
cmp dword [rsp + 0xb8], 0
mov ecx, dword [rbx + 4]
movsxd rax, r14d
mov esi, r11d
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0xb0], ecx
mov r8d, r11d
mov dword [rsp + 0xb4], r11d
mov qword [rsp + 0xd0], rax
jle 0x14012fa70
jmp 0x14012edd4
mov edx, dword [rsp + 0x64]
test r15w, r15w
jne 0x14012fa70
cmp dword [rbx + 0x138], 0
je 0x14012edf6
mov r8d, dword [rbx + 0x134]
mov dword [rsp + 0xb4], r8d
mov eax, dword [rbx + 4]
cmp esi, eax
jl 0x14012ee22
test r9w, r9w
je 0x14012ee22
mov r14d, dword [rbx + 0x70]
inc edx
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x64], edx
mov ecx, eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x5c], r14d
jmp 0x14012ee27
mov r14d, dword [rsp + 0x5c]
test ecx, ecx
je 0x14012fa70
mov eax, dword [rbx + 0x30]
test eax, eax
jle 0x14012ee40
cmp dword [rbx + 0x34], 0
jle 0x14012ee40
cmp eax, dword [rbx]
jne 0x14012ee60
cmp ecx, r14d
jge 0x14012ee56
mov r14d, ecx
mov dword [rsp + 0x5c], ecx
mov dword [rsp + 0xb0], r11d
jmp 0x14012ee60
sub ecx, r14d
mov dword [rsp + 0xb0], ecx
mov rcx, qword [rbp]
movsxd rax, r8d
lea rsi, [rax*4]
mov edi, dword [rsi + rdi]
call fcn.1401c2310
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x14012ee8c
movsxd rdx, ecx
mov rcx, rbp
call fcn.140066ff0
jmp 0x14012ee9c
jns 0x14012ee9c
mov rcx, qword [rbp]
xor r8d, r8d
mov edx, edi
call fcn.1401c1f88
mov rcx, qword [rbp]
call fcn.1401c2310
mov r9d, dword [rbx + 0x30]
test r9d, r9d
jle 0x14012ef74
mov edx, dword [rbx + 0x34]
test edx, edx
jle 0x14012ef74
mov ecx, dword [rbx]
cmp r9d, ecx
je 0x14012ef74
mov r8d, dword [rsp + 0x50]
mov r11d, r9d
mov dword [rsp + 0x78], r9d
lea eax, [r9 + r8]
cmp eax, ecx
jle 0x14012eee8
mov r11d, ecx
sub r11d, r8d
mov dword [rsp + 0x78], r11d
mov ecx, dword [rbx + 4]
mov r14d, edx
mov dword [rsp + 0x5c], edx
mov dword [rbx + 0x70], edx
mov edx, dword [rsp + 0x54]
lea eax, [rdx + r14]
cmp eax, ecx
jle 0x14012ef10
mov r14d, ecx
sub r14d, edx
mov dword [rsp + 0x5c], r14d
mov dword [rbx + 0x70], r14d
mov r10d, dword [rbx + 0x10]
cmp r10d, 8
jle 0x14012ef44
imul r10d, r9d
add r10d, 7
sar r10d, 3
cmp word [rbx + 8], 0x10
mov dword [rsp + 0x68], r10d
jne 0x14012ef6a
add r10d, r10d
mov dword [rbx + 0x18], r9d
mov dword [rsp + 0x68], r10d
mov dword [rbx + 0x14], r10d
jmp 0x14012ef81
mov eax, 8
cdq
idiv r10d
mov r8d, eax
lea eax, [r9 - 1]
add eax, r8d
lea ecx, [r8 - 1]
not ecx
and eax, ecx
cdq
idiv r8d
mov r10d, eax
mov dword [rsp + 0x68], eax
mov dword [rbx + 0x14], r10d
mov dword [rbx + 0x18], r9d
jmp 0x14012ef81
mov r11d, dword [rbx]
mov r10d, dword [rsp + 0x68]
mov dword [rsp + 0x78], r11d
movzx r8d, word [rbx + 0x64]
cmp r8w, 6
jne 0x14012f033
movzx eax, word [rbx + 0x90]
cmp ax, 2
jne 0x14012efc2
cmp word [rbx + 0x92], 1
jne 0x14012efb3
mov edi, r11d
imul edi, r14d
add edi, edi
jmp 0x14012f028
cmp ax, 2
jne 0x14012efc2
cmp word [rbx + 0x92], ax
je 0x14012efd2
cmp ax, 4
jne 0x14012f012
cmp word [rbx + 0x92], 1
jne 0x14012efea
mov eax, r11d
imul eax, r14d
lea eax, [rax + rax*2]
add eax, eax
cdq
and edx, 3
lea edi, [rdx + rax]
sar edi, 2
jmp 0x14012f028
cmp ax, 4
jne 0x14012f012
cmp word [rbx + 0x92], 2
jne 0x14012f012
mov eax, r11d
imul eax, r14d
lea eax, [rax + rax*4]
add eax, eax
cdq
and edx, 7
lea edi, [rdx + rax]
sar edi, 3
jmp 0x14012f028
mov eax, r11d
imul eax, r14d
lea eax, [rax + rax*8]
add eax, eax
cdq
and edx, 0xf
lea edi, [rdx + rax]
sar edi, 4
cmp word [rbx + 8], 0x10
jne 0x14012f03a
add edi, edi
jmp 0x14012f03a
mov edi, r10d
imul edi, r14d
movzx ecx, word [rbx + 0x60]
cmp ecx, 0x8005
jg 0x14012f8a9
je 0x14012f6d7
dec ecx
cmp ecx, 7
ja case.default.0x14012f06f
lea rdx, [0x140000000]
movsxd rax, ecx
mov ecx, dword [rdx + rax*4 + 0x12fc04]
add rcx, rdx
jmp rcx
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012f083
mov edx, dword [rsi + rax]
jmp 0x14012f086
or edx, 0xffffffff
lea rcx, [rsp + 0x140]
mov r8, rbx
call fcn.140168eb0
mov esi, dword [rsp + 0x54]
movzx r15d, ax
mov dword [rsp + 0x58], r15d
test ax, ax
jne 0x14012f27d
mov r9, qword [rsp + 0x70]
lea rcx, [rsp + 0x140]
mov r8, r12
mov edx, esi
call fcn.140168c70
jmp 0x14012f274
mov rcx, rbx
call fcn.1401516a0
cmp dword [rbx + 0x30], 0
jle 0x14012f12d
cmp dword [rbx + 0x34], 0
jle 0x14012f12d
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012f0ef
mov r9d, dword [rsi + rax]
jmp 0x14012f0f3
or r9d, 0xffffffff
mov eax, dword [rsp + 0x78]
mov esi, dword [rsp + 0x54]
mov r8d, edi
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140153050
jmp 0x14012f274
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012f140
mov r9d, dword [rsi + rax]
jmp 0x14012f144
or r9d, 0xffffffff
mov rax, qword [rsp + 0x70]
mov r8d, edi
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.1401515a0
movzx r15d, ax
mov dword [rsp + 0x58], r15d
mov esi, dword [rsp + 0x54]
jmp 0x14012f27d
mov rcx, rbx
call fcn.1401516a0
cmp dword [rbx + 0x30], 0
jle 0x14012f236
cmp dword [rbx + 0x34], 0
jle 0x14012f236
test byte [rbx + 0x68], 1
mov rax, qword [rsp + 0x80]
je 0x14012f1e6
test rax, rax
je 0x14012f1a8
mov r9d, dword [rsi + rax]
jmp 0x14012f1ac
or r9d, 0xffffffff
mov eax, dword [rsp + 0x78]
mov esi, dword [rsp + 0x54]
mov r8d, edi
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140152250
jmp 0x14012f274
test rax, rax
je 0x14012f1f1
mov r9d, dword [rsi + rax]
jmp 0x14012f1f5
or r9d, 0xffffffff
mov eax, dword [rsp + 0x78]
mov esi, dword [rsp + 0x54]
mov r8d, edi
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], eax
mov eax, 1
mov rdx, r12
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140151aa0
jmp 0x14012f274
test byte [rbx + 0x68], 1
mov rax, qword [rsp + 0x80]
je 0x14012f2b4
test rax, rax
je 0x14012f24f
mov r9d, dword [rsi + rax]
jmp 0x14012f253
or r9d, 0xffffffff
mov rax, qword [rsp + 0x70]
mov r8d, edi
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140151560
mov esi, dword [rsp + 0x54]
movzx r15d, ax
mov dword [rsp + 0x58], r15d
mov edi, dword [rsp + 0x50]
xor r11d, r11d
mov eax, dword [rbx + 0x30]
test eax, eax
jle 0x14012fa33
mov ecx, dword [rbx + 0x34]
test ecx, ecx
jle 0x14012fa33
add edi, eax
mov dword [rsp + 0x50], edi
cmp edi, dword [rbx]
jl 0x14012fa3a
mov dword [rsp + 0x50], r11d
add esi, ecx
jmp 0x14012fa36
test rax, rax
je 0x14012f2bf
mov r9d, dword [rsi + rax]
jmp 0x14012f2c3
or r9d, 0xffffffff
mov eax, 1
mov r8d, edi
mov rdx, r12
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140151510
jmp 0x14012f270
mov rcx, rbx
call fcn.1401516a0
cmp dword [rbx + 0x30], 0
jle 0x14012f35b
cmp dword [rbx + 0x34], 0
jle 0x14012f35b
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012f313
mov r9d, dword [rsi + rax]
jmp 0x14012f317
or r9d, 0xffffffff
mov eax, dword [rsp + 0x78]
mov esi, dword [rsp + 0x54]
mov r8d, edi
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], eax
mov eax, 1
mov rdx, r12
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.1401534f0
jmp 0x14012f274
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012f36e
mov r9d, dword [rsi + rax]
jmp 0x14012f372
or r9d, 0xffffffff
mov eax, 1
mov r8d, edi
mov rdx, r12
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140151700
jmp 0x14012f270
cmp r8w, 6
jne 0x14012f3d8
mov r9, qword [rbp]
movsxd rdx, edi
mov r8d, 1
mov rcx, r13
call fcn.1401c1e14
test rax, rax
jne 0x14012f70a
mov esi, dword [rsp + 0x54]
mov eax, 4
mov r15d, eax
mov dword [rsp + 0x58], eax
jmp 0x14012f27d
mov ecx, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x54]
mov r15, r12
test r13, r13
mov r14d, esi
mov r12d, ecx
cmovne r15, r13
mov dword [rsp + 0xc0], ecx
mov qword [rsp + 0xd8], r15
test ecx, ecx
je 0x14012f9e8
mov ebp, esi
imul ebp, r10d
nop dword [rax]
cmp word [rbx + 0x8c], 0
je 0x14012f4b5
cmp word [rbx + 8], 0x10
jne 0x14012f4b5
movsxd rdi, ebp
xor esi, esi
inc r14d
add rdi, r13
add ebp, r10d
cmp dword [rbx], esi
jle 0x14012f56a
mov r15, qword [rsp + 0x90]
mov r13d, dword [rsp + 0xbc]
movzx r12d, word [rsp + 0x88]
mov rcx, r15
call qword [rbx + 0x40]
lea rdi, [rdi + 2]
shr ax, 4
cmp r13w, ax
mov word [rdi - 2], ax
cmova r13w, ax
cmp r12w, ax
cmovb r12w, ax
inc esi
cmp esi, dword [rbx]
jl 0x14012f458
mov r15, qword [rsp + 0xd8]
mov r10d, dword [rsp + 0x68]
mov word [rsp + 0x88], r12w
mov r12d, dword [rsp + 0xc0]
mov dword [rsp + 0xbc], r13d
mov r13, qword [rsp + 0xa8]
jmp 0x14012f56a
mov rax, qword [rsp + 0x90]
movsxd rdi, r10d
mov esi, 1
mov r9, qword [rax]
mov r8d, esi
mov rdx, rdi
mov rcx, r15
call fcn.1401c1e14
test rax, rax
je 0x14012f59e
cmp word [rbx + 0x66], 2
jne 0x14012f517
test rdi, rdi
jle 0x14012f517
mov rcx, r15
lea rdx, [0x140000000]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx eax, byte [rax + rdx + 0x20bdd0]
mov byte [rcx - 1], al
dec rdi
jne 0x14012f500
mov rax, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov r9d, r14d
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140129ca0
mov r10d, dword [rsp + 0x68]
inc r14d
add ebp, r10d
mov word [rsp + 0x58], ax
dec r12d
mov dword [rsp + 0xc0], r12d
jne 0x14012f410
mov r15d, dword [rsp + 0x58]
mov r12, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0x90]
mov r14d, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x54]
jmp 0x14012f27d
mov r12, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0x90]
mov r14d, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x54]
mov r15d, 4
jmp 0x14012f278
cmp dword [rsp + 0xb4], 0
jne 0x14012f614
mov r9, qword [rbp]
mov r15d, 1
lea rcx, [rsp + 0x98]
lea edx, [r15 + 1]
mov r8d, r15d
call fcn.1401c1e14
cmp byte [rsp + 0x98], 0
jne 0x14012f605
cmp byte [rsp + 0x99], r15b
jne 0x14012f605
mov dword [rbx + 0xc0], r15d
mov rdx, 0xfffffffffffffffe
mov rcx, rbp
call fcn.140066ff0
mov r15, qword [rsp + 0x80]
test r13, r13
mov rdx, r12
cmovne rdx, r13
cmp dword [rbx + 0xc0], 0
je 0x14012f650
test r15, r15
je 0x14012f63a
mov r9d, dword [rsi + r15]
jmp 0x14012f63e
or r9d, 0xffffffff
mov r8d, edi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.1401687f0
jmp 0x14012f66f
test r15, r15
je 0x14012f65b
mov r9d, dword [rsi + r15]
jmp 0x14012f65f
or r9d, 0xffffffff
mov r8d, edi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140168380
movzx ecx, ax
mov dword [rsp + 0x58], ecx
test ax, ax
jne 0x14012f9fd
cmp word [rbx + 0x64], 6
mov rdx, r12
mov rcx, r13
je 0x14012f710
mov rax, qword [rsp + 0x70]
mov esi, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x64]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], edi
mov edi, dword [rsp + 0x50]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov r9d, esi
mov dword [rsp + 0x20], edi
call fcn.140129ca0
movzx r15d, ax
mov dword [rsp + 0x58], r15d
jmp 0x14012f281
cmp r8w, 6
jne 0x14012f753
xor r9d, r9d
cmp word [rbx + 0x66], 2
mov r8d, edi
mov rdx, r13
mov rcx, rbp
sete r9b
call fcn.14012e6a0
movzx r15d, ax
mov dword [rsp + 0x58], r15d
test ax, ax
jne case.0x14012f06f.6
mov rdx, r12
mov rcx, r13
movsx eax, word [rbx + 8]
lea r8, [rbx + 0x98]
lea r9, [rbx + 0x90]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.14012d190
mov esi, dword [rsp + 0x54]
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
mov r8d, esi
mov r9d, r14d
call fcn.1400615b0
jmp 0x14012f274
mov edi, dword [rsp + 0x5c]
mov ebp, dword [rsp + 0x54]
test r13, r13
mov r14, r12
cmovne r14, r13
xor r11d, r11d
mov esi, r11d
test edi, edi
jle 0x14012fa0b
xor r15d, r15d
nop word [rax + rax]
cmp word [rbx + 0x66], 2
mov rcx, qword [rsp + 0x90]
mov r9d, r15d
mov r8d, r10d
mov rdx, r14
sete r9b
call fcn.14012e6a0
movzx ecx, ax
mov dword [rsp + 0x58], ecx
test ax, ax
jne 0x14012f88e
movzx eax, word [rbx + 8]
cmp ax, 0x10
jne 0x14012f7ec
mov rdi, r15
mov r15, qword [rsp + 0xd0]
test r15, r15
jle 0x14012f81a
nop dword [rax]
movzx ecx, word [r13 + rdi*2]
call qword [rbx + 0x50]
inc rdi
shr ax, 8
mov byte [rdi + r12 - 1], al
cmp rdi, r15
jl 0x14012f7d0
jmp 0x14012f81a
cmp ax, 0x20
jne 0x14012f821
mov rdi, r15
mov r15, qword [rsp + 0xd0]
test r15, r15
jle 0x14012f81a
mov ecx, dword [r13 + rdi*4]
call qword [rbx + 0x58]
inc rdi
shr eax, 0x18
mov byte [rdi + r12 - 1], al
cmp rdi, r15
jl 0x14012f802
mov edi, dword [rsp + 0x5c]
xor r15d, r15d
cmp dword [rbx + 0x30], 0
jle 0x14012f85a
cmp dword [rbx + 0x34], 0
jle 0x14012f85a
mov eax, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
add r8d, esi
mov r9d, 1
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call fcn.140061930
jmp 0x14012f87f
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
mov r9d, 1
mov r8d, ebp
call fcn.1400615b0
inc ebp
movzx ecx, ax
mov dword [rsp + 0x58], ecx
test ax, ax
jne 0x14012f88e
mov r10d, dword [rsp + 0x68]
inc esi
cmp esi, edi
jl 0x14012f780
mov r15d, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x90]
mov r14d, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x54]
jmp 0x14012f27d
sub ecx, 0x8029
je 0x14012f9c0
sub ecx, 0x89
je case.0x14012f06f.8
mov esi, dword [rsp + 0x54]
sub ecx, 0x6c2
je 0x14012f8f5
dec ecx
jne 0x14012f27d
mov rax, qword [rsp + 0x70]
mov r9, r12
mov r8d, r14d
mov qword [rsp + 0x28], rax
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140169540
jmp 0x14012f274
mov eax, 0x804c
mov r9, r12
mov rcx, rbp
cmp r8w, ax
mov rax, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov r8d, r14d
jne 0x14012f924
call fcn.140169360
jmp 0x14012f274
call fcn.140169690
jmp 0x14012f274
mov rax, qword [rsp + 0x70]
mov esi, dword [rsp + 0x54]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r13
mov r9d, r14d
mov r8d, esi
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
call fcn.1401691d0
movzx r15d, ax
mov dword [rsp + 0x58], r15d
test ax, ax
jne 0x14012f27d
mov rax, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x64]
mov r9d, esi
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], edi
mov edi, dword [rsp + 0x50]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x20], edi
call fcn.140129ca0
movzx r15d, ax
mov dword [rsp + 0x58], r15d
jmp 0x14012f281
mov rax, qword [rsp + 0x70]
mov esi, dword [rsp + 0x54]
mov r9, r12
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov rcx, rbp
mov edx, esi
mov qword [rsp + 0x20], rbx
call fcn.140169ec0
jmp 0x14012f274
mov r15d, dword [rsp + 0x58]
mov r12, qword [rsp + 0xc8]
mov r14d, ecx
jmp 0x14012f27d
mov r15d, dword [rsp + 0x58]
mov esi, dword [rsp + 0x54]
jmp 0x14012f27d
mov rbp, qword [rsp + 0x90]
mov esi, dword [rsp + 0x54]
mov r14d, edi
mov edi, dword [rsp + 0x50]
jmp 0x14012f284
mov edi, dword [rsp + 0x50]
mov esi, dword [rsp + 0x54]
xor r11d, r11d
jmp 0x14012f284
add esi, r14d
mov dword [rsp + 0x54], esi
mov r8d, dword [rsp + 0xb4]
mov ecx, dword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
movzx r9d, word [rsp + 0x60]
inc r8d
mov dword [rsp + 0xb4], r8d
cmp r8d, dword [rsp + 0xb8]
jl 0x14012edd0
cmp word [rbx + 0x8c], 0
je 0x14012fb25
cmp word [rbx + 8], 0x10
jne 0x14012fb25
cmp dword [rbx + 4], 0
mov rdi, r13
mov esi, r11d
jle 0x14012fb25
mov ebp, dword [rsp + 0xbc]
movzx r14d, word [rsp + 0x88]
mov r13d, 1
nop
cmp dword [rbx], 0
mov ecx, r11d
jle 0x14012faf3
movzx r10d, bp
movzx r9d, r14w
mov r8, r12
sub r9d, r10d
nop word [rax + rax]
movzx eax, word [rdi]
xor edx, edx
inc ecx
sub eax, r10d
add rdi, 2
lea r8, [r8 + 1]
imul eax, eax, 0xff
div r9d
mov byte [r8 - 1], al
cmp ecx, dword [rbx]
jl 0x14012fad0
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
mov r9d, r13d
mov r8d, esi
call fcn.1400615b0
movzx r15d, ax
test ax, ax
jne 0x14012fb1d
inc esi
mov r11d, 0
cmp esi, dword [rbx + 4]
jl 0x14012fab0
mov r13, qword [rsp + 0xa8]
test r13, r13
je 0x14012fb32
mov rcx, r13
call fcn.1401be23c
mov rcx, qword [rsp + 0xa0]
call fcn.1401be23c
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14012fb54
mov rcx, rax
call fcn.1401be23c
movzx ecx, word [rbx + 0x60]
cmp cx, 5
jne 0x14012fb68
mov rcx, rbx
call fcn.140168c20
jmp 0x14012fbd3
lea eax, [rcx - 2]
cmp ax, 2
jbe 0x14012fbcb
cmp cx, 7
jne 0x14012fb86
lea rcx, [rsp + 0x140]
call fcn.140168d30
jmp 0x14012fbd3
mov eax, 0x8774
cmp cx, ax
jne 0x14012fbac
mov eax, 0x804c
mov rcx, rbx
cmp word [rbx + 0x64], ax
jne 0x14012fba5
call fcn.140169530
jmp 0x14012fbd3
call fcn.140169800
jmp 0x14012fbd3
mov eax, 0x80b2
cmp cx, ax
je 0x14012fbbc
cmp cx, 8
jne 0x14012fbd3
lea rcx, [rsp + 0xe0]
call fcn.14016a580
jmp 0x14012fbd3
mov rcx, rbx
call fcn.1401515e0
movzx eax, r15w
mov rsi, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x570
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret