Function at 0x14005c560
Capabilities:
Encode data using xor
Encrypt data using speck

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x38
mov rax, qword [rdx]
mov r15, r8
mov r8, qword [rsp + 0x98]
mov r12d, 1
mov r11, r9
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rax
mov ebx, r12d
test r8, r8
je 0x14005c5ab
mov rax, qword [rcx + 0x1b0]
mov qword [r8], rax
mov rax, qword [rsp + 0x70]
cmp dword [rcx + 0x80], 0
jge 0x14005c5c4
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x30], r13
xor r13d, r13d
cmp qword [r9], r13
je 0x14005c5f8
mov r10, qword [rsp + 0x90]
test r10, r10
je 0x14005c5e3
cmp qword [r10], r13
jne 0x14005c603
sub rax, qword [rdx]
mov edx, 0xffffffec
mov r8, rax
call fcn.140057840
jmp 0x14005d5de
mov r10, r13
mov qword [rsp + 0x90], r13
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x80], rbp
test rcx, rcx
jne 0x14005c649
mov rdx, qword [rdx]
mov rcx, qword [r15]
mov qword [rsi + 0x18], rcx
mov rax, rcx
test rdx, rdx
je 0x14005c62a
lea rax, [rcx + rdx]
mov qword [rsi + 0x28], rax
lea rax, [rdx + 1]
cmp rax, 0x1c
jbe 0x14005c643
lea rax, [rcx + rdx - 0x1b]
mov qword [rsi + 0x20], rax
jmp 0x14005c699
mov qword [rsi + 0x20], rcx
jmp 0x14005c699
lea rdx, [rsi + 0x48]
mov ebx, 2
mov qword [rsi + 0x18], rdx
mov rax, rdx
test rcx, rcx
je 0x14005c662
lea rax, [rdx + rcx]
mov qword [rsi + 0x28], rax
lea rax, [rcx + 1]
cmp rax, 0x1c
jbe 0x14005c67b
lea rax, [rdx + rcx - 0x1b]
mov qword [rsi + 0x20], rax
jmp 0x14005c699
mov qword [rsi + 0x20], rdx
jmp 0x14005c699
mov r12d, 1
xor r13d, r13d
lea rbp, [0x140000000]
cmp ebx, 1
je 0x14005c7bc
cmp ebx, 2
jne 0x14005d630
cmp qword [rsi + 0x88], 0
je 0x14005c6ea
mov r9, r8
mov rdx, r11
mov rcx, rsi
mov r8, r10
mov dword [rsp + 0x20], r12d
call fcn.14005a3a0
test eax, eax
js 0x14005d5c2
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov rdx, qword [rsi + 0x50]
test rdx, rdx
je 0x14005d5f1
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x18], rax
jne 0x14005c74b
mov qword [rsi + 0x50], r13
mov rdx, qword [r14]
mov rcx, qword [r15]
mov ebx, r12d
mov qword [rsi + 0x18], rcx
mov rax, rcx
test rdx, rdx
je 0x14005c71e
lea rax, [rcx + rdx]
mov r10, qword [rsp + 0x90]
mov qword [rsi + 0x28], rax
lea rax, [rdx + 1]
cmp rax, 0x1c
jbe 0x14005c742
lea rax, [rcx + rdx - 0x1b]
mov qword [rsi + 0x20], rax
jmp case.default.0x14005c7d2
mov qword [rsi + 0x20], rcx
jmp case.default.0x14005c7d2
cmp qword [r14], 0
je 0x14005d5c4
mov rax, qword [r15]
mov ebx, r12d
movzx ecx, byte [rax]
mov byte [rdx + rsi + 0x48], cl
inc qword [rsi + 0x50]
mov rdx, qword [rsi + 0x50]
lea rcx, [rsi + 0x48]
mov qword [rsi + 0x18], rcx
mov rax, rcx
je 0x14005c77b
lea rax, [rcx + rdx]
mov qword [rsi + 0x28], rax
lea rax, [rdx + 1]
cmp rax, 0x1c
jbe 0x14005c7a5
mov r10, qword [rsp + 0x90]
lea rax, [rcx + rdx - 0x1b]
mov qword [rsi + 0x20], rax
inc qword [r15]
dec qword [r14]
jmp case.default.0x14005c7d2
mov r10, qword [rsp + 0x90]
mov qword [rsi + 0x20], rcx
inc qword [r15]
dec qword [r14]
jmp case.default.0x14005c7d2
movsxd rax, dword [rsi]
cmp eax, 0x1a
ja case.default.0x14005c7d2
mov ecx, dword [rbp + rax*4 + 0x5d6a0]
add rcx, rbp
jmp rcx
lea rcx, [rsi + 8]
call fcn.1400975a0
test eax, eax
jne 0x14005c801
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
lea ebx, [rax + 2]
jmp case.default.0x14005c7d2
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.140057890
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
movzx ecx, byte [rsi + 0x304]
and cl, 0x20
neg cl
sbb ecx, ecx
add ecx, 2
mov dword [rsi], ecx
jmp case.default.0x14005c7d2
cmp qword [rsi + 0x10], 6
jae 0x14005c88c
mov r8, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x18]
cmp rdx, r8
je 0x14005c928
movzx eax, byte [rdx]
mov rcx, qword [rsi + 0x10]
shl rax, cl
add rcx, 8
or qword [rsi + 8], rax
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
cmp rcx, 6
jb 0x14005c853
mov r8, qword [rsp + 0x98]
mov rax, qword [rsi + 8]
mov rcx, rax
shr rax, 6
and rcx, qword [0x1402c3e80]
add qword [rsi + 0x10], 0xfffffffffffffffa
mov qword [rsi + 8], rax
and dword [rsi + 0x304], 0xfffff03f
and ecx, 0x3f
shl ecx, 6
or dword [rsi + 0x304], ecx
mov eax, dword [rsi + 0x304]
shr eax, 6
and eax, 0x3f
cmp eax, 0xa
jb 0x14005c93a
cmp eax, 0x1e
ja 0x14005c93a
mov dword [rsi], 2
mov ecx, dword [rsi + 0x304]
mov edx, r12d
shr ecx, 6
and ecx, 0x3f
shl edx, cl
mov rcx, qword [rsi + 0x40]
sub edx, 0x10
mov dword [rsi + 0x5c], edx
mov edx, 0x3030
call qword [rsi + 0x30]
mov qword [rsi + 0x100], rax
test rax, rax
jne 0x14005c944
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
lea ebx, [rax - 0x1e]
jmp case.default.0x14005c7d2
mov r8, qword [rsp + 0x98]
mov ebx, 2
jmp case.default.0x14005c7d2
mov ebx, 0xfffffff3
jmp case.default.0x14005c7d2
add rax, 0x1da0
mov dword [rsi], 3
mov qword [rsi + 0x108], rax
mov rcx, rsi
call fcn.1400977c0
mov dword [rsi], 4
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.140057b80
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov eax, dword [rsi + 0x304]
test al, 4
jne 0x14005c9a2
test al, 2
je 0x14005ca04
mov rdx, qword [rsi + 0x10]
mov r8, r13
mov rcx, rdx
and ecx, 7
je 0x14005c9ce
mov rax, qword [rsi + 8]
mov r8, qword [rbp + rcx*8 + 0x2c3e50]
sub rdx, rcx
and r8, rax
shr rax, cl
mov qword [rsi + 0x10], rdx
mov qword [rsi + 8], rax
mov rcx, qword [rsi + 0x10]
cmp rcx, 0x40
jae 0x14005c9e5
mov rax, r12
shl rax, cl
dec rax
and qword [rsi + 8], rax
test r8, r8
je 0x14005ca04
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, 0xfffffff2
jmp case.default.0x14005c7d2
test byte [rsi + 0x304], 4
je 0x14005ca60
mov rax, qword [rsi + 0x2d0]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov dword [rsi], reloc.WS2_32.dll_inet_ntoa
test rax, rax
je case.default.0x14005c7d2
movsxd rdx, dword [rsi + 0x84]
mov rcx, qword [rsi + 0x2e0]
call rax
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
jmp case.default.0x14005c7d2
cmp dword [rsi + 0x84], 0
jne 0x14005ca85
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov eax, recv
mov dword [rsi], eax
jmp case.default.0x14005c7d2
mov rcx, rsi
call fcn.14005aba0
test byte [rsi + 0x304], 2
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
je 0x14005cab9
mov r10, qword [rsp + 0x90]
mov dword [rsi], reloc.WS2_32.dll_inet_addr
jmp case.default.0x14005c7d2
mov dword [rsi], send
mov dword [rsi + 4], r13d
lea rax, [rsi + 0x438]
mov qword [rsi + 0x360], r13
mov dword [rsi + 0x358], r13d
mov qword [rsi + 0x350], 0
mov qword [rsi + 0x410], rax
mov dword [rsi], reloc.WS2_32.dll_select
movsxd rax, dword [rsi + 4]
cmp eax, 3
jl 0x14005cb0c
mov r10, qword [rsp + 0x90]
mov dword [rsi], 5
jmp case.default.0x14005c7d2
lea r8, [rsi + rax*8 + 0x138]
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.1400579d0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
movsxd rax, dword [rsi + 4]
inc qword [rsi + rax*8 + 0x138]
movsxd rcx, dword [rsi + 4]
cmp qword [rsi + rcx*8 + 0x138], 2
jae 0x14005cb69
lea eax, [rcx + 1]
mov dword [rsi + 4], eax
jmp case.default.0x14005c7d2
mov dword [rsi], reloc.WS2_32.dll_send
movsxd rdx, dword [rsi + 4]
mov rax, qword [rsi + 0x100]
xor r9d, r9d
mov rcx, qword [rsi + rdx*8 + 0x138]
mov qword [rsp + 0x20], rsi
imul edx, edx, 0x278
movsxd rdx, edx
add rcx, 2
lea r8, [rax + rdx*4]
mov rdx, rcx
call fcn.1400589a0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov dword [rsi], socket
mov eax, dword [rsi + 4]
mov edx, 0x1a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
imul eax, eax, 0x18c
movsxd rcx, eax
mov rax, qword [rsi + 0x108]
lea r8, [rax + rcx*4]
mov ecx, edx
call fcn.1400589a0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov dword [rsi], reloc.WS2_32.dll_setsockopt
movsxd rdx, dword [rsi + 4]
mov eax, edx
mov rbp, rdx
imul eax, eax, 0x18c
cmp dword [rsi + 0x2fc], 0
movsxd rcx, eax
mov rax, qword [rsi + 0x108]
lea r10, [rax + rcx*4]
jne 0x14005cd16
cmp qword [rsi + 0x10], 0xf
jae 0x14005cc91
mov r8, qword [rsi + 0x28]
nop word [rax + rax]
mov rdx, qword [rsi + 0x18]
cmp rdx, r8
je 0x14005ccf6
movzx eax, byte [rdx]
mov rcx, qword [rsi + 0x10]
shl rax, cl
add rcx, 8
or qword [rsi + 8], rax
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
cmp rcx, 0xf
jb 0x14005cc60
mov r9, qword [rsi + 8]
mov r8, r9
and r8, qword [0x1402c3ec8]
movzx eax, r8b
lea rdx, [r10 + rax*4]
movzx eax, byte [r10 + rax*4]
cmp al, 8
jbe 0x14005cce4
add qword [rsi + 0x10], 0xfffffffffffffff8
movzx ecx, al
lea rax, [0x140000000]
add ecx, 0xfffffff8
shr r9, 8
shr r8, 8
mov qword [rsi + 8], r9
mov rcx, qword [rax + rcx*8 + 0x2c3e50]
movzx eax, word [rdx + 2]
and rcx, r8
add rcx, rax
lea rdx, [rdx + rcx*4]
movzx ecx, byte [rdx]
sub qword [rsi + 0x10], rcx
shr qword [rsi + 8], cl
movzx r10d, word [rdx + 2]
jmp 0x14005cd1d
lea r8, [rsp + 0x78]
lea rdx, [rsi + 8]
mov rcx, r10
call fcn.140058130
test eax, eax
je 0x14005cddb
mov r10, qword [rsp + 0x78]
jmp 0x14005cd22
mov r10, qword [rsi + 0x130]
mov qword [rsp + 0x78], r10
lea rax, [0x140000000]
movzx r9d, byte [rax + r10*4 + 0x2c3f62]
movzx r11d, word [rax + r10*4 + 0x2c3f60]
cmp qword [rsi + 0x10], r9
jae 0x14005cd78
mov r8, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x18]
cmp rdx, r8
je 0x14005cdcd
movzx eax, byte [rdx]
mov rcx, qword [rsi + 0x10]
shl rax, cl
add rcx, 8
or qword [rsi + 8], rax
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
cmp rcx, r9
jb 0x14005cd45
lea rax, [0x140000000]
mov rax, qword [rax + r9*8 + 0x2c3e50]
mov rdx, qword [rsi + 8]
sub qword [rsi + 0x10], r9
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
and rax, rdx
add rax, r11
mov r11, qword [rsp + 0x88]
mov rcx, r9
shr rdx, cl
mov qword [rsi + 8], rdx
mov qword [rsi + rbp*8 + 0x118], rax
inc dword [rsi + 4]
mov dword [rsi + 0x2fc], r13d
mov dword [rsi], reloc.WS2_32.dll_select
jmp 0x14005c699
mov qword [rsi + 0x130], r10
mov dword [rsi + 0x2fc], r12d
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, 2
jmp 0x14005c699
mov r9, rsi
mov rdx, r10
mov rcx, r11
call fcn.14005a790
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov eax, recv
mov dword [rsi], eax
jmp case.default.0x14005c7d2
mov rcx, rsi
call fcn.14005a600
jmp 0x14005ce0b
cmp qword [rsi + 0x10], 6
jae 0x14005ce81
mov r8, qword [rsi + 0x28]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, r8
je 0x14005c928
movzx eax, byte [rdx]
mov rcx, qword [rsi + 0x10]
shl rax, cl
add rcx, 8
or qword [rsi + 8], rax
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
cmp rcx, 6
jb 0x14005ce50
mov rax, qword [rsi + 8]
mov rdx, rax
shr rax, 6
and rdx, qword [0x1402c3e80]
add qword [rsi + 0x10], 0xfffffffffffffffa
mov qword [rsi + 8], rax
mov rcx, qword [reloc.WS2_32.dll_closesocket]
and rcx, rdx
shr rdx, 2
shl rdx, cl
mov qword [rsi + 0x180], rcx
mov rcx, qword [rsi + 0x40]
mov qword [rsi + 0x188], rdx
mov rdx, qword [rsi + 0x138]
call qword [rsi + 0x30]
mov qword [rsi + 0x318], rax
test rax, rax
jne 0x14005cef5
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
lea ebx, [rax - 0x15]
jmp case.default.0x14005c7d2
mov qword [rsi], 6
mov rcx, rsi
call fcn.14005ac20
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov dword [rsi], reloc.WS2_32.dll_shutdown
mov rcx, qword [rsi + 0x138]
lea rdx, [rsi + 0x308]
lea r8, [rsi + 0x310]
shl rcx, 6
mov r9, rsi
call fcn.140058ea0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne 0x14005c699
mov qword [rsi + 0x330], r13
mov qword [rsi + 0x338], r13
mov qword [rsi + 0x340], r13
mov qword [rsi + 0x348], r13
cmp qword [rsi + 0x138], 0
mov r10, r13
jbe 0x14005d025
nop
mov rdx, qword [rsi + 0x310]
mov rcx, r10
mov r8, r13
shl rcx, 6
add rdx, rcx
mov rcx, r13
movzx r9d, byte [rdx]
nop dword [rax + rax]
movzx eax, byte [rdx]
add rcx, 4
add rdx, 4
xor rax, r9
or r8, rax
movzx eax, byte [rdx - 3]
xor rax, r9
or r8, rax
movzx eax, byte [rdx - 2]
xor rax, r9
or r8, rax
movzx eax, byte [rdx - 1]
xor rax, r9
or r8, rax
cmp rcx, 0x40
jb 0x14005cfc0
test r8, r8
jne 0x14005d015
movzx ecx, r10b
mov r8, r10
mov edx, r12d
and cl, 0x1f
shr r8, 5
shl edx, cl
or dword [rsi + r8*4 + 0x330], edx
inc r10
cmp r10, qword [rsi + 0x138]
jb 0x14005cfa0
mov dword [rsi], reloc.WS2_32.dll_socket
mov r10, qword [rsi + 0x180]
mov r8, qword [rsi + 0x188]
mov eax, 0x18
lea rcx, [r10 + 1]
shl eax, cl
test byte [rsi + 0x304], 0x20
lea rbp, [rax + r8 + 0x10]
mov r13, rbp
je 0x14005d0c4
cmp r8d, 0x7ffffffc
jb 0x14005d065
mov edx, 0x8000000c
jmp 0x14005d0b1
mov ecx, r10d
mov edx, 0x7ffffffc
mov r9d, r12d
sub edx, r8d
shl r9d, cl
xor eax, eax
shr edx, cl
dec r9d
add edx, 4
mov ecx, edx
shr ecx, 1
je 0x14005d08c
inc eax
shr ecx, 1
jne 0x14005d086
lea ecx, [rax - 1]
lea eax, [rax + rax - 4]
shr edx, cl
and edx, 1
or edx, eax
jne 0x14005d0a2
lea edx, [r8 + 0x10]
jmp 0x14005d0b1
dec edx
mov ecx, r10d
shl edx, cl
or edx, r9d
lea edx, [rdx + r8 + 0x11]
mov eax, 0x3e
lea rcx, [r10 + 1]
mov r13d, edx
shl eax, cl
lea rbp, [rax + r8 + 0x10]
mov rcx, qword [rsi + 0x148]
lea r8, [rsi + 0x198]
lea rdx, [rsi + 0x190]
shl rcx, 2
mov r9, rsi
call fcn.140058ea0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne 0x14005c690
mov rax, qword [rsi + 0x308]
mov r9d, 0x100
lea rdx, [rsi + 0xb8]
mov r8d, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400979d0
mov rcx, qword [rsi + 0x140]
mov r9d, 0x2c0
mov qword [rsp + 0x20], rcx
mov ebx, eax
lea rdx, [rsi + 0xd0]
mov rcx, rsi
mov r8d, r9d
and ebx, 1
call fcn.1400979d0
mov rcx, qword [rsi + 0x190]
lea rdx, [rsi + 0xe8]
mov qword [rsp + 0x20], rcx
mov r9, r13
mov r8, rbp
mov rcx, rsi
and ebx, eax
call fcn.1400979d0
test ebx, eax
je 0x14005d68b
xor r13d, r13d
mov qword [rsi], 0x18
lea rbp, [0x140000000]
mov ecx, dword [rsi + 4]
test ecx, ecx
je 0x14005d1b6
dec ecx
je 0x14005d1ad
dec ecx
jne 0x14005d695
lea rcx, [rsi + 0xe8]
jmp 0x14005d1bd
lea rcx, [rsi + 0xd0]
jmp 0x14005d1bd
lea rcx, [rsi + 0xb8]
mov rdx, rsi
call fcn.140058dd0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
mov r12d, 1
cmp eax, 1
jne case.default.0x14005c7d2
inc dword [rsi + 4]
cmp dword [rsi + 4], 3
jl case.default.0x14005c7d2
mov dword [rsi], 0x19
mov r9, qword [rsi + 0x158]
movzx ecx, r9b
mov r8, r9
mov rax, r9
shr rax, 5
and cl, 0x1f
shl r8, 6
add r8, qword [rsi + 0x310]
mov qword [rsi + 0xa8], r8
mov edx, dword [rsi + rax*4 + 0x330]
mov rax, qword [rsi + 0xb8]
shr rdx, cl
and edx, 1
mov dword [rsi + 0x110], edx
movzx ecx, byte [r8]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rsi + 0x318]
mov qword [rsi + 0x1a0], rcx
movzx eax, byte [rax + r9]
lea rcx, [0x1402777f0]
and eax, 3
shl eax, 9
cdqe
add rax, rcx
mov qword [rsi + 0xa0], rax
mov rax, qword [rsi + 0x198]
mov qword [rsi + 0xb0], rax
mov rax, qword [rsi + 0xd0]
mov rcx, qword [rax]
mov qword [rsi + 0x98], rcx
mov rcx, rsi
call fcn.14005a530
test eax, eax
jne 0x14005d2c8
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
lea ebx, [rax - 0x1b]
lea r12d, [rax + 1]
jmp case.default.0x14005c7d2
mov rcx, rsi
call fcn.14005acc0
mov dword [rsi], 7
mov rcx, rsi
call fcn.14005adc0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
mov r12d, 1
cmp eax, 2
jne case.default.0x14005c7d2
mov rcx, rsi
call fcn.14005b8d0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
jmp case.default.0x14005c7d2
mov r9, r8
mov rdx, r11
mov rcx, rsi
mov r8, r10
mov dword [rsp + 0x20], r13d
call fcn.14005a3a0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, eax
cmp eax, 1
jne case.default.0x14005c7d2
mov rcx, rsi
call fcn.14005a4f0
mov ecx, dword [rsi + 0x304]
mov eax, r12d
shr ecx, 6
and ecx, 0x3f
shl eax, cl
cmp dword [rsi + 0x64], eax
jne 0x14005d38b
mov eax, dword [rsi + 0x5c]
mov dword [rsi + 0x60], eax
mov eax, dword [rsi]
cmp eax, 0xf
jne 0x14005d40b
mov rcx, qword [rsi + 0x328]
test rcx, rcx
je 0x14005d3d8
mov eax, dword [rcx + 0x14]
cmp dword [rcx + 0x10], eax
je 0x14005d3d8
mov edx, dword [rsi + 0x58]
mov rcx, rsi
call fcn.14005aac0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
add dword [rsi + 0x58], eax
mov eax, dword [rsi + 0x58]
mov r11, qword [rsp + 0x88]
cmp eax, dword [rsi + 0x64]
jge case.default.0x14005c7d2
mov eax, 7
cmp dword [rsi + 0x84], 0
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ecx, recv
cmove eax, ecx
mov dword [rsi], eax
jmp case.default.0x14005c7d2
cmp eax, 0x10
jne 0x14005d433
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov dword [rsi], 0xa
jmp case.default.0x14005c7d2
cmp dword [rsi + 4], 0
jne 0x14005d440
mov eax, 9
jmp 0x14005d3dd
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov dword [rsi], 8
jmp case.default.0x14005c7d2
cmp dword [rsi + 0x84], 0
jge 0x14005d476
mov ebx, 0xfffffff6
jmp case.default.0x14005c7d2
mov rcx, rsi
call fcn.1400978b0
test byte [rsi + 0x304], 1
jne 0x14005d4aa
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov dword [rsi], 3
jmp case.default.0x14005c7d2
mov rdx, qword [rsi + 0x10]
mov r8, r13
mov rcx, rdx
and ecx, 7
je 0x14005d4d6
mov rax, qword [rsi + 8]
mov r8, qword [rbp + rcx*8 + 0x2c3e50]
sub rdx, rcx
and r8, rax
shr rax, cl
mov qword [rsi + 0x10], rdx
mov qword [rsi + 8], rax
mov rcx, qword [rsi + 0x10]
cmp rcx, 0x40
jae 0x14005d4ed
mov rax, r12
shl rax, cl
dec rax
and qword [rsi + 8], rax
test r8, r8
je 0x14005d514
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov ebx, 0xfffffff1
jmp case.default.0x14005c7d2
cmp qword [rsi + 0x50], 0
jne 0x14005d563
mov rdx, qword [rsi + 0x18]
shr rcx, 3
lea rax, [rcx*8]
test rcx, rcx
je 0x14005d533
sub rdx, rcx
sub qword [rsi + 0x10], rax
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rdx
cmp rcx, 0x40
jae 0x14005d552
mov rax, r12
shl rax, cl
dec rax
and qword [rsi + 8], rax
mov rax, qword [rsi + 0x28]
sub rax, rdx
mov qword [r14], rax
mov rax, qword [rsi + 0x18]
mov qword [r15], rax
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
mov dword [rsi], 0x1a
cmp qword [rsi + 0x88], 0
je 0x14005d5c4
mov r9, r8
mov r8, qword [rsp + 0x90]
mov rdx, r11
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.14005a3a0
mov ebx, eax
cmp eax, 1
je 0x14005d5c4
mov r10, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0x88]
jmp case.default.0x14005c7d2
mov ebx, eax
mov edx, ebx
mov r8, qword [rsp + 0x70]
mov rcx, rsi
sub r8, qword [r14]
call fcn.140057840
mov rbp, qword [rsp + 0x80]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rsi + 0x18]
mov qword [r15], rax
mov rax, qword [rsi + 0x28]
sub rax, qword [rsi + 0x18]
mov qword [r14], rax
je 0x14005d5c4
nop word [rax + rax]
mov rax, qword [r15]
mov rcx, qword [rsi + 0x50]
movzx eax, byte [rax]
mov byte [rcx + rsi + 0x48], al
inc qword [rsi + 0x50]
inc qword [r15]
dec qword [r14]
cmp qword [r14], 0
jne 0x14005d610
jmp 0x14005d5c4
cmp qword [rsi + 0x50], 0
je 0x14005d63d
mov qword [rsi + 0x50], r13
jmp 0x14005d5c4
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
shr rax, 3
lea rcx, [rax*8]
test rax, rax
je 0x14005d659
sub rdx, rax
sub qword [rsi + 0x10], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x18], rdx
cmp rcx, 0x40
jae 0x14005d675
shl r12, cl
dec r12
and qword [rsi + 8], r12
mov rax, qword [rsi + 0x28]
sub rax, rdx
mov qword [r14], rax
mov rax, qword [rsi + 0x18]
mov qword [r15], rax
jmp 0x14005d5c4
mov edx, 0xffffffea
jmp 0x14005d5c6
mov edx, 0xffffffe1
jmp 0x14005d5c6