Function at 0x140058aac
Capabilities:
Compress data via zlib inflate or deflate
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
xor ebx, ebx
mov r12, rcx
test rcx, rcx
je 0x140058b8e
mov rdi, qword [rcx + 0x28]
test rdi, rdi
je 0x140058b8e
mov r15, qword [rcx + 0x10]
mov qword [rbp - 0x18], r15
test r15, r15
je 0x140058b8e
mov r11, qword [rcx]
mov qword [rbp - 0x20], r11
test r11, r11
jne 0x140058b04
cmp dword [rcx + 8], ebx
jne 0x140058b8e
cmp dword [rdi], 0xb
jne 0x140058b0f
mov dword [rdi], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r10d, dword [rcx + 0x18]
mov r9d, r10d
mov r13d, dword [rcx + 8]
mov dword [rbp - 0x24], r13d
mov dword [rbp + 0x58], r10d
mov dword [rbp + 0x50], ebx
mov esi, dword [rdi + 0x44]
mov r14d, dword [rdi + 0x40]
mov dword [rbp + 0x48], r10d
mov eax, 7
mov edx, dword [rdi]
cmp edx, 0xf
jg 0x140059578
je 0x14005947c
cmp edx, eax
jg 0x1400591b4
je 0x140058fa3
test edx, edx
je 0x14005900d
sub edx, 1
je 0x140058c9a
sub edx, 1
je 0x140058c0d
sub edx, 1
je 0x140058ba4
sub edx, 1
je 0x140058d58
sub edx, 1
je 0x140058d82
cmp edx, 1
je 0x140058eac
mov eax, 0xfffffffe
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r15d, reloc.WSOCK32.dll_recv
mov qword [rbp - 0x20], r11
cmp esi, r15d
jb 0x140058c78
mov rdx, qword [rdi + 0x20]
mov ecx, r14d
shr ecx, 8
test rdx, rdx
je 0x140058bd4
movzx eax, r14b
mov dword [rdx + 8], eax
mov rax, qword [rdi + 0x20]
mov dword [rax + 0xc], ecx
test dword [rdi + 0x10], 0x200
je 0x140058bfd
mov byte [rbp + 0x61], cl
lea rdx, [rbp + 0x60]
mov ecx, dword [rdi + 0x18]
mov r8d, 2
mov byte [rbp + 0x60], r14b
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], eax
mov r14d, ebx
mov dword [rdi], 4
mov esi, ebx
jmp 0x140058d5e
mov qword [rbp - 0x20], r11
cmp esi, 0x20
jb 0x140058d36
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058c27
mov dword [rax + 4], r14d
test dword [rdi + 0x10], 0x200
je 0x140058c67
mov ecx, dword [rdi + 0x18]
lea rdx, [rbp + 0x60]
mov eax, r14d
mov byte [rbp + 0x60], r14b
shr eax, 8
mov r8d, 4
mov byte [rbp + 0x61], al
mov eax, r14d
shr eax, 0x10
shr r14d, 0x18
mov byte [rbp + 0x62], al
mov byte [rbp + 0x63], r14b
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], eax
mov r14d, ebx
mov dword [rdi], 3
mov esi, ebx
mov r15d, reloc.WSOCK32.dll_recv
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
dec r13d
add r14d, eax
inc r11
add esi, 8
jmp 0x140058baa
mov edx, reloc.WSOCK32.dll_recv
jmp 0x140058cc2
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, edx
jb 0x140058ca1
mov dword [rdi + 0x10], r14d
cmp r14b, 8
jne 0x1400590e0
test r14d, 0xe000
je 0x140058ce9
lea rax, str.unknown_header_flags_set
jmp 0x140059e81
mov rdx, qword [rdi + 0x20]
mov ecx, r14d
shr ecx, 8
mov eax, r14d
test rdx, rdx
je 0x140058d05
mov eax, ecx
and eax, 1
mov dword [rdx], eax
mov eax, dword [rdi + 0x10]
bt eax, 9
jae 0x140058d2b
mov byte [rbp + 0x61], cl
lea rdx, [rbp + 0x60]
mov ecx, dword [rdi + 0x18]
mov r8d, 2
mov byte [rbp + 0x60], r14b
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], eax
mov r14d, ebx
mov dword [rdi], 2
mov esi, ebx
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
dec r13d
add r14d, eax
inc r11
add esi, 8
jmp 0x140058c0d
mov r15d, reloc.WSOCK32.dll_recv
test dword [rdi + 0x10], 0x400
jne 0x140058df9
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058d78
mov qword [rax + 0x10], rbx
mov r11, qword [rbp - 0x20]
mov dword [rdi], 5
mov ecx, dword [rdi + 0x10]
bt ecx, 0xa
jae 0x140058ea3
mov eax, dword [rdi + 0x48]
mov ebx, r13d
cmp eax, r13d
cmovbe ebx, eax
xor r10d, r10d
test ebx, ebx
je 0x140058e99
mov r8, qword [rdi + 0x20]
mov r15d, eax
test r8, r8
je 0x140058e5f
mov r9, qword [r8 + 0x10]
test r9, r9
je 0x140058e5f
mov edx, dword [r8 + 0x18]
mov ecx, dword [r8 + 0x1c]
sub edx, eax
lea eax, [rbx + rdx]
cmp eax, ecx
jbe 0x140058e43
sub ecx, edx
jmp 0x140058e45
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, r15d
jb 0x140058dd8
mov rax, qword [rdi + 0x20]
mov dword [rdi + 0x48], r14d
test rax, rax
je 0x140058e0f
mov dword [rax + 0x18], r14d
test dword [rdi + 0x10], 0x200
je 0x140058e39
mov ecx, dword [rdi + 0x18]
lea rdx, [rbp + 0x60]
mov byte [rbp + 0x60], r14b
mov r8d, 2
shr r14d, 8
mov byte [rbp + 0x61], r14b
call fcn.140058494
mov dword [rdi + 0x18], eax
mov r14d, ebx
mov esi, ebx
jmp 0x140058d78
mov ecx, ebx
mov r8d, ecx
mov ecx, edx
mov rdx, r11
add rcx, r9
call fcn.140013b70
mov ecx, dword [rdi + 0x10]
xor r10d, r10d
mov r15d, dword [rdi + 0x48]
bt ecx, 9
jae 0x140058e81
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x140058e73
mov eax, r10d
jmp 0x140058e7e
mov ecx, dword [rdi + 0x18]
mov r8d, ebx
call fcn.140058494
mov dword [rdi + 0x18], eax
mov r11, qword [rbp - 0x20]
sub r13d, ebx
mov eax, ebx
add r11, rax
mov eax, r15d
sub eax, ebx
mov qword [rbp - 0x20], r11
mov dword [rdi + 0x48], eax
xor ebx, ebx
test eax, eax
jne 0x140058f2f
mov dword [rdi + 0x48], ebx
mov dword [rdi], 6
test dword [rdi + 0x10], 0x800
je 0x140058f8d
test r13d, r13d
je 0x140058f2f
xor r8d, r8d
mov eax, ebx
inc ebx
mov r15b, byte [rax + r11]
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058eea
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x140058eea
mov ecx, dword [rdi + 0x48]
cmp ecx, dword [rax + 0x28]
jae 0x140058eea
mov byte [rcx + rdx], r15b
inc dword [rdi + 0x48]
test r15b, r15b
je 0x140058ef4
cmp ebx, r13d
jb 0x140058ec1
test dword [rdi + 0x10], 0x200
je 0x140058f1c
test r11, r11
jne 0x140058f07
mov eax, r8d
jmp 0x140058f19
mov ecx, dword [rdi + 0x18]
mov r8d, ebx
mov rdx, r11
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], eax
mov eax, ebx
sub r13d, ebx
add r11, rax
xor ebx, ebx
mov qword [rbp - 0x20], r11
test r15b, r15b
je 0x140058f9a
mov r15d, dword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
cmp dword [rdi + 0x2c], ebx
mov ebx, dword [rbp + 0x58]
mov qword [r12 + 0x10], rax
mov eax, dword [rbp + 0x48]
mov dword [r12 + 0x18], eax
mov qword [r12], r11
mov dword [r12 + 8], r13d
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x44], esi
jne 0x140058f6d
cmp dword [rdi], 0x18
jge 0x140059ed6
cmp ebx, eax
je 0x140059ed6
mov edx, ebx
mov rcx, r12
call fcn.1400587b4
xor r8d, r8d
test eax, eax
je 0x140059ed9
mov dword [rdi], 0x1c
jmp 0x140059d5d
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058f9a
mov qword [rax + 0x20], rbx
mov dword [rdi + 0x48], ebx
mov dword [rdi], 7
test dword [rdi + 0x10], 0x1000
je 0x14005917d
test r13d, r13d
je 0x140058f2f
xor r8d, r8d
mov eax, ebx
inc ebx
mov r15b, byte [rax + r11]
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058fe5
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x140058fe5
mov ecx, dword [rdi + 0x48]
cmp ecx, dword [rax + 0x38]
jae 0x140058fe5
mov byte [rcx + rdx], r15b
inc dword [rdi + 0x48]
test r15b, r15b
je 0x140058fef
cmp ebx, r13d
jb 0x140058fbc
test dword [rdi + 0x10], 0x200
je 0x140059164
test r11, r11
jne 0x14005914f
mov eax, r8d
jmp 0x140059161
mov edx, dword [rdi + 8]
test edx, edx
jne 0x14005901f
mov dword [rdi], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140058b30
mov r8d, reloc.WSOCK32.dll_recv
jmp 0x140059048
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, r8d
jb 0x140059027
test dl, 2
je 0x140059093
cmp r14d, 0x8b1f
jne 0x140059093
mov r8d, 2
mov dword [rdi + 0x18], ebx
lea rdx, [rbp + 0x60]
mov word [rbp + 0x60], r14w
xor ecx, ecx
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov r14d, ebx
mov dword [rdi + 0x18], eax
mov esi, ebx
mov dword [rdi], 1
mov r9d, dword [rbp + 0x58]
mov r10d, dword [rbp + 0x48]
jmp 0x140058b30
mov rax, qword [rdi + 0x20]
mov dword [rdi + 0x10], ebx
test rax, rax
je 0x1400590a6
or dword [rax + 0x40], 0xffffffff
mov edx, dword [rdi + 8]
test dl, 1
je 0x140059143
movzx ecx, r14b
mov eax, r14d
shr eax, 8
shl ecx, 8
add ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1f
cmp ecx, eax
jne 0x140059143
mov eax, r14d
and al, 0xf
cmp al, 8
je 0x1400590ec
lea rax, str.unknown_compression_method
jmp 0x140059e81
shr r14d, 4
add esi, 0xfffffffc
mov ecx, r14d
and ecx, 0xf
add ecx, 8
cmp ecx, dword [rdi + 0x28]
jbe 0x14005910d
lea rax, str.invalid_window_size
jmp 0x140059e81
shr r14d, 8
mov eax, 1
not r14d
shl eax, cl
and r14d, 2
mov dword [rdi + 0x14], eax
or r14d, 9
mov dword [rdi + 0x18], 1
mov dword [rdi], r14d
mov esi, ebx
mov r14d, ebx
mov dword [r12 + 0x4c], 1
jmp 0x140058b30
lea rax, str.incorrect_header_check
jmp 0x140059e81
mov ecx, dword [rdi + 0x18]
mov r8d, ebx
mov rdx, r11
call fcn.140058494
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], eax
mov eax, ebx
sub r13d, ebx
add r11, rax
xor ebx, ebx
mov qword [rbp - 0x20], r11
test r15b, r15b
jne 0x140058f2f
jmp 0x14005918a
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x14005918a
mov qword [rax + 0x30], rbx
mov r9d, dword [rbp + 0x58]
mov r10d, dword [rbp + 0x48]
mov r15, qword [rbp - 0x18]
mov dword [rdi], 8
mov edx, dword [rdi + 0x10]
bt edx, 9
jae 0x14005942b
mov r8d, reloc.WSOCK32.dll_recv
jmp 0x14005940c
sub edx, 8
je 0x14005919c
sub edx, 1
je 0x1400592cd
sub edx, 1
je 0x14005930b
sub edx, 1
je 0x14005932a
sub edx, 1
je 0x14005932a
sub edx, 1
je 0x1400591ed
cmp edx, 1
jne 0x140058b8e
jmp 0x140059249
mov ecx, esi
and ecx, 7
shr r14d, cl
sub esi, ecx
jmp 0x14005921a
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 0x20
jb 0x1400591f9
mov eax, r14d
movzx ecx, r14w
not eax
shr eax, 0x10
cmp ecx, eax
je 0x14005923b
lea rax, str.invalid_stored_block_lengths
jmp 0x140059e81
mov dword [rdi + 0x48], ecx
mov r14d, ebx
mov esi, ebx
mov dword [rdi], reloc.WSOCK32.dll_ntohl
mov eax, dword [rdi + 0x48]
test eax, eax
je 0x140059450
cmp eax, r13d
mov r15d, r13d
cmovbe r15d, eax
cmp r15d, r10d
cmova r15d, r10d
test r15d, r15d
je 0x140058f2f
mov rcx, qword [rbp - 0x18]
mov rdx, r11
mov r8d, r15d
mov ebx, r15d
call fcn.140013b70
mov r11, qword [rbp - 0x20]
sub r13d, r15d
add qword [rbp - 0x18], rbx
add r11, rbx
sub dword [rdi + 0x48], r15d
mov r10d, dword [rbp + 0x48]
mov r9d, dword [rbp + 0x58]
sub r10d, r15d
mov r15, qword [rbp - 0x18]
xor ebx, ebx
mov qword [rbp - 0x20], r11
jmp 0x140058b2c
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 0x20
jb 0x1400592ac
mov ecx, r14d
mov dword [rdi], 0xa
mov eax, r14d
mov edx, 0xff00
shl eax, 0x10
and ecx, edx
add ecx, eax
mov esi, ebx
mov eax, r14d
shl ecx, 8
shr eax, 8
and eax, edx
shr r14d, 0x18
add eax, ecx
add eax, r14d
mov r14d, ebx
mov dword [rdi + 0x18], eax
mov dword [r12 + 0x4c], eax
cmp dword [rdi + 0xc], ebx
je 0x140059e91
mov dword [rdi + 0x18], 1
mov dword [r12 + 0x4c], 1
mov dword [rdi], recv
cmp dword [rdi + 4], ebx
je 0x140059369
mov ecx, esi
mov dword [rdi], 0x18
mov eax, 7
and ecx, eax
shr r14d, cl
sub esi, ecx
jmp 0x140058b35
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 3
jb 0x140059348
mov eax, r14d
shr r14d, 1
and eax, 1
mov dword [rdi + 4], eax
mov eax, r14d
and eax, 3
je 0x1400593d9
sub eax, 1
je 0x1400593ad
sub eax, 1
je 0x1400593a5
cmp eax, 1
jne 0x1400593df
lea rax, str.invalid_block_type
mov dword [rdi], 0x1b
mov qword [r12 + 0x20], rax
jmp 0x1400593df
mov dword [rdi], send
jmp 0x1400593df
lea rax, [0x14007b4c0]
mov dword [rdi + 0x68], 9
mov qword [rdi + 0x58], rax
lea rax, [0x14007bcc0]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x6c], 5
mov dword [rdi], reloc.WSOCK32.dll_select
jmp 0x1400593df
mov dword [rdi], recv
shr r14d, 2
add esi, 0xfffffffd
jmp 0x140058b30
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, r8d
jb 0x1400593eb
movzx eax, word [rdi + 0x18]
cmp r14d, eax
je 0x140059426
lea rax, str.header_crc_mismatch
jmp 0x140059e81
mov r14d, ebx
mov esi, ebx
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140059448
sar edx, 9
and edx, 1
mov dword [rax + 0x3c], edx
mov rax, qword [rdi + 0x20]
mov dword [rax + 0x40], 1
mov dword [rdi + 0x18], ebx
mov dword [r12 + 0x4c], ebx
mov dword [rdi], recv
jmp 0x140058b30
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 0xe
jb 0x14005945b
mov ecx, r14d
add esi, 0xfffffff2
shr r14d, 5
and ecx, 0x1f
mov edx, r14d
add ecx, 0x101
shr r14d, 5
and edx, 0x1f
mov eax, r14d
mov dword [rdi + 0x74], ecx
and eax, 0xf
shr r14d, 4
add eax, 4
inc edx
mov dword [rdi + 0x78], edx
mov dword [rdi + 0x70], eax
cmp ecx, 0x11e
ja 0x14005956c
cmp edx, 0x1e
ja 0x14005956c
mov eax, reloc.WSOCK32.dll_recv
mov dword [rdi + 0x7c], ebx
mov dword [rdi], eax
mov edx, 7
lea r8, [0x14007bd40]
mov eax, dword [rdi + 0x7c]
cmp eax, dword [rdi + 0x70]
jb 0x1400595ee
cmp eax, 0x13
jae 0x14005950b
mov eax, dword [rdi + 0x7c]
movzx ecx, word [r8 + rax*2]
mov word [rdi + rcx*2 + 0x88], bx
inc dword [rdi + 0x7c]
cmp dword [rdi + 0x7c], 0x13
jb 0x1400594f2
lea rcx, [rdi + 0x68]
lea rax, [rdi + 0x548]
mov dword [rcx], edx
lea r9, [rdi + 0x80]
mov qword [rdi + 0x58], rax
mov qword [r9], rax
lea rdx, [rdi + 0x88]
lea rax, [rdi + 0x308]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea r8d, [rcx + 0x13]
call fcn.14005bf2c
mov r11, qword [rbp - 0x20]
mov r10d, dword [rbp + 0x48]
mov dword [rbp + 0x50], eax
test eax, eax
je 0x140059619
lea rax, str.invalid_code_lengths_set
mov r9d, dword [rbp + 0x58]
jmp 0x140059e81
lea rax, str.too_many_length_or_distance_symbols
jmp 0x140059e81
cmp edx, 0x17
jg 0x140059d34
je 0x140059d10
mov ecx, edx
sub ecx, 0x10
je 0x1400594d5
sub ecx, 1
je 0x140059625
sub ecx, 1
je 0x140059938
sub ecx, 1
je 0x140059ac2
sub ecx, 1
je 0x140059b0c
sub ecx, 1
je 0x140059c1f
cmp ecx, 1
jne 0x140058b8e
jmp 0x140059c83
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 3
jb 0x1400595cd
mov eax, dword [rdi + 0x7c]
movzx ecx, r14w
and cx, dx
shr r14d, 3
movzx eax, word [r8 + rax*2]
mov word [rdi + rax*2 + 0x88], cx
inc dword [rdi + 0x7c]
add esi, 0xfffffffd
jmp 0x1400594e1
mov eax, send
mov dword [rdi + 0x7c], ebx
mov dword [rdi], eax
mov edx, eax
mov ecx, dword [rdi + 0x78]
mov r8d, dword [rdi + 0x74]
add ecx, r8d
cmp dword [rdi + 0x7c], ecx
jae 0x14005984f
mov ecx, dword [rdi + 0x68]
mov edx, 1
mov r8, qword [rdi + 0x58]
shl edx, cl
dec edx
mov eax, r14d
mov ecx, edx
and rcx, rax
mov eax, dword [r8 + rcx*4]
mov ecx, eax
shr ecx, 8
or r9d, 0xffffffff
movzx ecx, cl
mov dword [rbp - 0x28], eax
cmp ecx, esi
jbe 0x14005969b
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
mov eax, edx
add r13d, r9d
mov ecx, r14d
add esi, 8
and rcx, rax
mov eax, dword [r8 + rcx*4]
mov ecx, eax
shr ecx, 8
jmp 0x14005965d
mov ecx, eax
mov edx, reloc.WSOCK32.dll_recv
shr ecx, 0x10
cmp cx, dx
jae 0x1400596fb
shr eax, 8
movzx edx, al
jmp 0x1400596d3
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
add r13d, r9d
add esi, 8
cmp esi, edx
jb 0x1400596b2
movzx ecx, byte [rbp - 0x27]
movzx eax, word [rbp - 0x26]
sub esi, ecx
shr r14d, cl
mov ecx, dword [rdi + 0x7c]
mov word [rdi + rcx*2 + 0x88], ax
inc dword [rdi + 0x7c]
mov r9d, dword [rdi + 0x7c]
jmp 0x14005983a
cmp word [rbp - 0x26], dx
jne 0x140059763
movzx edx, byte [rbp - 0x27]
lea r8d, [rdx + 2]
jmp 0x14005972c
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
add r13d, r9d
add esi, 8
cmp esi, r8d
jb 0x14005970b
mov eax, dword [rdi + 0x7c]
mov ecx, edx
shr r14d, cl
sub esi, edx
test eax, eax
je 0x1400598ca
mov edx, r14d
add esi, 0xfffffffe
and edx, 3
shr r14d, 2
add edx, 3
dec eax
movzx r8d, word [rdi + rax*2 + 0x88]
jmp 0x14005980a
movzx r8d, byte [rbp - 0x27]
mov eax, send
cmp word [rbp - 0x26], ax
jne 0x1400597be
lea edx, [r8 + 3]
jmp 0x14005979a
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
add r13d, r9d
add esi, 8
cmp esi, edx
jb 0x140059779
mov ecx, r8d
mov eax, 0xfffffffd
shr r14d, cl
mov edx, r14d
shr r14d, 3
and edx, 7
add edx, 3
sub eax, r8d
mov r8d, ebx
jmp 0x140059808
lea edx, [r8 + 7]
jmp 0x1400597e5
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
add r13d, r9d
add esi, 8
cmp esi, edx
jb 0x1400597c4
mov ecx, r8d
mov eax, 0xfffffff9
shr r14d, cl
mov edx, r14d
shr r14d, 7
and edx, 0x7f
add edx, 0xb
sub eax, r8d
movzx r8d, bx
add esi, eax
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rdi + 0x78]
add ecx, edx
add eax, dword [rdi + 0x74]
cmp ecx, eax
ja 0x1400598ca
mov eax, dword [rdi + 0x7c]
mov word [rdi + rax*2 + 0x88], r8w
mov r9d, dword [rdi + 0x7c]
lea r9d, [r9 + 1]
mov dword [rdi + 0x7c], r9d
add edx, 0xffffffff
jne 0x14005981d
mov ecx, dword [rdi + 0x78]
mov r8d, dword [rdi + 0x74]
add ecx, r8d
cmp r9d, ecx
jb 0x140059638
mov edx, dword [rdi]
mov r9d, dword [rbp + 0x58]
mov eax, 7
cmp edx, 0x1b
je 0x140058b35
lea rax, [rdi + 0x548]
mov ecx, 1
lea rbx, [rdi + 0x80]
mov qword [rdi + 0x58], rax
mov qword [rbx], rax
lea r15, [rdi + 0x308]
lea rax, [rdi + 0x68]
mov qword [rsp + 0x28], r15
lea rdx, [rdi + 0x88]
mov dword [rax], 9
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.14005bf2c
mov dword [rbp + 0x50], eax
test eax, eax
je 0x1400598d6
mov r11, qword [rbp - 0x20]
lea rax, str.invalid_literal_lengths_set
mov r9d, dword [rbp + 0x58]
xor ebx, ebx
mov r10d, dword [rbp + 0x48]
mov r15, qword [rbp - 0x18]
jmp 0x140059e81
lea rax, str.invalid_bit_length_repeat
jmp 0x140059563
mov rax, qword [rbx]
lea rcx, [rdi + 0x6c]
mov r8d, dword [rdi + 0x78]
mov r9, rbx
mov qword [rdi + 0x60], rax
mov eax, dword [rdi + 0x74]
add rax, 0x44
mov dword [rcx], 6
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
mov ecx, 2
lea rdx, [rdi + rax*2]
call fcn.14005bf2c
mov r11, qword [rbp - 0x20]
xor ebx, ebx
mov r9d, dword [rbp + 0x58]
mov r10d, dword [rbp + 0x48]
mov r15, qword [rbp - 0x18]
mov dword [rbp + 0x50], eax
test eax, eax
je 0x140059932
lea rax, str.invalid_distances_set
jmp 0x140059e81
mov dword [rdi], reloc.WSOCK32.dll_select
cmp r13d, 6
jb 0x140059990
cmp r10d, 0x102
jb 0x140059990
mov edx, r9d
mov qword [r12 + 0x10], r15
mov rcx, r12
mov dword [r12 + 0x18], r10d
mov qword [r12], r11
mov dword [r12 + 8], r13d
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x44], esi
call fcn.14005c370
mov r11, qword [r12]
mov r15, qword [r12 + 0x10]
mov r10d, dword [r12 + 0x18]
mov r13d, dword [r12 + 8]
mov r9d, dword [rbp + 0x58]
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r15
jmp 0x140058b25
mov ecx, dword [rdi + 0x68]
mov edx, 1
mov r10, qword [rdi + 0x58]
shl edx, cl
dec edx
mov eax, r14d
mov ecx, edx
jmp 0x1400599cd
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
mov ecx, r14d
add esi, 8
mov eax, edx
and rcx, rax
mov eax, dword [r10 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x1400599a7
test al, al
je 0x140059a68
test al, 0xf0
jne 0x140059a68
mov ecx, eax
mov dword [rbp - 0x28], eax
shr ecx, 8
mov edx, eax
movzx r9d, cl
movzx ecx, al
shr eax, 0x10
jmp 0x140059a2f
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
movzx r9d, byte [rbp - 0x27]
inc r11
shl eax, cl
dec r13d
add r14d, eax
mov qword [rbp - 0x20], r11
movzx eax, word [rbp - 0x26]
add esi, 8
movzx ecx, dl
add ecx, r9d
mov r8d, 1
shl r8d, cl
mov ecx, r9d
dec r8d
and r8d, r14d
shr r8d, cl
add r8d, eax
mov eax, dword [r10 + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, esi
ja 0x140059a02
movzx ecx, byte [rbp - 0x27]
shr r14d, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr r14d, cl
sub esi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [rdi + 0x48], ecx
test al, al
jne 0x140059a8c
mov dword [rdi], reloc.WSOCK32.dll_socket
jmp 0x140059086
test al, 0x20
je 0x140059a9b
mov dword [rdi], recv
jmp 0x140059086
test al, 0x40
je 0x140059ab3
mov r9d, dword [rbp + 0x58]
lea rax, str.invalid_literal_length_code
mov r10d, dword [rbp + 0x48]
jmp 0x140059e81
movzx ecx, al
and ecx, 0xf
mov dword [rdi], reloc.WSOCK32.dll_send
mov dword [rdi + 0x50], ecx
mov edx, dword [rdi + 0x50]
test edx, edx
je 0x140059b06
jmp 0x140059aec
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, edx
jb 0x140059acb
mov ecx, edx
mov eax, 1
shl eax, cl
dec eax
and eax, r14d
shr r14d, cl
add dword [rdi + 0x48], eax
sub esi, edx
mov dword [rdi], socket
mov ecx, dword [rdi + 0x6c]
mov edx, 1
mov r10, qword [rdi + 0x60]
shl edx, cl
dec edx
mov eax, r14d
mov ecx, edx
and rcx, rax
mov eax, dword [r10 + rcx*4]
jmp 0x140059b57
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
mov ecx, r14d
dec r13d
add esi, 8
mov eax, edx
and rax, rcx
mov eax, dword [r10 + rax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x140059b2a
test al, 0xf0
jne 0x140059be3
mov ecx, eax
mov dword [rbp - 0x28], eax
shr ecx, 8
mov edx, eax
movzx r9d, cl
movzx ecx, al
shr eax, 0x10
jmp 0x140059baa
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
movzx r9d, byte [rbp - 0x27]
inc r11
shl eax, cl
dec r13d
add r14d, eax
mov qword [rbp - 0x20], r11
movzx eax, word [rbp - 0x26]
add esi, 8
movzx ecx, dl
add ecx, r9d
mov r8d, 1
shl r8d, cl
mov ecx, r9d
dec r8d
and r8d, r14d
shr r8d, cl
add r8d, eax
mov eax, dword [r10 + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, esi
ja 0x140059b7d
movzx ecx, byte [rbp - 0x27]
shr r14d, cl
sub esi, ecx
mov r9d, dword [rbp + 0x58]
mov ecx, eax
mov r10d, dword [rbp + 0x48]
shr ecx, 8
movzx ecx, cl
shr r14d, cl
sub esi, ecx
test al, 0x40
je 0x140059c08
lea rax, str.invalid_distance_code
jmp 0x140059e81
mov ecx, eax
mov dword [rdi], socket
shr ecx, 0x10
mov dword [rdi + 0x4c], ecx
movzx ecx, al
and ecx, 0xf
mov dword [rdi + 0x50], ecx
mov edx, dword [rdi + 0x50]
test edx, edx
je 0x140059c63
jmp 0x140059c49
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, edx
jb 0x140059c28
mov ecx, edx
mov eax, 1
shl eax, cl
dec eax
and eax, r14d
shr r14d, cl
add dword [rdi + 0x4c], eax
sub esi, edx
mov eax, dword [rdi + 0x30]
sub eax, r10d
add eax, r9d
cmp dword [rdi + 0x4c], eax
jbe 0x140059c7d
lea rax, str.invalid_distance_too_far_back
jmp 0x140059e81
mov dword [rdi], socket
test r10d, r10d
je 0x140058f2f
mov ecx, dword [rdi + 0x4c]
mov eax, r9d
sub eax, r10d
cmp ecx, eax
jbe 0x140059cc1
sub ecx, eax
mov eax, dword [rdi + 0x34]
cmp ecx, eax
jbe 0x140059cab
mov edx, dword [rdi + 0x2c]
sub ecx, eax
sub edx, ecx
jmp 0x140059caf
sub eax, ecx
mov edx, eax
mov eax, dword [rdi + 0x48]
mov r8d, eax
add rdx, qword [rdi + 0x38]
cmp ecx, eax
cmovbe r8d, ecx
jmp 0x140059ccd
mov eax, dword [rdi + 0x48]
mov rdx, r15
sub rdx, rcx
mov r8d, eax
cmp r8d, r10d
cmova r8d, r10d
sub r10d, r8d
sub eax, r8d
mov dword [rbp + 0x48], r10d
sub rdx, r15
mov dword [rdi + 0x48], eax
mov al, byte [rdx + r15]
mov byte [r15], al
inc r15
add r8d, 0xffffffff
jne 0x140059ce4
lea eax, [r8 + 7]
mov qword [rbp - 0x18], r15
cmp dword [rdi + 0x48], ebx
jne 0x140058b35
mov dword [rdi], reloc.WSOCK32.dll_select
jmp 0x140058b35
test r10d, r10d
je 0x140058f2f
mov al, byte [rdi + 0x48]
mov byte [r15], al
inc r15
mov qword [rbp - 0x18], r15
dec r10d
mov dword [rdi], reloc.WSOCK32.dll_select
jmp 0x140058b2c
sub edx, 0x18
je 0x140059d67
sub edx, 1
je 0x140059e42
sub edx, 1
je 0x140059ecb
sub edx, 1
je 0x140059eb5
cmp edx, 1
jne 0x140058b8e
mov eax, 0xfffffffc
jmp 0x140058b93
cmp dword [rdi + 8], ebx
je 0x140059e3c
jmp 0x140059d93
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 0x20
jb 0x140059d72
mov ebx, dword [rdi + 0x10]
sub r9d, r10d
add dword [r12 + 0x1c], r9d
xor r8d, r8d
add dword [rdi + 0x1c], r9d
test r9d, r9d
je 0x140059def
mov ecx, dword [rdi + 0x18]
mov rdx, r15
mov eax, r9d
sub rdx, rax
test ebx, ebx
je 0x140059dd3
test rdx, rdx
jne 0x140059dc9
mov edx, r8d
jmp 0x140059de5
mov r8d, r9d
call fcn.140058494
jmp 0x140059ddb
mov r8d, r9d
call fcn.14005bc40
mov r10d, dword [rbp + 0x48]
mov edx, eax
mov r11, qword [rbp - 0x20]
mov dword [rdi + 0x18], edx
mov dword [r12 + 0x4c], edx
jmp 0x140059df2
mov edx, dword [rdi + 0x18]
mov ecx, r14d
mov dword [rbp + 0x58], r10d
and ecx, 0xff00
mov eax, r14d
shl eax, 0x10
mov r9d, r10d
add ecx, eax
mov eax, r14d
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, r14d
shr eax, 0x18
add ecx, eax
test ebx, ebx
cmovne ecx, r14d
xor ebx, ebx
cmp ecx, edx
je 0x140059e37
lea rax, str.incorrect_data_check
jmp 0x140059e81
mov r14d, ebx
mov esi, ebx
mov dword [rdi], 0x19
cmp dword [rdi + 8], ebx
je 0x140059ec5
cmp dword [rdi + 0x10], ebx
je 0x140059ec5
jmp 0x140059e6f
test r13d, r13d
je 0x140058f2f
movzx eax, byte [r11]
mov ecx, esi
shl eax, cl
inc r11
add r14d, eax
mov qword [rbp - 0x20], r11
dec r13d
add esi, 8
cmp esi, 0x20
jb 0x140059e4e
cmp r14d, dword [rdi + 0x1c]
je 0x140059ec0
lea rax, str.incorrect_length_check
mov qword [r12 + 0x20], rax
mov dword [rdi], 0x1b
jmp 0x140058b30
mov qword [r12 + 0x10], r15
mov eax, 2
mov dword [r12 + 0x18], r10d
mov qword [r12], r11
mov dword [r12 + 8], r13d
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x44], esi
jmp 0x140058b93
mov r15d, 0xfffffffd
jmp 0x140058f33
mov r14d, ebx
mov esi, ebx
mov dword [rdi], 0x1a
mov r15d, 1
jmp 0x140058f33
xor r8d, r8d
sub ebx, dword [r12 + 0x18]
mov eax, dword [rbp - 0x24]
sub eax, dword [r12 + 8]
add dword [r12 + 0xc], eax
add dword [r12 + 0x1c], ebx
add dword [rdi + 0x1c], ebx
cmp dword [rdi + 8], r8d
je 0x140059f37
test ebx, ebx
je 0x140059f37
mov rdx, qword [r12 + 0x10]
mov ecx, dword [rdi + 0x18]
mov eax, ebx
sub rdx, rax
cmp dword [rdi + 0x10], r8d
je 0x140059f24
test rdx, rdx
jne 0x140059f1a
mov eax, r8d
jmp 0x140059f2f
mov r8d, ebx
call fcn.140058494
jmp 0x140059f2c
mov r8d, ebx
call fcn.14005bc40
xor r8d, r8d
mov dword [rdi + 0x18], eax
mov dword [r12 + 0x4c], eax
mov eax, dword [rdi + 4]
mov ecx, r8d
neg eax
mov eax, 0x80
sbb edx, edx
and edx, 0x40
cmp dword [rdi], 0xb
cmove ecx, eax
mov eax, 0xfffffffb
add edx, ecx
add edx, dword [rdi + 0x44]
test r15d, r15d
mov dword [r12 + 0x48], edx
cmove r15d, eax
mov eax, r15d
jmp 0x140058b93