Function at 0x180037240
Capabilities:
Encrypt data using speck

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x1a8], 0xf3ce
mov rax, qword [0x1800c3668]
mov word [rsp + 0x30], ax
mov rax, qword [0x1800c36d8]
mov word [rsp + 0x10], ax
mov eax, 0xbbc1
mov word [rsp + 0x2c], ax
mov eax, 0xf191
mov word [rsp + 0x1c], ax
mov eax, 0x7a
mov word [rsp + 0x20], ax
mov rax, qword [0x1800c36e0]
mov byte [rsp + 8], al
mov eax, 0xe033c3f5
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800c36c8]
mov word [rsp + 0x14], ax
mov dword [rsp + 0x34], 0xd4c4
mov rax, qword [0x1800c3668]
mov qword [rsp + 0x40], rax
mov byte [rsp + 1], 0xa1
mov eax, 0xffffff8f
mov word [rsp + 0xc], ax
movzx eax, word [0x1800c35ec]
mov byte [rsp], al
mov qword [rsp + 0x70], 0xf91
movzx eax, byte [0x1800c35a7]
mov byte [rsp + 2], al
mov rax, qword [0x1800c3660]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1800c36c8]
mov word [rsp + 0x28], ax
movabs rax, 0x3beece0c26630
mov qword [rsp + 0x60], rax
mov eax, 0x9e70
mov word [rsp + 0x24], ax
movzx eax, byte [0x1800c35a4]
mov word [rsp + 4], ax
mov rax, qword [0x1800c3690]
mov qword [rsp + 0xc8], rax
movzx eax, byte [0x1800c35d3]
mov word [rsp + 0xf0], ax
mov eax, dword [0x1800c35bc]
mov qword [rsp + 0x1b0], rax
movzx eax, byte [0x1800c35d3]
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x1800c3678]
mov qword [rsp + 0x1c0], rax
movsx ax, byte [0x1800c35a5]
mov word [rsp + 0xf4], ax
mov eax, dword [0x1800c3678]
mov dword [rsp + 0x180], eax
mov eax, dword [0x1800c35bc]
mov dword [rsp + 0x184], eax
mov eax, dword [0x1800c36c4]
mov dword [rsp + 0x188], eax
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
add eax, 0x13a
mov dword [rsp + 0x18c], eax
movzx eax, byte [rsp + 2]
test eax, eax
je 0x1800373e5
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x120], rax
jmp 0x1800373f8
movzx eax, word [0x1800c35ec]
movsx rax, ax
mov qword [rsp + 0x120], rax
movzx eax, word [rsp + 0x120]
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x50]
add eax, 0x1a7
mov dword [rsp + 0x190], eax
mov eax, dword [rsp + 0x50]
add eax, 0x97
mov dword [rsp + 0x80], eax
mov eax, 0xa4b76ec3
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x54], eax
movzx eax, word [rsp + 0x14]
movsx rax, ax
cmp qword [rsp + 0x40], rax
ja 0x180037459
jmp 0x180037512
movzx eax, word [rsp + 0x28]
cwde
test eax, eax
je 0x1800374eb
mov eax, 0xb1
mov word [rsp + 4], ax
cmp qword [rsp + 0x70], 0
jne 0x180037486
mov dword [rsp + 0xbc], 1
jmp 0x180037491
mov dword [rsp + 0xbc], 0
movsx eax, word [rsp + 0xc]
movzx ecx, byte [0x1800c35a3]
movsx ecx, cl
imul eax, ecx
cdqe
mov rcx, qword [0x1800c3688]
xor rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x14]
movsx ecx, cx
not ecx
add ecx, dword [rsp + 0xbc]
movsxd rcx, ecx
movabs rdx, 0xf2c094c0819a0
mov r8, qword [0x1800c3698]
imul r8, rdx
mov rdx, r8
sub rcx, rdx
add rax, rcx
mov word [rsp + 4], ax
jmp 0x180037512
cmp dword [0x1800c35bc], 0
je 0x180037512
mov rax, qword [0x1800c36c8]
shr rax, 1
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x20]
add eax, 0x2cfe95b8
mov word [rsp + 0x10], ax
mov eax, dword [rsp + 0x54]
add eax, 0xda
mov dword [rsp + 0xf8], eax
movzx eax, word [0x1800c3624]
movzx eax, ax
sub eax, 0xe2
cdqe
mov qword [0x1800c3688], rax
movzx eax, byte [0x1806dc008]
mov byte [rsp], al
mov eax, dword [rsp + 0x54]
add eax, 0xfe28
mov dword [rsp + 0x194], eax
movzx eax, word [0x1806dc008]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 4]
movzx eax, ax
sub eax, 0x8f9f6388
mov dword [0x1800c36c4], eax
mov eax, dword [rsp + 0x54]
add eax, 0x331b
mov dword [rsp + 0xfc], eax
mov rax, qword [0x1800c3678]
shl rax, 5
mov qword [0x1800c36b0], rax
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfc]
xor eax, ecx
xor eax, 0x3145
mov dword [rsp + 0x108], eax
mov rax, qword [rsp + 0x68]
movzx ecx, word [rsp + 0x28]
movsx rcx, cx
cmp rax, rcx
jge 0x1800375e9
movsx eax, byte [0x1800c35a7]
xor eax, 0x355aee83
mov dword [0x1800c36c0], eax
movzx eax, word [rsp + 4]
movzx eax, ax
sub eax, 0xdd
mov dword [rsp + 0x34], eax
jmp 0x18003764c
movsx eax, byte [rsp + 8]
test eax, eax
je 0x180037602
mov rax, qword [0x1800c36b8]
mov qword [0x1800c3698], rax
jmp 0x18003764c
xor eax, eax
cmp eax, 0xffff6d92
je 0x18003764c
cmp qword [0x1800c3678], 0
je 0x180037626
mov rax, qword [0x1800c3688]
mov qword [rsp + 0x128], rax
jmp 0x180037636
movsx rax, word [0x1800c360c]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x38], 0x44c2
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
add eax, 0x84
mov dword [rsp + 0x198], eax
movsx eax, byte [rsp + 8]
cmp dword [0x1800c35d4], eax
jbe 0x180037680
mov dword [rsp + 0xc4], 1
jmp 0x18003768b
mov dword [rsp + 0xc4], 0
cmp dword [0x1800c35d4], 0x1a
jbe 0x1800376a1
mov dword [rsp + 0xc0], 1
jmp 0x1800376ac
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0xc4], eax
jg 0x1800376c1
jmp 0x180037748
movzx eax, word [rsp + 0x20]
movabs rcx, 0x19cf8183b3276
cmp rax, rcx
jle 0x1800376df
mov dword [rsp + 0x7c], 1
jmp 0x1800376e7
mov dword [rsp + 0x7c], 0
movzx eax, byte [0x1800c35eb]
movzx eax, al
test eax, eax
jne 0x18003770b
mov rax, qword [0x1800c3690]
test rax, rax
jne 0x18003770b
mov dword [rsp + 0x78], 0
jmp 0x180037713
mov dword [rsp + 0x78], 1
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x7c], eax
jle 0x180037748
movsx eax, word [rsp + 0xc]
mov ecx, dword [0x1800c36c0]
add ecx, eax
mov eax, ecx
mov dword [0x1800c36c0], eax
movzx eax, byte [rsp]
movzx eax, al
movsx ecx, word [rsp + 0xc]
imul eax, ecx
cdqe
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x58]
add eax, 0xaf
mov dword [rsp + 0x19c], eax
movzx eax, word [rsp + 0x2c]
cmp dword [rsp + 0x34], eax
je 0x180037765
jmp 0x180037785
cmp qword [rsp + 0xc8], 0
je 0x180037785
mov eax, 0xf91c2e28
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
add eax, 0xeb1
mov dword [rsp + 0x1a0], eax
mov rax, qword [0x1800c3670]
cmp qword [rsp + 0x70], rax
jl 0x1800377d4
mov byte [0x1800c35a3], 0xfa
mov rax, qword [0x1800c36e0]
movabs rcx, 0x2103c1f806fef
sub rax, rcx
mov rcx, qword [0x1800c36c8]
and rcx, rax
mov rax, rcx
mov qword [0x1800c36c8], rax
jmp 0x18003781e
movsx eax, word [rsp + 0x10]
test eax, eax
je 0x1800377ec
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x130], rax
jmp 0x1800377fb
mov rax, qword [0x1800c3670]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [0x1800c36c8], rax
movzx eax, word [rsp + 0x2c]
movzx ecx, byte [0x1800c35a4]
add eax, ecx
mov dword [0x1800c36c4], eax
mov qword [rsp + 0x38], 0xb6
mov eax, dword [rsp + 0x80]
mov ecx, 0x8d
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x80]
mov edx, 0x8d
sub edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, 0x3c1
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xd8], eax
mov dword [rsp + 0x34], 0xad9bd31d
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x5c], eax
movzx eax, byte [rsp]
movzx eax, al
cmp eax, 0xe9
jge 0x180037886
mov dword [rsp + 0x84], 1
jmp 0x180037891
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
not eax
test eax, eax
je 0x180037962
cmp dword [0x1800c36c0], 0
je 0x1800378c8
mov eax, dword [0x1800c3594]
cdqe
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x18003795d
cmp qword [rsp + 0x70], 0
jne 0x1800378e6
xor eax, eax
cmp eax, 0x329a
jne 0x1800378e6
mov dword [rsp + 0x8c], 1
jmp 0x1800378f1
mov dword [rsp + 0x8c], 0
movzx eax, byte [rsp + 2]
not eax
cdqe
movabs rcx, 0xfffb48edae95e23c
cmp rax, rcx
jl 0x180037916
mov dword [rsp + 0x88], 1
jmp 0x180037921
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x8c], eax
jg 0x18003795d
movzx eax, byte [0x1800c35eb]
movzx eax, al
mov rcx, qword [rsp + 0xc8]
imul rcx, rax
mov rax, rcx
not rax
mov byte [0x1800c35a5], al
movzx eax, byte [0x1806dc008]
mov byte [rsp], al
jmp 0x1800379ef
movzx eax, byte [rsp + 2]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
movzx ecx, byte [0x1800c35eb]
movzx ecx, cl
imul rax, rcx
movzx ecx, byte [0x1800c35a6]
movsx rcx, cl
mov rdx, qword [0x1800c36b8]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
test rax, rax
jne 0x1800379ae
mov qword [rsp + 0x138], 1
jmp 0x1800379ba
mov qword [rsp + 0x138], 0
mov rax, qword [rsp + 0x138]
mov qword [0x1800c3678], rax
mov rax, qword [0x1800c36a0]
mov rcx, qword [0x1800c3690]
imul rax, rcx
mov rcx, qword [0x1800c36a0]
add rcx, rax
mov rax, rcx
mov qword [0x1800c36a0], rax
mov eax, dword [rsp + 0x5c]
add eax, 0x8df6
mov dword [rsp + 0x104], eax
mov rax, qword [0x1800c36d8]
mov rcx, qword [rsp + 0x60]
imul rcx, rax
mov rax, rcx
mov rcx, qword [0x1800c3670]
add rcx, rax
mov rax, rcx
mov qword [0x1800c3688], rax
mov rax, qword [0x1800c36e0]
test rax, rax
je 0x180037a43
mov rax, qword [0x1800c3680]
mov qword [rsp + 0x140], rax
jmp 0x180037a50
movzx eax, byte [rsp + 2]
mov qword [rsp + 0x140], rax
movzx eax, word [rsp + 0x140]
mov word [rsp + 0x20], ax
mov eax, dword [rsp + 0x5c]
add eax, 0xf2ac
mov dword [rsp + 0x100], eax
mov rax, qword [0x1800c3668]
cmp qword [rsp + 0xc8], rax
jne 0x180037ab3
mov rax, qword [0x1800c3688]
sub rax, 0x2558
mov word [rsp + 0x28], ax
movsx eax, word [rsp + 0xc]
movsx ecx, word [rsp + 0x10]
movzx edx, byte [0x1800c35a6]
movsx edx, dl
xor ecx, edx
and eax, ecx
cdqe
mov qword [0x1800c3660], rax
jmp 0x180037acf
movzx eax, word [rsp + 0x14]
movsx rax, ax
movabs rcx, 0x3cb7440ef7302
sub rax, rcx
mov dword [0x1800c36c4], eax
mov eax, dword [rsp + 0x5c]
add eax, 0x9b
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x90]
imul eax, ecx
mov ecx, dword [rsp + 0x100]
mov edx, dword [rsp + 0x104]
sub ecx, edx
imul eax, ecx
mov ecx, 0x24eb7e1c
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xdc], eax
movzx eax, byte [0x1800c35a6]
movsx eax, al
movzx ecx, word [0x1800c3624]
movzx ecx, cx
cmp eax, ecx
jle 0x180037b38
mov dword [rsp + 0x94], 1
jmp 0x180037b43
mov dword [rsp + 0x94], 0
mov eax, dword [0x1800c36c4]
cmp dword [rsp + 0x94], eax
jge 0x180037b5f
mov dword [rsp + 0x98], 1
jmp 0x180037b6a
mov dword [rsp + 0x98], 0
movzx eax, word [rsp + 0x20]
not eax
add eax, dword [rsp + 0x98]
test eax, eax
je 0x180037b7e
jmp 0x180037bbe
movsx eax, byte [0x1800c35a7]
movzx ecx, word [rsp + 0x24]
cmp eax, ecx
jne 0x180037b9b
mov dword [rsp + 0xb4], 1
jmp 0x180037ba6
mov dword [rsp + 0xb4], 0
mov eax, dword [rsp + 0xb4]
not eax
test eax, eax
je 0x180037bbe
mov eax, dword [0x1806dc008]
mov qword [rsp + 0x40], rax
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x30]
cwde
and eax, 0x87
cdqe
mov qword [0x1800c36b8], rax
movzx eax, word [rsp + 0x1c]
imul rax, qword [0x1800c3688]
mov word [rsp + 0x1c], ax
mov eax, dword [rsp + 0x48]
add eax, 0x48de
mov dword [rsp + 0x178], eax
mov eax, dword [rsp + 0x48]
add eax, 0xa8
mov dword [rsp + 0xa4], eax
mov byte [0x1800c35a6], 7
mov eax, dword [rsp + 0x48]
add eax, 0xfdf0
mov dword [rsp + 0x17c], eax
mov eax, 2
mov word [rsp + 0x10], ax
mov rax, qword [rsp + 0x68]
xor rax, 0x4ea637cf
mov qword [0x1800c3688], rax
movsx eax, word [rsp + 0x10]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
je 0x180037c63
cmp dword [rsp + 0xa0], 1
je 0x180037c77
jmp 0x180037ca2
movzx eax, word [rsp + 0x14]
cwde
movsx ecx, word [rsp + 0xc]
sub eax, ecx
mov word [rsp + 0x14], ax
jmp 0x180037ca2
movzx eax, word [rsp + 4]
movzx eax, ax
mov rcx, qword [0x1800c3668]
add rax, rcx
mov word [rsp + 4], ax
movsx eax, word [0x1800c36d0]
imul eax, eax, 0xe51619a6
mov word [0x1800c3624], ax
mov eax, dword [rsp + 0xa4]
mov ecx, dword [rsp + 0xa4]
lea eax, [rax + rcx + 0x1c7]
mov dword [rsp + 0xe0], eax
mov eax, dword [0x1806dc008]
mov dword [rsp + 0x4c], eax
movsx eax, word [rsp + 0xc]
movsx ecx, byte [rsp + 8]
add eax, ecx
movzx ecx, word [rsp + 0x14]
movsx ecx, cx
sub eax, ecx
cdqe
movzx ecx, byte [0x1800c35a4]
sub rcx, qword [rsp + 0x38]
sub rax, rcx
mov word [0x1800c360c], ax
movzx eax, word [rsp + 0x14]
cwde
imul eax, eax, 0x2cd6
cdqe
mov qword [0x1800c3698], rax
mov eax, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x4c]
add eax, ecx
mov dword [rsp + 0xe8], eax
mov rax, qword [0x1800c36c8]
test rax, rax
je 0x180037dc1
mov rax, qword [0x1800c3688]
not rax
movzx ecx, word [rsp + 0x1c]
cmp rax, rcx
jle 0x180037d51
mov qword [rsp + 0x148], 1
jmp 0x180037d5d
mov qword [rsp + 0x148], 0
mov rax, qword [0x1800c36d8]
not rax
cmp qword [rsp + 0x148], rax
je 0x180037d89
mov eax, dword [0x1800c35bc]
movabs rcx, 0xb22fc347bb053
and rax, rcx
mov byte [rsp], al
jmp 0x180037dbc
movzx eax, byte [0x1800c35d3]
xor eax, 0x1b961acf
cdqe
mov qword [0x1800c36b0], rax
movzx eax, byte [rsp]
movzx eax, al
sub rax, qword [0x1800c3688]
movzx ecx, byte [rsp]
movzx ecx, cl
and rcx, rax
mov rax, rcx
mov byte [rsp], al
jmp 0x180037e44
movzx eax, word [rsp + 4]
movzx eax, ax
movzx ecx, word [rsp + 4]
movzx ecx, cx
cmp eax, ecx
jl 0x180037e10
movzx eax, word [0x1800c3680]
mov word [rsp + 0x14], ax
mov rax, qword [0x1800c3660]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
imul rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x1c]
add rax, rcx
mov word [0x1800c35ec], ax
jmp 0x180037e44
movzx eax, word [rsp + 0x1c]
mov rcx, qword [0x1800c3690]
add rcx, rax
mov rax, rcx
not rax
test rax, rax
je 0x180037e44
mov qword [0x1800c3690], 0xb4e6eb8
movzx eax, word [rsp + 0x24]
xor eax, 0x5a
cdqe
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xd8]
mov ecx, dword [rsp + 0x4c]
add eax, ecx
mov dword [rsp + 0xec], eax
movzx eax, byte [rsp + 1]
movsx rax, al
mov rcx, qword [0x1800c3668]
and rax, rcx
movzx ecx, byte [rsp + 1]
movsx rcx, cl
add rcx, rax
mov rax, rcx
mov byte [rsp + 1], al
mov eax, dword [rsp + 0xdc]
mov ecx, dword [rsp + 0x4c]
add eax, ecx
mov dword [rsp + 0xe4], eax
movsx eax, word [rsp + 0x10]
test eax, eax
je 0x180037eb8
mov rax, qword [0x1800c3668]
mov rcx, qword [0x1800c36e0]
and rax, rcx
mov qword [0x1800c3668], rax
jmp 0x180037f47
movzx eax, byte [rsp + 1]
movsx eax, al
movsx ecx, byte [0x1800c35a7]
cmp eax, ecx
jne 0x180037ed8
mov dword [rsp + 0xac], 1
jmp 0x180037ee3
mov dword [rsp + 0xac], 0
movsx eax, word [rsp + 0xc]
test eax, eax
jne 0x180037efa
mov qword [rsp + 0x150], 1
jmp 0x180037f06
mov qword [rsp + 0x150], 0
mov rax, qword [rsp + 0x150]
cmp qword [0x1800c3678], rax
jle 0x180037f24
mov dword [rsp + 0xa8], 1
jmp 0x180037f2f
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0xac], eax
jl 0x180037f47
movzx eax, byte [rsp]
mov byte [rsp + 1], al
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x110], rax
mov eax, dword [0x1800c35d4]
sub eax, 0x7330
mov word [rsp + 0xc], ax
mov rax, qword [0x1800c36d8]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
movzx ecx, byte [0x1800c35eb]
movzx ecx, cl
movzx edx, byte [rsp]
movzx edx, dl
add ecx, edx
movsxd rcx, ecx
xor rax, rcx
movzx ecx, word [rsp + 0x20]
movzx edx, byte [rsp + 1]
movsx rdx, dl
sub rdx, qword [rsp + 0x38]
xor rcx, rdx
imul rax, rcx
mov qword [0x1800c3670], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x118], rax
cmp dword [0x1800c35bc], 0
je 0x180037fd7
mov qword [rsp + 0x60], 0xd8
jmp 0x180037fec
xor eax, eax
test eax, eax
je 0x180037fec
movzx eax, byte [0x1800c35a5]
inc al
mov byte [0x1800c35a5], al
movzx eax, word [rsp + 0x24]
movsx ecx, byte [0x1800c35a5]
xor eax, ecx
movzx ecx, word [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x24], ax
mov rax, qword [0x1800c36a8]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1800c3690]
test rax, rax
je 0x18003805c
mov rax, qword [0x1800c3690]
sub rax, qword [rsp + 0x38]
mov rcx, qword [0x1800c3690]
sub rcx, rax
mov rax, rcx
mov qword [0x1800c3690], rax
movsx rax, word [rsp + 0xc]
mov rcx, qword [0x1800c3690]
and rcx, rax
mov rax, rcx
mov qword [0x1800c3690], rax
jmp 0x180038077
cmp qword [rsp + 0x40], 0
je 0x180038077
mov rax, qword [0x1800c3690]
add rax, 0x79c3
mov dword [0x1800c36c4], eax
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax]
mov byte [rsp + 9], al
mov rax, qword [rsp + 0x110]
inc rax
mov qword [rsp + 0x110], rax
imul rax, qword [0x1800c36a8], 0xfa39
mov byte [rsp + 1], al
movsx eax, word [0x1800c36d0]
movzx ecx, byte [0x1800c35d3]
xor eax, ecx
movzx ecx, word [rsp + 0x1c]
movzx edx, byte [rsp]
movzx edx, dl
xor ecx, edx
sub eax, ecx
movsx ecx, byte [0x1800c35a5]
add eax, ecx
mov byte [rsp], al
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax]
mov byte [rsp + 0x18], al
mov rax, qword [rsp + 0x118]
inc rax
mov qword [rsp + 0x118], rax
mov eax, dword [rsp + 0xe0]
mov ecx, dword [rsp + 0xe4]
add eax, ecx
mov ecx, dword [rsp + 0xe8]
mov edx, dword [rsp + 0xec]
imul ecx, edx
cmp eax, ecx
je 0x180038211
mov rax, qword [0x1800c3668]
test rax, rax
je 0x18003813c
movzx eax, byte [0x1800c35a4]
mov qword [rsp + 0x158], rax
jmp 0x180038149
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x158], rax
movzx eax, word [rsp + 0x158]
mov word [rsp + 4], ax
mov eax, 2
imul rax, rax, 0x66
lea rcx, [0x1807d6f00]
movzx edx, word [rsp + 0x20]
mov word [rcx + rax], dx
movzx eax, byte [rsp + 9]
test eax, eax
jne 0x180038211
movzx eax, word [rsp + 0x1c]
test eax, eax
je 0x18003819c
movsx rax, byte [0x1800c35a5]
sub rax, qword [rsp + 0xc8]
mov word [rsp + 0x28], ax
jmp 0x1800381bd
cmp dword [0x1800c36c0], 0
je 0x1800381bd
movzx eax, byte [rsp + 2]
movabs rcx, 0x6b64018d6328e
add rax, rcx
mov dword [0x1800c36c0], eax
cmp qword [rsp + 0x60], 0
je 0x1800381d6
movzx eax, byte [rsp + 1]
movsx eax, al
mov dword [rsp + 0xb0], eax
jmp 0x1800381e4
movsx eax, word [0x1800c360c]
mov dword [rsp + 0xb0], eax
movsxd rax, dword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
movzx eax, byte [0x1800c35a4]
inc al
mov byte [0x1800c35a4], al
movzx eax, byte [rsp + 9]
movzx ecx, byte [rsp + 0x18]
sub eax, ecx
jmp 0x180038455
movzx eax, byte [rsp + 9]
movzx ecx, byte [rsp + 0x18]
cmp eax, ecx
je 0x180038014
mov qword [0x1800c36d8], 3
movzx eax, word [rsp + 0x28]
cwde
shl eax, 3
cdqe
mov qword [0x1800c36c8], rax
cmp dword [0x1800c36c0], 0
je 0x180038259
mov eax, dword [0x1800c35d4]
mov qword [rsp + 0x160], rax
jmp 0x180038268
mov rax, qword [0x1800c36d8]
mov qword [rsp + 0x160], rax
movzx eax, byte [rsp + 0x160]
mov byte [0x1800c35a7], al
mov rax, qword [0x1800c36d8]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x1800382c2
cmp qword [rsp + 0xd0], 1
je 0x180038339
cmp qword [rsp + 0xd0], 2
je 0x18003835d
cmp qword [rsp + 0xd0], 3
je 0x180038427
jmp 0x180038449
movsx eax, word [rsp + 0x10]
add eax, 0xd1
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x30]
cwde
test eax, eax
jne 0x1800382e9
mov qword [rsp + 0x168], 1
jmp 0x1800382f5
mov qword [rsp + 0x168], 0
movsx eax, word [rsp + 0x10]
movzx ecx, byte [rsp]
movzx ecx, cl
add eax, ecx
movzx ecx, word [rsp + 4]
movzx ecx, cx
sub eax, ecx
cdqe
mov ecx, dword [rsp + 0x34]
imul rcx, qword [0x1800c36a8]
mov rdx, qword [rsp + 0x168]
imul rdx, rcx
mov rcx, rdx
sub rax, rcx
mov qword [0x1800c3670], rax
jmp 0x180038449
movzx eax, word [rsp + 0x24]
mov ecx, dword [0x1800c36c0]
sub ecx, eax
mov eax, ecx
mov ecx, dword [0x1800c36c0]
add ecx, eax
mov eax, ecx
mov dword [0x1800c36c0], eax
jmp 0x180038449
movzx eax, byte [rsp + 2]
movsx ecx, word [rsp + 0x10]
imul eax, ecx
mov dword [0x1800c35d4], eax
mov eax, dword [0x1800c35d4]
mov rcx, qword [0x1800c3668]
add rax, rcx
test rax, rax
jne 0x180038392
mov dword [rsp + 0x9c], 1
jmp 0x18003839d
mov dword [rsp + 0x9c], 0
movsx eax, byte [0x1800c35a5]
test eax, eax
jne 0x1800383b5
mov dword [rsp + 0xb8], 1
jmp 0x1800383c0
mov dword [rsp + 0xb8], 0
movsx eax, byte [rsp + 8]
movzx ecx, word [rsp + 0x28]
movsx ecx, cx
sub eax, ecx
add eax, dword [rsp + 0x9c]
cdqe
xor ecx, ecx
sub ecx, dword [rsp + 0xb8]
movsxd rcx, ecx
movzx edx, byte [str.not_a_stream]
add rdx, qword [rsp + 0xc8]
sub rcx, rdx
add rax, rcx
test rax, rax
jne 0x18003840c
mov qword [rsp + 0x170], 1
jmp 0x180038418
mov qword [rsp + 0x170], 0
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
jmp 0x180038449
mov rax, qword [0x1800c36b8]
sub rax, qword [0x1800c3688]
mov rcx, qword [0x1800c36b8]
sub rcx, rax
mov rax, rcx
mov qword [0x1800c36b8], rax
movzx eax, byte [rsp + 9]
movzx ecx, byte [rsp + 0x18]
sub eax, ecx
add rsp, 0x1d8
ret