Function at 0x180011460
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test rcx, rcx
je 0x18001204f
cmp qword [rcx + 0x30], 0
je 0x18001204f
cmp qword [rcx + 0x38], 0
je 0x18001204f
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x18001204f
cmp qword [rbx], rcx
jne 0x18001204f
mov r8d, dword [rbx + 8]
lea eax, [r8 - 0x2a]
cmp eax, 0x3d
ja 0x1800114c2
movabs rcx, 0x2002000088008001
bt rcx, rax
jb 0x1800114d5
cmp r8d, 0x71
je 0x1800114d5
cmp r8d, 0x29a
jne 0x18001204f
cmp edi, 5
ja 0x18001204f
cmp qword [rsi + 0x10], 0
je 0x180012044
cmp dword [rsi + 8], 0
je 0x1800114f9
cmp qword [rsi], 0
je 0x180012044
cmp r8d, 0x29a
jne 0x18001150b
cmp edi, 4
jne 0x180012044
cmp dword [rsi + 0x18], 0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
je 0x180011592
mov edx, dword [rbx + 0x40]
xor ebp, ebp
mov dword [rbx + 0x40], edi
cmp dword [rbx + 0x28], ebp
je 0x18001154e
mov rcx, rsi
call fcn.1800113f0
cmp dword [rsi + 0x18], ebp
je 0x180012036
mov r9d, dword [rbx + 8]
jmp 0x180011580
mov r9d, r8d
cmp dword [rsi + 8], ebp
jne 0x180011580
cmp edx, 4
mov r10d, 9
mov eax, ebp
mov ecx, ebp
cmovg eax, r10d
add edx, edx
sub edx, eax
lea eax, [rdi + rdi]
cmp edi, 4
cmovg ecx, r10d
sub eax, ecx
cmp eax, edx
jg 0x180011580
cmp edi, 4
jne 0x180011592
cmp r9d, 0x29a
jne 0x1800115c3
cmp dword [rsi + 8], ebp
je 0x1800116d6
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp r9d, 0x2a
jne 0x1800116d6
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x180011614
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x180011614
cmp eax, 6
jge 0x1800115fe
lea eax, [r9 + 0x16]
lea edx, [rax + 0x20]
jmp 0x18001161b
jne 0x18001160a
mov eax, pe_nt_image_headers64
lea edx, [rax + 0x20]
jmp 0x18001161b
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x18001161b
mov eax, ebp
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], ebp
je 0x18001162a
mov ecx, edx
or ecx, r8d
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
inc ecx
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
mov ecx, dword [rbx + 0x28]
inc ecx
mov dword [rbx + 0x28], ecx
cmp dword [rbx + 0x94], ebp
je 0x1800116b7
movzx r8d, word [rsi + 0x4e]
mov rax, qword [rbx + 0x10]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], 1
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.1800113f0
cmp dword [rbx + 0x28], ebp
jne 0x180012036
mov eax, dword [rbx + 8]
cmp eax, 0x39
jne 0x1800117be
mov dword [rsi + 0x4c], ebp
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
inc dword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x18001184d
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x180011777
mov dl, 2
jmp 0x18001178b
cmp dword [rbx + 0xb0], 2
jge 0x180011789
cmp eax, 2
jl 0x180011789
xor dl, dl
jmp 0x18001178b
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xa
mov rcx, rsi
inc dword [rbx + 0x28]
mov dword [rbx + 8], WSAStartup
call fcn.1800113f0
cmp dword [rbx + 0x28], ebp
jne 0x180012036
mov eax, dword [rbx + 8]
cmp eax, 0x45
jne 0x180011a8e
mov rcx, qword [rbx + 0x30]
cmp qword [rcx + 0x10], rbp
je 0x180011a85
mov edx, dword [rbx + 0x38]
movzx r13d, word [rcx + 0x18]
mov edi, dword [rbx + 0x28]
sub r13d, edx
mov r12d, dword [rbx + 0x18]
lea eax, [rdi + r13]
cmp eax, r12d
jbe 0x180011a2c
mov ecx, edi
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
sub r12d, ecx
mov edx, dword [rbx + 0x38]
add rcx, qword [rbx + 0x10]
mov r8d, r12d
add rdx, qword [rax + 0x10]
call fcn.1800a2a90
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x1800119b5
cmp ecx, edi
jbe 0x1800119b5
sub ecx, edi
mov edx, edi
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x1800119aa
mov eax, ebp
jmp 0x1800119b2
mov rax, qword [r8 + 0x30]
neg rax
mov eax, dword [r8 + 0x3c]
sbb dl, dl
and dl, 0x10
neg eax
mov rax, qword [r8 + 0x20]
sbb cl, cl
and cl, 2
add dl, cl
neg rax
mov rax, qword [r8 + 0x10]
sbb cl, cl
and cl, 8
add dl, cl
neg rax
sbb cl, cl
and cl, 4
add dl, cl
cmp dword [r8], ebp
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 4]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 5]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 6]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 7]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x1800118fd
mov dl, 2
jmp 0x180011911
cmp dword [rbx + 0xb0], 2
jge 0x18001190f
cmp eax, 2
jl 0x18001190f
xor dl, dl
jmp 0x180011911
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0xc]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
cmp qword [rax + 0x10], rbp
je 0x18001196b
movzx eax, byte [rax + 0x18]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0x19]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x18001199b
mov rdx, qword [rbx + 0x10]
mov r8d, ecx
test rdx, rdx
jne 0x180011990
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x45
jmp 0x1800117c7
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x45
jmp 0x1800117c7
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], r12d
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.1800166e0
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x180011a08
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.1800a2a90
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x180011a08
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x180012036
sub r13d, r12d
mov ecx, ebp
mov r12d, dword [rbx + 0x18]
mov edi, ebp
cmp r13d, r12d
ja 0x180011800
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
add rdx, qword [rcx + 0x10]
mov rcx, qword [rbx + 0x10]
mov r14d, edi
add rcx, r14
mov r8d, r13d
call fcn.1800a2a90
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
add ecx, r13d
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], ebp
je 0x180011a82
cmp ecx, edi
jbe 0x180011a82
mov rdx, qword [rbx + 0x10]
sub ecx, edi
mov r8d, ecx
add rdx, r14
jne 0x180011a77
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x180011a97
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x49
jmp 0x180011a97
cmp eax, 0x49
jne 0x180011bb5
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rbp
je 0x180011bac
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
nop dword [rax]
cmp r8d, dword [rbx + 0x18]
jne 0x180011b41
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x180011ae3
cmp r8d, r9d
jbe 0x180011ae3
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x180011ad8
mov eax, ebp
jmp 0x180011ae0
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.1800166e0
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x180011b32
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.1800a2a90
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x180011b32
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x180012036
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx edx, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x180011ab0
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x180011ba9
cmp r8d, r9d
jbe 0x180011ba9
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x180011b9e
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x5b
jmp 0x180011bbe
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], ebp
mov dword [rbx + 8], 0x5b
jmp 0x180011bbe
cmp eax, 0x5b
jne 0x180011cda
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rbp
je 0x180011ccd
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x180011c64
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x180011c06
cmp r8d, r9d
jbe 0x180011c06
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x180011bfb
mov eax, ebp
jmp 0x180011c03
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.1800166e0
mov r15d, dword [rsi + 0x18]
cmp dword [r14 + 0x28], r15d
cmovbe r15d, dword [r14 + 0x28]
test r15d, r15d
je 0x180011c55
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov edi, r15d
call fcn.1800a2a90
add qword [rsi + 0x10], rdi
add qword [r14 + 0x20], rdi
add dword [rsi + 0x1c], r15d
sub dword [rsi + 0x18], r15d
sub dword [r14 + 0x28], r15d
jne 0x180011c55
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [rbx + 0x28], ebp
jne 0x180012036
mov r9d, ebp
mov r8d, ebp
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx edx, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x180011bd3
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x180011ccd
cmp r8d, r9d
jbe 0x180011ccd
sub r8d, r9d
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x180011cc2
mov edi, dword [rsp + 0x58]
mov eax, ebp
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
jmp 0x180011cdf
mov ecx, dword [rsi + 0x4c]
call fcn.18000f120
mov dword [rsi + 0x4c], eax
mov edi, dword [rsp + 0x58]
mov dword [rbx + 8], 0x67
jmp 0x180011cdf
cmp eax, 0x67
jne 0x180011d42
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], ebp
je 0x180011d2a
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbx + 0x18]
jbe 0x180011d06
mov rcx, rsi
call fcn.1800113f0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x180012036
movzx eax, byte [rsi + 0x4c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], ebp
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.1800113f0
cmp dword [rbx + 0x28], ebp
jne 0x180012036
cmp dword [rsi + 8], ebp
jne 0x180011d64
cmp dword [rbx + 0x9c], ebp
jne 0x180011d64
test edi, edi
je 0x18001203d
cmp dword [rbx + 8], 0x29a
je 0x180011f1b
movsxd rcx, dword [rbx + 0xac]
mov edx, edi
test ecx, ecx
jne 0x180011d7b
mov rcx, rbx
call fcn.180012620
jmp 0x180011db3
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x180011d90
mov rcx, rbx
call fcn.180013be0
jmp 0x180011db3
cmp eax, 3
jne 0x180011d9f
mov rcx, rbx
call fcn.180013750
jmp 0x180011db3
mov rax, rcx
lea r8, fcn.180012620
add rax, rax
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
ja 0x180011dc4
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x180012031
cmp ecx, 1
jne 0x180011f1b
cmp edi, ecx
jne 0x180011eb4
mov ecx, dword [rbx + 0x1714]
mov r8d, 2
mov edx, r8d
shl dx, cl
or dx, word [rbx + 0x1710]
cmp ecx, 0xd
jle 0x180011e4c
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov word [rbx + 0x1710], dx
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rbx + 0x1711]
mov byte [rdx + rcx], al
mov eax, reloc.WS2_32.dll_recv
movzx ecx, word [rbx + 0x1714]
add dword [rbx + 0x1714], 0xfffffff3
sub al, cl
inc dword [rbx + 0x28]
movzx ecx, al
mov r9d, dword [rbx + 0x1714]
shr r8w, cl
jmp 0x180011e5b
lea r9d, [rcx + 3]
movzx r8d, dx
mov dword [rbx + 0x1714], r9d
mov word [rbx + 0x1710], r8w
cmp r9d, 9
jle 0x180011e98
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
movzx r8d, bp
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rbx + 0x1711]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
add dword [rbx + 0x1714], 0xfffffff7
jmp 0x180011ea2
lea eax, [r9 + 7]
mov dword [rbx + 0x1714], eax
mov rcx, rbx
mov word [rbx + 0x1710], r8w
call fcn.1800166e0
jmp 0x180011f0a
cmp edi, 5
je 0x180011f0a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180015d80
cmp edi, 3
jne 0x180011f0a
mov ecx, dword [rbx + 0x74]
xor edx, edx
mov rax, qword [rbx + 0x68]
dec ecx
mov word [rax + rcx*2], bp
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
dec r8d
add r8, r8
call fcn.1800a3140
cmp dword [rbx + 0x9c], ebp
jne 0x180011f0a
mov dword [rbx + 0x94], ebp
mov dword [rbx + 0x84], ebp
mov dword [rbx + 0x170c], ebp
mov rcx, rsi
call fcn.1800113f0
cmp dword [rsi + 0x18], ebp
je 0x180012036
cmp edi, 4
jne 0x18001203d
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jg 0x180011f33
lea eax, [rdi - 3]
jmp 0x1800115a2
cmp ecx, 2
jne 0x180011fc3
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x18001200c
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
mov rcx, rsi
call fcn.1800113f0
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x180012023
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], ebp
sete bpl
mov eax, ebp
jmp 0x1800115a2
cmp dword [rsi + 0x18], ebp
jne 0x18001203d
mov dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x1800115a2
lea rax, str.stream_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret