Function at 0x140183070
Capabilities:
Compress data via zlib inflate or deflate
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
test rcx, rcx
je 0x1401848c4
mov r12, qword [rcx + 0x28]
test r12, r12
je 0x1401848c4
cmp qword [rcx + 0x10], 0
je 0x1401848c4
cmp qword [rcx], 0
jne 0x1401830bb
cmp dword [rcx + 8], 0
jne 0x1401848c4
cmp dword [r12], 0xb
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
jne 0x1401830e3
mov dword [r12], reloc.WS2_32.dll_inet_ntoa
mov r11d, dword [rcx + 0x18]
mov eax, dword [r12]
mov r9, qword [rcx + 0x10]
mov esi, dword [rcx + 8]
mov r14, qword [rcx]
mov r15d, dword [r12 + 0x40]
mov ebx, dword [r12 + 0x44]
xor r13d, r13d
mov qword [rbp - 0x40], r9
mov dword [rbp + 0x30], r11d
mov dword [rbp - 0x48], esi
mov r10d, r11d
mov dword [rbp - 0x50], r11d
mov dword [rbp + 0x28], r13d
cmp eax, 0x1e
ja case.default.0x140183145
cdqe
lea rcx, [0x140000000]
lea rdx, [r12 + 0x6c]
mov ecx, dword [rcx + rax*4 + 0x1848d8]
lea rax, [0x140000000]
lea r8, [r12 + 0x68]
add rcx, rax
jmp rcx
mov edx, dword [r12 + 8]
test edx, edx
jne 0x14018315d
mov dword [r12], reloc.WS2_32.dll_inet_ntoa
jmp 0x1401838bf
cmp ebx, 0x10
jae 0x140183182
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x10
jb 0x140183162
test dl, 2
je 0x140183207
cmp r15d, 0x8b1f
jne 0x140183207
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140051280
mov word [rbp + 0x38], r15w
mov r9d, 2
mov r8d, eax
lea r10, [rbp + 0x38]
lea rdi, [0x140000000]
not r8d
mov dword [r12 + 0x18], eax
movzx eax, byte [r10]
mov ecx, r8d
lea r10, [r10 + 1]
xor rcx, rax
mov eax, r8d
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x1401831c1
mov rdi, qword [rbp + 0x20]
not r8d
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 1
mov dword [r12 + 0x18], r8d
jmp 0x1401838b7
mov rax, qword [r12 + 0x20]
mov dword [r12 + 0x10], r13d
test rax, rax
je 0x14018321d
mov dword [rax + 0x40], 0xffffffff
test byte [r12 + 8], 1
je 0x1401832ee
movzx ecx, r15b
mov eax, r15d
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 0x1401832ee
mov eax, r15d
and al, 0xf
cmp al, 8
je 0x140183276
lea rax, [0x1402b02c8]
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov eax, dword [r12 + 0x28]
shr r15d, 4
add ebx, 0xfffffffc
mov ecx, r15d
and ecx, 0xf
add ecx, 8
test eax, eax
jne 0x1401832d2
mov dword [r12 + 0x28], ecx
mov eax, 1
xor r8d, r8d
xor edx, edx
shl eax, cl
xor ecx, ecx
mov dword [r12 + 0x14], eax
call fcn.1401849c0
shr r15d, 8
not r15d
mov dword [r12 + 0x18], eax
mov dword [rdi + 0x4c], eax
and r15d, 2
mov ebx, r13d
or r15d, 9
mov dword [r12], r15d
mov r15d, r13d
jmp 0x1401838b7
cmp ecx, eax
jbe 0x140183294
lea rax, str.invalid_window_size
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
lea rax, str.incorrect_header_check
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
cmp ebx, 0x10
jae 0x140183330
nop dword [rax + rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x10
jb 0x140183310
mov dword [r12 + 0x10], r15d
cmp r15b, 8
je 0x140183353
lea rax, str.unknown_compression_method
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
test r15d, 0xe000
je 0x140183374
lea rax, str.unknown_header_flags_set
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov rcx, qword [r12 + 0x20]
test rcx, rcx
je 0x140183389
mov eax, r15d
shr eax, 8
and eax, 1
mov dword [rcx], eax
test dword [r12 + 0x10], 0x200
lea r11, [0x140000000]
je 0x1401833ec
mov r8d, dword [r12 + 0x18]
mov byte [rbp + 0x38], r15b
shr r15d, 8
mov byte [rbp + 0x39], r15b
mov r9d, 2
lea r10, [rbp + 0x38]
not r8d
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r8d
lea r10, [r10 + 1]
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [r11 + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x1401833c0
not r8d
mov dword [r12 + 0x18], r8d
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 2
jmp 0x140183408
lea r11, [0x140000000]
cmp ebx, 0x20
jae 0x140183428
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x20
jb 0x140183408
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x140183436
mov dword [rax + 4], r15d
test dword [r12 + 0x10], 0x200
je 0x1401834a0
mov r8d, dword [r12 + 0x18]
mov eax, r15d
mov byte [rbp + 0x38], r15b
shr eax, 8
mov r9d, 4
lea r10, [rbp + 0x38]
mov byte [rbp + 0x39], al
mov eax, r15d
not r8d
shr eax, 0x10
shr r15d, 0x18
mov byte [rbp + 0x3b], r15b
mov byte [rbp + 0x3a], al
movzx eax, byte [r10]
mov ecx, r8d
lea r10, [r10 + 1]
xor rcx, rax
mov eax, r8d
shr eax, 8
movzx edx, cl
mov r8d, dword [r11 + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x140183471
not r8d
mov dword [r12 + 0x18], r8d
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 3
jmp 0x1401834c0
lea r11, [0x140000000]
cmp ebx, 0x10
jae 0x1401834e0
nop dword [rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x10
jb 0x1401834c0
mov rcx, qword [r12 + 0x20]
test rcx, rcx
je 0x1401834ff
movzx eax, r15b
mov dword [rcx + 8], eax
mov rax, qword [r12 + 0x20]
mov ecx, r15d
shr ecx, 8
mov dword [rax + 0xc], ecx
test dword [r12 + 0x10], 0x200
je 0x14018355f
mov r8d, dword [r12 + 0x18]
mov byte [rbp + 0x38], r15b
shr r15d, 8
mov byte [rbp + 0x39], r15b
mov r9d, 2
lea r10, [rbp + 0x38]
not r8d
nop dword [rax + rax]
movzx eax, byte [r10]
mov ecx, r8d
lea r10, [r10 + 1]
xor rcx, rax
mov eax, r8d
shr eax, 8
movzx edx, cl
mov r8d, dword [r11 + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x140183530
not r8d
mov dword [r12 + 0x18], r8d
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 4
jmp 0x140183576
lea r11, [0x140000000]
test dword [r12 + 0x10], 0x400
je 0x140183624
cmp ebx, 0x10
jae 0x1401835b0
nop word [rax + rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x10
jb 0x140183590
mov rax, qword [r12 + 0x20]
mov dword [r12 + 0x48], r15d
test rax, rax
je 0x1401835c3
mov dword [rax + 0x18], r15d
test dword [r12 + 0x10], 0x200
je 0x14018361c
mov r8d, dword [r12 + 0x18]
mov byte [rbp + 0x38], r15b
shr r15d, 8
mov byte [rbp + 0x39], r15b
mov r9d, 2
lea r10, [rbp + 0x38]
not r8d
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r8d
lea r10, [r10 + 1]
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [r11 + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x1401835f0
not r8d
mov dword [r12 + 0x18], r8d
mov r15d, r13d
mov ebx, r13d
jmp 0x140183632
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x140183632
mov qword [rax + 0x10], r13
mov dword [r12], 5
test dword [r12 + 0x10], 0x400
je 0x1401836c9
mov ecx, dword [r12 + 0x48]
cmp ecx, esi
mov edi, ecx
cmova edi, esi
test edi, edi
je 0x1401836bd
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x140183691
mov r9, qword [rax + 0x10]
test r9, r9
je 0x140183691
mov edx, dword [rax + 0x18]
sub edx, ecx
mov ecx, dword [rax + 0x1c]
lea eax, [rdi + rdx]
cmp eax, ecx
jbe 0x14018367f
sub ecx, edx
jmp 0x140183681
mov ecx, edi
mov r8d, ecx
mov ecx, edx
mov rdx, r14
add rcx, r9
call sub.MSVCR120.dll_memcpy
test dword [r12 + 0x10], 0x200
je 0x1401836b1
mov ecx, dword [r12 + 0x18]
mov r8d, edi
mov rdx, r14
call fcn.140051280
mov dword [r12 + 0x18], eax
mov eax, edi
sub esi, edi
add r14, rax
sub dword [r12 + 0x48], edi
cmp dword [r12 + 0x48], 0
jne 0x140184744
mov dword [r12 + 0x48], r13d
mov dword [r12], 6
test dword [r12 + 0x10], 0x800
je 0x14018375d
test esi, esi
je 0x140184744
mov edi, r13d
mov eax, edi
inc edi
movzx r13d, byte [rax + r14]
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14018371f
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x14018371f
mov ecx, dword [r12 + 0x48]
cmp ecx, dword [rax + 0x28]
jae 0x14018371f
mov byte [rcx + rdx], r13b
inc dword [r12 + 0x48]
test r13d, r13d
je 0x140183728
cmp edi, esi
jb 0x1401836f0
test dword [r12 + 0x10], 0x200
je 0x140183748
mov ecx, dword [r12 + 0x18]
mov r8d, edi
mov rdx, r14
call fcn.140051280
mov dword [r12 + 0x18], eax
mov eax, edi
sub esi, edi
add r14, rax
test r13d, r13d
jne 0x140184744
xor r13d, r13d
jmp 0x14018376b
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14018376b
mov qword [rax + 0x20], r13
mov dword [r12 + 0x48], r13d
mov dword [r12], 7
test dword [r12 + 0x10], 0x1000
je 0x1401837ff
test esi, esi
je 0x140184744
mov edi, r13d
mov eax, edi
inc edi
movzx r13d, byte [rax + r14]
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x1401837c1
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x1401837c1
mov ecx, dword [r12 + 0x48]
cmp ecx, dword [rax + 0x38]
jae 0x1401837c1
mov byte [rcx + rdx], r13b
inc dword [r12 + 0x48]
test r13d, r13d
je 0x1401837ca
cmp edi, esi
jb 0x140183792
test dword [r12 + 0x10], 0x200
je 0x1401837ea
mov ecx, dword [r12 + 0x18]
mov r8d, edi
mov rdx, r14
call fcn.140051280
mov dword [r12 + 0x18], eax
mov eax, edi
sub esi, edi
add r14, rax
test r13d, r13d
jne 0x140184744
xor r13d, r13d
jmp 0x14018380d
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x14018380d
mov qword [rax + 0x30], r13
mov rdi, qword [rbp + 0x20]
mov r9, qword [rbp - 0x40]
mov r11d, dword [rbp + 0x30]
mov dword [r12], 8
test dword [r12 + 0x10], 0x200
je 0x140183877
cmp ebx, 0x10
jae 0x140183851
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x10
jb 0x140183831
movzx eax, word [r12 + 0x18]
cmp r15d, eax
je 0x140183871
lea rax, str.header_crc_mismatch
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov r15d, r13d
mov ebx, r13d
mov rcx, qword [r12 + 0x20]
test rcx, rcx
je 0x14018389b
mov eax, dword [r12 + 0x10]
sar eax, 9
and eax, 1
mov dword [rcx + 0x3c], eax
mov rax, qword [r12 + 0x20]
mov dword [rax + 0x40], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140051280
mov dword [r12 + 0x18], eax
mov dword [rdi + 0x4c], eax
mov dword [r12], reloc.WS2_32.dll_inet_addr
mov r11d, dword [rbp + 0x30]
mov r9, qword [rbp - 0x40]
mov eax, dword [r12]
cmp eax, 0x1e
ja case.default.0x140183145
mov r10d, dword [rbp - 0x50]
xor r13d, r13d
jmp 0x140183121
cmp ebx, 0x20
jae 0x140183900
nop dword [rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x20
jb 0x1401838e0
mov ecx, r15d
mov eax, r15d
mov ebx, r13d
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, r15d
shr r15d, 0x18
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
add eax, r15d
mov r15d, r13d
mov dword [r12 + 0x18], eax
mov dword [rdi + 0x4c], eax
mov dword [r12], 0xa
cmp dword [r12 + 0xc], 0
je 0x1401846e4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1401849c0
mov r9, qword [rbp - 0x40]
mov r11d, dword [rbp + 0x30]
mov dword [r12 + 0x18], eax
mov dword [rdi + 0x4c], eax
lea r8, [r12 + 0x68]
mov dword [r12], reloc.WS2_32.dll_inet_addr
lea rdx, [r12 + 0x6c]
cmp dword [r12 + 4], 0
je 0x140183997
mov ecx, ebx
mov dword [r12], 0x1a
and ecx, 7
shr r15d, cl
sub ebx, ecx
jmp 0x1401838bf
cmp ebx, 3
jae 0x1401839c0
nop dword [rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 3
jb 0x1401839a0
mov eax, r15d
shr r15d, 1
dec ebx
and eax, 1
mov dword [r12 + 4], eax
mov eax, r15d
and eax, 3
je 0x140183a50
dec eax
je 0x140183a17
dec eax
je 0x140183a03
dec eax
jne 0x140183a58
lea rax, str.invalid_block_type
shr r15d, 2
add ebx, 0xfffffffe
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
shr r15d, 2
mov dword [r12], reloc.WS2_32.dll_recv
add ebx, 0xfffffffe
jmp 0x1401838bf
lea rax, [0x14023d860]
shr r15d, 2
mov dword [r8], 9
mov qword [r12 + 0x58], rax
lea rax, [0x14023e090]
mov dword [rdx], 5
mov dword [r12], reloc.WS2_32.dll_send
add ebx, 0xfffffffe
mov qword [r12 + 0x60], rax
jmp 0x1401838bf
mov dword [r12], reloc.WS2_32.dll_listen
shr r15d, 2
add ebx, 0xfffffffe
jmp 0x1401838bf
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr r15d, cl
cmp ebx, 0x20
jae 0x140183a93
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x20
jb 0x140183a73
mov eax, r15d
movzx ecx, r15w
not eax
shr eax, 0x10
cmp ecx, eax
je 0x140183abb
lea rax, str.invalid_stored_block_lengths
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov dword [r12 + 0x48], ecx
mov r15d, r13d
mov ebx, r13d
mov dword [r12], ntohs
mov dword [r12], reloc.WS2_32.dll_ntohs
mov r13d, dword [r12 + 0x48]
test r13d, r13d
je 0x140183b32
cmp r13d, esi
cmova r13d, esi
cmp r13d, r11d
cmova r13d, r11d
test r13d, r13d
je 0x140184744
mov r8d, r13d
mov rdx, r14
mov rcx, r9
mov edi, r13d
call sub.MSVCR120.dll_memcpy
mov r11d, dword [rbp + 0x30]
mov r9, qword [rbp - 0x40]
sub r11d, r13d
add r14, rdi
add r9, rdi
mov rdi, qword [rbp + 0x20]
sub esi, r13d
sub dword [r12 + 0x48], r13d
mov dword [rbp + 0x30], r11d
mov qword [rbp - 0x40], r9
jmp 0x1401838bf
mov dword [r12], reloc.WS2_32.dll_inet_addr
jmp 0x1401838bf
cmp ebx, 0xe
jae 0x140183b64
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0xe
jb 0x140183b44
mov ecx, r15d
shr r15d, 5
add ebx, 0xfffffff2
mov edx, r15d
shr r15d, 5
and ecx, 0x1f
mov eax, r15d
and edx, 0x1f
add ecx, 0x101
and eax, 0xf
inc edx
shr r15d, 4
add eax, 4
mov dword [r12 + 0x74], ecx
mov dword [r12 + 0x78], edx
mov dword [r12 + 0x70], eax
cmp ecx, 0x11e
ja 0x140183cca
cmp edx, 0x1e
ja 0x140183cca
mov dword [r12 + 0x7c], r13d
mov dword [r12], setsockopt
mov eax, dword [r12 + 0x70]
lea rdx, [0x140000000]
cmp dword [r12 + 0x7c], eax
jae 0x140183c36
cmp ebx, 3
jae 0x140183c00
nop dword [rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 3
jb 0x140183be0
mov eax, dword [r12 + 0x7c]
movzx ecx, r15w
add ebx, 0xfffffffd
movzx eax, word [rdx + rax*2 + 0x23e060]
and cx, 7
shr r15d, 3
mov word [r12 + rax*2 + 0x88], cx
inc dword [r12 + 0x7c]
mov eax, dword [r12 + 0x7c]
cmp eax, dword [r12 + 0x70]
jb 0x140183bd4
cmp dword [r12 + 0x7c], 0x13
jae 0x140183c63
nop
mov eax, dword [r12 + 0x7c]
movzx eax, word [rdx + rax*2 + 0x23e060]
mov word [r12 + rax*2 + 0x88], r13w
inc dword [r12 + 0x7c]
cmp dword [r12 + 0x7c], 0x13
jb 0x140183c40
lea rax, [r12 + 0x548]
lea r9, [r12 + 0x80]
xor ecx, ecx
mov qword [r9], rax
mov qword [r12 + 0x58], rax
lea rax, [r12 + 0x308]
mov qword [rsp + 0x28], rax
mov dword [r8], 7
mov qword [rsp + 0x20], r8
lea r8d, [rcx + 0x13]
lea rdx, [r12 + 0x88]
call fcn.140185180
mov r11d, dword [rbp + 0x30]
mov dword [rbp + 0x28], eax
test eax, eax
je 0x140183ce2
lea rax, str.invalid_code_lengths_set
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bb
lea rax, str.too_many_length_or_distance_symbols
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov dword [r12 + 0x7c], r13d
mov dword [r12], reloc.WS2_32.dll_select
lea r8, [r12 + 0x68]
mov eax, dword [r12 + 0x78]
mov r10d, dword [r12 + 0x7c]
add eax, dword [r12 + 0x74]
cmp r10d, eax
jae 0x140183ef5
nop dword [rax]
mov ecx, dword [r8]
mov eax, 1
shl eax, cl
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov rax, qword [r12 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rbp - 0x4c], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x140183d85
nop word [rax + rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [r8]
dec esi
add r15d, eax
mov eax, 1
inc r14
shl eax, cl
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov rax, qword [r12 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rbp - 0x4c], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x140183d40
mov edx, eax
shr edx, 0x10
cmp dx, 0x10
jae 0x140183db1
shr eax, 8
movzx ecx, al
mov eax, r10d
mov word [r12 + rax*2 + 0x88], dx
shr r15d, cl
sub ebx, ecx
inc dword [r12 + 0x7c]
jmp 0x140183edd
jne 0x140183e13
shr eax, 8
movzx edx, al
add edx, 2
cmp ebx, edx
jae 0x140183ddf
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, edx
jb 0x140183dc0
movzx ecx, byte [rbp - 0x4b]
shr r15d, cl
sub ebx, ecx
test r10d, r10d
je 0x140183f24
mov edx, r15d
lea eax, [r10 - 1]
shr r15d, 2
movzx r8d, word [r12 + rax*2 + 0x88]
and edx, 3
add edx, 3
add ebx, 0xfffffffe
jmp 0x140183ea7
cmp word [rbp - 0x4a], 0x11
movzx r9d, byte [rbp - 0x4b]
jne 0x140183e60
lea edx, [r9 + 3]
cmp ebx, edx
jae 0x140183e46
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, edx
jb 0x140183e27
mov ecx, r9d
mov eax, 0xfffffffd
shr r15d, cl
mov edx, r15d
and edx, 7
add edx, 3
shr r15d, 3
jmp 0x140183e9f
lea edx, [r9 + 7]
cmp ebx, edx
jae 0x140183e87
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, edx
jb 0x140183e68
mov ecx, r9d
mov eax, 0xfffffff9
shr r15d, cl
mov edx, r15d
and edx, 0x7f
add edx, 0xb
shr r15d, 7
sub eax, r9d
mov r8d, r13d
add ebx, eax
mov eax, dword [r12 + 0x78]
lea ecx, [r10 + rdx]
add eax, dword [r12 + 0x74]
cmp ecx, eax
ja 0x140183f3c
test edx, edx
je 0x140183ed8
mov eax, dword [r12 + 0x7c]
mov word [r12 + rax*2 + 0x88], r8w
inc dword [r12 + 0x7c]
dec edx
jne 0x140183ec1
lea r8, [r12 + 0x68]
mov eax, dword [r12 + 0x78]
mov r10d, dword [r12 + 0x7c]
add eax, dword [r12 + 0x74]
cmp r10d, eax
jb 0x140183d10
cmp dword [r12], 0x1d
je 0x1401838bb
cmp word [r12 + 0x288], 0
jne 0x140183f54
lea rax, str.invalid_code____missing_end_of_block
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bb
lea rax, [0x1402b03a0]
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bb
lea rax, str.invalid_bit_length_repeat
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bb
lea rax, [r12 + 0x548]
mov dword [r8], 9
lea r13, [r12 + 0x308]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r8
mov r8d, dword [r12 + 0x74]
lea rdx, [r12 + 0x88]
lea r9, [r12 + 0x80]
mov ecx, 1
mov qword [r12 + 0x80], rax
mov qword [r12 + 0x58], rax
call fcn.140185180
mov dword [rbp + 0x28], eax
test eax, eax
je 0x140183fc4
mov rdi, qword [rbp + 0x20]
lea rax, str.invalid_literal_lengths_set
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838b7
mov rax, qword [r12 + 0x80]
mov r8d, dword [r12 + 0x78]
lea rcx, [r12 + 0x6c]
mov qword [r12 + 0x60], rax
mov eax, dword [r12 + 0x74]
mov dword [rcx], 6
add rax, 0x44
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea r9, [r12 + 0x80]
lea rdx, [r12 + rax*2]
mov ecx, 2
call fcn.140185180
mov rdi, qword [rbp + 0x20]
mov r9, qword [rbp - 0x40]
mov r11d, dword [rbp + 0x30]
mov dword [rbp + 0x28], eax
test eax, eax
je 0x140184035
lea rax, str.invalid_distances_set
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov r10d, dword [rbp - 0x50]
mov dword [r12], reloc.WS2_32.dll_send
xor r13d, r13d
lea r8, [r12 + 0x68]
mov dword [r12], setsockopt
cmp esi, 6
jb 0x1401840be
cmp r11d, 0x102
jb 0x1401840be
mov qword [rdi + 0x10], r9
mov dword [rdi + 0x18], r11d
mov qword [rdi], r14
mov dword [rdi + 8], esi
mov edx, r10d
mov rcx, rdi
mov dword [r12 + 0x40], r15d
mov dword [r12 + 0x44], ebx
call fcn.140184ca0
cmp dword [r12], 0xb
mov r9, qword [rdi + 0x10]
mov r11d, dword [rdi + 0x18]
mov r14, qword [rdi]
mov esi, dword [rdi + 8]
mov r15d, dword [r12 + 0x40]
mov ebx, dword [r12 + 0x44]
mov qword [rbp - 0x40], r9
mov dword [rbp + 0x30], r11d
jne 0x1401838bf
mov dword [r12 + 0x1bdc], 0xffffffff
jmp 0x1401838bf
mov ecx, dword [r8]
mov r11, qword [r12 + 0x58]
mov eax, 1
shl eax, cl
mov dword [r12 + 0x1bdc], r13d
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x140184132
nop
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [r8]
dec esi
add r15d, eax
mov eax, 1
inc r14
shl eax, cl
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov rax, qword [r12 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x1401840f0
test al, al
je 0x140184202
test al, 0xf0
jne 0x140184202
mov r10d, eax
movzx ecx, al
mov dword [rbp - 0x4c], eax
shr r10d, 8
mov r9d, 1
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
dec r9d
and r9d, r15d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rbp - 0x4b]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, ebx
jbe 0x1401841f1
movzx r10d, word [rbp - 0x4a]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
movzx r9d, r11b
shl eax, cl
mov r8d, 1
movzx ecx, dl
add ecx, r9d
add r15d, eax
movzx eax, r10w
shl r8d, cl
mov ecx, r9d
add ebx, 8
dec r8d
dec esi
inc r14
and r8d, r15d
shr r8d, cl
add r8d, eax
mov rax, qword [r12 + 0x58]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, ebx
ja 0x140184196
movzx ecx, r11b
shr r15d, cl
sub ebx, ecx
mov dword [r12 + 0x1bdc], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [r12 + 0x1bdc], ecx
shr r15d, cl
sub ebx, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [r12 + 0x48], ecx
test al, al
jne 0x140184232
mov dword [r12], 0x19
jmp 0x1401838b7
test al, 0x20
je 0x140184247
mov dword [r12 + 0x1bdc], 0xffffffff
jmp 0x1401838af
test al, 0x40
je 0x140184263
lea rax, [0x1402b0478]
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838b7
movzx ecx, al
mov dword [r12], reloc.WS2_32.dll_setsockopt
and ecx, 0xf
mov dword [r12 + 0x50], ecx
mov edx, dword [r12 + 0x50]
test edx, edx
je 0x1401842c2
cmp ebx, edx
jae 0x1401842a2
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, edx
jb 0x140184283
mov ecx, edx
mov eax, 1
sub ebx, edx
shl eax, cl
dec eax
and eax, r15d
shr r15d, cl
add dword [r12 + 0x48], eax
add dword [r12 + 0x1bdc], edx
mov eax, dword [r12 + 0x48]
mov dword [r12], reloc.WS2_32.dll_shutdown
lea rdx, [r12 + 0x6c]
mov dword [r12 + 0x1be0], eax
mov ecx, dword [rdx]
mov r11, qword [r12 + 0x60]
mov eax, 1
shl eax, cl
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x140184344
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [rdx]
dec esi
add r15d, eax
mov eax, 1
inc r14
shl eax, cl
lea ecx, [rax - 1]
mov eax, r15d
and rcx, rax
mov rax, qword [r12 + 0x60]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x140184303
test al, 0xf0
jne 0x14018440c
mov r10d, eax
movzx ecx, al
mov dword [rbp - 0x4c], eax
shr r10d, 8
mov r9d, 1
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
dec r9d
and r9d, r15d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rbp - 0x4b]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, ebx
jbe 0x1401843fb
movzx r10d, word [rbp - 0x4a]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
movzx r9d, r11b
shl eax, cl
mov r8d, 1
movzx ecx, dl
add ecx, r9d
add r15d, eax
movzx eax, r10w
shl r8d, cl
mov ecx, r9d
add ebx, 8
dec r8d
dec esi
inc r14
and r8d, r15d
shr r8d, cl
add r8d, eax
mov rax, qword [r12 + 0x60]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, ebx
ja 0x1401843a0
movzx ecx, r11b
shr r15d, cl
sub ebx, ecx
add dword [r12 + 0x1bdc], ecx
mov r9, qword [rbp - 0x40]
mov r11d, dword [rbp + 0x30]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [r12 + 0x1bdc], ecx
shr r15d, cl
sub ebx, ecx
test al, 0x40
je 0x140184445
lea rax, [0x1402b0460]
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov r10d, dword [rbp - 0x50]
mov ecx, eax
mov dword [r12], reloc.WS2_32.dll_socket
shr ecx, 0x10
mov dword [r12 + 0x4c], ecx
movzx ecx, al
and ecx, 0xf
mov dword [r12 + 0x50], ecx
mov edx, dword [r12 + 0x50]
test edx, edx
je 0x1401844b2
cmp ebx, edx
jae 0x140184492
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, edx
jb 0x140184473
mov ecx, edx
mov eax, 1
sub ebx, edx
shl eax, cl
dec eax
and eax, r15d
shr r15d, cl
add dword [r12 + 0x4c], eax
add dword [r12 + 0x1bdc], edx
mov dword [r12], 0x18
test r11d, r11d
je 0x140184744
mov ecx, dword [r12 + 0x4c]
mov eax, r10d
sub eax, r11d
cmp ecx, eax
jbe 0x140184526
sub ecx, eax
cmp ecx, dword [r12 + 0x30]
jbe 0x1401844fe
cmp dword [r12 + 0x1bd8], 0
je 0x1401844fe
lea rax, [0x1402b04b0]
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov eax, dword [r12 + 0x34]
cmp ecx, eax
jbe 0x140184512
mov edx, dword [r12 + 0x2c]
sub ecx, eax
sub edx, ecx
jmp 0x140184516
sub eax, ecx
mov edx, eax
mov eax, dword [r12 + 0x48]
add rdx, qword [r12 + 0x38]
cmp ecx, eax
jbe 0x140184533
jmp 0x140184531
mov eax, dword [r12 + 0x48]
mov rdx, r9
sub rdx, rcx
mov ecx, eax
cmp ecx, r11d
cmova ecx, r11d
sub r11d, ecx
sub eax, ecx
sub rdx, r9
mov dword [rbp + 0x30], r11d
mov dword [r12 + 0x48], eax
nop dword [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
mov byte [r9 - 1], al
dec ecx
jne 0x140184550
mov qword [rbp - 0x40], r9
cmp dword [r12 + 0x48], ecx
jne 0x1401838bf
mov dword [r12], setsockopt
jmp 0x1401838bf
test r11d, r11d
je 0x140184744
movzx eax, byte [r12 + 0x48]
inc r9
dec r11d
mov byte [r9 - 1], al
mov dword [rbp + 0x30], r11d
mov qword [rbp - 0x40], r9
mov dword [r12], setsockopt
jmp 0x1401838bf
cmp dword [r12 + 8], 0
je 0x140184680
cmp ebx, 0x20
jae 0x1401845e0
nop dword [rax + rax]
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x20
jb 0x1401845c0
sub r10d, r11d
add dword [rdi + 0x1c], r10d
add dword [r12 + 0x1c], r10d
test r10d, r10d
je 0x140184626
mov ecx, dword [r12 + 0x18]
mov eax, r10d
mov rdx, r9
sub rdx, rax
cmp dword [r12 + 0x10], 0
mov r8d, r10d
je 0x140184611
call fcn.140051280
jmp 0x140184616
call fcn.1401849c0
mov r9, qword [rbp - 0x40]
mov r11d, dword [rbp + 0x30]
mov dword [r12 + 0x18], eax
mov dword [rdi + 0x4c], eax
cmp dword [r12 + 0x10], 0
mov dword [rbp - 0x50], r11d
mov ecx, r15d
jne 0x14018465b
and ecx, 0xff00
mov eax, r15d
shl eax, 0x10
add ecx, eax
mov eax, r15d
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, r15d
shr eax, 0x18
add ecx, eax
cmp ecx, dword [r12 + 0x18]
je 0x14018467a
lea rax, str.incorrect_data_check
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 0x1b
cmp dword [r12 + 8], 0
je 0x14018472c
cmp dword [r12 + 0x10], 0
je 0x14018472c
cmp ebx, 0x20
jae 0x1401846c5
test esi, esi
je 0x140184744
movzx eax, byte [r14]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec esi
inc r14
add r15d, eax
cmp ebx, 0x20
jb 0x1401846a5
cmp r15d, dword [r12 + 0x1c]
je 0x140184726
lea rax, str.incorrect_length_check
mov qword [rdi + 0x20], rax
mov dword [r12], 0x1d
jmp 0x1401838bf
mov qword [rdi + 0x10], r9
mov dword [rdi + 0x18], r11d
mov qword [rdi], r14
mov dword [rdi + 8], esi
mov eax, 2
mov dword [r12 + 0x40], r15d
mov dword [r12 + 0x44], ebx
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x58]
add rsp, 0x80
pop r12
pop rdi
pop rbp
ret
mov r15d, r13d
mov ebx, r13d
mov dword [r12], 0x1c
mov r13d, 1
jmp 0x140184748
mov r13d, 0xfffffffd
jmp 0x140184748
mov r13d, dword [rbp + 0x28]
mov rdi, qword [rbp + 0x20]
mov rax, qword [rbp - 0x40]
mov qword [rdi + 0x10], rax
mov eax, dword [rbp + 0x30]
mov qword [rdi], r14
mov dword [rdi + 0x18], eax
mov dword [rdi + 8], esi
cmp dword [r12 + 0x2c], 0
mov dword [r12 + 0x44], ebx
mov ebx, dword [rbp - 0x50]
mov dword [r12 + 0x40], r15d
jne 0x140184781
cmp ebx, dword [rdi + 0x18]
je 0x1401847aa
cmp dword [r12], 0x1d
jge 0x1401847aa
mov rdx, qword [rdi + 0x10]
mov r8d, ebx
mov rcx, rdi
sub r8d, dword [rdi + 0x18]
call fcn.140182f70
test eax, eax
je 0x1401847aa
mov dword [r12], 0x1e
mov eax, 0xfffffffc
jmp 0x140184701
sub ebx, dword [rdi + 0x18]
mov r10d, dword [rbp - 0x48]
sub r10d, dword [rdi + 8]
add dword [rdi + 0x1c], ebx
add dword [rdi + 0xc], r10d
add dword [r12 + 0x1c], ebx
cmp dword [r12 + 8], 0
mov dword [rbp - 0x48], r10d
je 0x140184856
test ebx, ebx
je 0x140184856
cmp dword [r12 + 0x10], 0
je 0x140184830
mov r10, qword [rdi + 0x10]
mov r8d, dword [r12 + 0x18]
mov r9d, ebx
sub r10, r9
not r8d
test ebx, ebx
je 0x14018482b
lea rdi, [0x140000000]
nop
movzx eax, byte [r10]
mov ecx, r8d
lea r10, [r10 + 1]
xor rcx, rax
mov eax, r8d
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4 + 0x1d67c0]
xor r8d, eax
dec r9
jne 0x140184800
mov rdi, qword [rbp + 0x20]
not r8d
jmp 0x140184849
mov rdx, qword [rdi + 0x10]
mov ecx, dword [r12 + 0x18]
mov eax, ebx
sub rdx, rax
mov r8d, ebx
call fcn.1401849c0
mov r8d, eax
mov r10d, dword [rbp - 0x48]
mov dword [r12 + 0x18], r8d
mov dword [rdi + 0x4c], r8d
mov edx, dword [r12]
cmp edx, 0x13
je 0x14018486c
cmp edx, 0xe
je 0x14018486c
xor r9d, r9d
mov r8d, r9d
jmp 0x140184875
mov r8d, 0x100
xor r9d, r9d
mov eax, dword [r12 + 4]
neg eax
mov eax, 0x80
sbb ecx, ecx
and ecx, 0x40
cmp edx, 0xb
cmove r9d, eax
lea eax, [r8 + rcx]
add r9d, eax
add r9d, dword [r12 + 0x44]
mov dword [rdi + 0x48], r9d
test r10d, r10d
jne 0x1401848b2
test ebx, ebx
jne 0x1401848b2
mov eax, 0xfffffffb
test r13d, r13d
cmove r13d, eax
mov eax, r13d
jmp 0x140184701
mov eax, 0xfffffffe
jmp 0x140184701
mov eax, 0xfffffffe
add rsp, 0x80
pop r12
pop rdi
pop rbp
ret