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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 8]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
push edi
je case.default.0x402dd2
mov esi, dword [edx + 0x1c]
cmp esi, ecx
je case.default.0x402dd2
cmp dword [edx + 0xc], ecx
je case.default.0x402dd2
cmp dword [edx], ecx
jne 0x402d96
cmp dword [edx + 4], ecx
jne case.default.0x402dd2
cmp dword [esi], 0xb
jne 0x402da1
mov dword [esi], 0xc
mov eax, dword [edx + 0xc]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x402e54
jmp dword [eax*4 + 0x403dc0]
cmp dword [esi + 8], 0
jne 0x402e09
mov dword [esi], 0xc
jmp 0x402e54
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x402de7
mov eax, dword [esi + 8]
test al, 2
je 0x402e67
cmp ebx, 0x8b1f
jne 0x402e67
xor edi, edi
push edi
push edi
push edi
call fcn.00404ed6
mov dword [esi + 0x14], eax
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
push dword [esi + 0x14]
call fcn.00404ed6
add esp, 0x18
xor ebx, ebx
mov dword [esi + 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [esi], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x1c
jbe switch.0x00402dd2
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
and dword [esi + 0x10], 0
test al, 1
je 0x402ef8
mov eax, ebx
and eax, 0xff
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x402ef8
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x402ea6
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x40375a
shr ebx, 4
mov eax, ebx
and eax, 0xf
add eax, 8
sub edi, 4
cmp eax, dword [esi + 0x1c]
mov dword [ebp - 0x10], ebx
jbe 0x402ecb
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x40375a
xor edi, edi
push edi
push edi
push edi
call fcn.004048d5
mov ecx, dword [ebp + 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x402e51
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x403c93
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x402f07
cmp bl, 8
mov dword [esi + 0x10], ebx
je 0x402f42
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x403c93
test bh, 0xe0
je 0x402f53
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x403c93
test bh, 2
je 0x402f78
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 2
jmp case.0x402dd2.2
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x402f84
test byte [esi + 0x11], 2
je 0x402fde
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x16], al
mov byte [ebp - 0x18], bl
push 4
lea eax, [ebp - 0x18]
shr ebx, 0x18
push eax
mov byte [ebp - 0x15], bl
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 3
jmp case.0x402dd2.3
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x402fea
test byte [esi + 0x11], 2
je 0x403034
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 4
test byte [esi + 0x11], 4
je 0x40309d
jmp 0x403068
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x403049
test byte [esi + 0x11], 2
mov dword [esi + 0x38], ebx
je 0x403096
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 5
test byte [esi + 0x11], 4
je 0x4030f1
mov eax, dword [esi + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jbe 0x4030ba
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4030e7
test byte [esi + 0x11], 2
je 0x4030de
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
jne 0x403ce1
mov dword [esi], 6
test byte [esi + 0x11], 8
je 0x403150
cmp dword [ebp - 4], 0
je 0x403ce1
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x403120
cmp eax, dword [ebp - 4]
jb 0x403109
test byte [esi + 0x11], 0x20
je 0x403140
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x403ce1
mov dword [esi], 7
test byte [esi + 0x11], 0x10
je 0x4031af
cmp dword [ebp - 4], 0
je 0x403ce1
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x40317f
cmp eax, dword [ebp - 4]
jb 0x403168
test byte [esi + 0x11], 0x20
je 0x40319f
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.00404ed6
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x403ce1
mov dword [esi], 8
test byte [esi + 0x11], 2
je 0x403203
jmp 0x4031df
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x4031bd
mov eax, dword [esi + 0x14]
and eax, 0xffff
cmp ebx, eax
je 0x4031fc
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x403c93
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
xor eax, eax
push eax
push eax
push eax
call fcn.00404ed6
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
jmp 0x402e51
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403224
mov eax, ebx
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
shr ebx, 0x18
add eax, ecx
add eax, ebx
mov dword [esi + 0x14], eax
mov dword [edx + 0x30], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x403c9e
xor eax, eax
push eax
push eax
push eax
call fcn.004048d5
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
mov edx, ecx
cmp dword [ebp + 0xc], 5
je 0x403ce1
cmp dword [esi + 4], 0
je 0x4032e6
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x402e54
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x4032c7
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
dec edi
sub eax, 0
je 0x403344
dec eax
je 0x403320
dec eax
je 0x403318
dec eax
jne 0x40334a
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x40334a
mov dword [esi], 0xf
jmp 0x40334a
mov dword [esi + 0x44], 0x406da8
mov dword [esi + 0x4c], 9
mov dword [esi + 0x48], 0x4075a8
mov dword [esi + 0x50], 5
mov dword [esi], 0x12
jmp 0x40334a
mov dword [esi], 0xd
shr ebx, 2
dec edi
mov dword [ebp - 0x10], ebx
dec edi
jmp 0x402e54
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x403381
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x403362
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4033a7
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x403c93
xor ebx, ebx
mov dword [esi + 0x38], eax
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0xe
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x403915
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jbe 0x4033d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x4033db
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403ce1
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [esi + 0x38], eax
jmp 0x402e51
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0xe
jb 0x40340d
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x58], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [esi + 0x5c], eax
mov eax, ebx
and eax, 0xf
add eax, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x58], 0x11e
mov dword [esi + 0x54], eax
mov dword [ebp - 0x10], ebx
ja 0x40347c
cmp dword [esi + 0x5c], 0x1e
ja 0x40347c
and dword [esi + 0x60], 0
mov dword [esi], 0x10
jmp case.0x402dd2.16
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x403c93
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x403488
mov ecx, dword [esi + 0x60]
movzx ecx, word [ecx*2 + 0x407628]
xor eax, eax
mov al, bl
shr ebx, 3
mov dword [ebp - 0x10], ebx
and eax, 7
mov word [esi + ecx*2 + 0x68], ax
inc dword [esi + 0x60]
sub edi, 3
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x54]
jb 0x4034a7
jmp 0x4034ed
mov eax, dword [esi + 0x60]
movzx eax, word [eax*2 + 0x407628]
and word [esi + eax*2 + 0x68], 0
inc dword [esi + 0x60]
cmp dword [esi + 0x60], 0x13
jb 0x4034d9
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x68]
push eax
push 0
call fcn.00404546
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x40353b
mov eax, edx
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x403c93
and dword [esi + 0x60], 0
mov dword [esi], 0x11
jmp case.0x402dd2.17
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x40354a
cmp word [ebp - 0xa], 0x10
jae 0x4035d4
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x4035b5
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, ecx
jb 0x403593
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
mov cx, word [ebp - 0xa]
mov word [esi + eax*2 + 0x68], cx
inc dword [esi + 0x60]
mov dword [ebp - 0x10], ebx
jmp case.0x402dd2.17
jne 0x403633
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x403600
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
lea eax, [ecx + 2]
cmp edi, eax
jb 0x4035de
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x4036ff
movzx eax, word [esi + eax*2 + 0x66]
mov dword [ebp - 0x28], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec edi
dec edi
jmp 0x4036c3
cmp word [ebp - 0xa], 0x11
movzx eax, ah
mov dword [ebp - 0x10], eax
jne 0x4036a1
jmp 0x403664
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 3
cmp edi, eax
jb 0x403642
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x4036ba
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 7
cmp edi, eax
jb 0x40367f
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x28], 0
pop edx
sub edx, ecx
add edi, edx
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add edx, dword [esi + 0x58]
add ecx, eax
cmp ecx, edx
mov dword [ebp - 0x10], ebx
ja 0x403708
test eax, eax
je 0x4036eb
mov ecx, dword [esi + 0x60]
mov dx, word [ebp - 0x28]
mov word [esi + ecx*2 + 0x68], dx
inc dword [esi + 0x60]
dec eax
jne 0x4036d9
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
cmp dword [esi + 0x60], eax
jb 0x403569
jmp 0x403718
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x403712
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [esi], 0x1b
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
push dword [esi + 0x58]
mov dword [eax], 9
lea eax, [esi + 0x68]
push eax
push 1
call fcn.00404546
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x403765
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [esi], 0x1b
jmp 0x402e51
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
mov dword [esi + 0x48], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x50]
push eax
push ecx
push dword [esi + 0x5c]
mov dword [eax], 6
mov eax, dword [esi + 0x58]
lea eax, [esi + eax*2 + 0x68]
push eax
push 2
call fcn.00404546
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4037ac
mov eax, edx
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x403c93
mov dword [esi], 0x12
cmp dword [ebp - 4], 6
jb 0x403814
cmp dword [ebp - 0x14], 0x102
jb 0x403814
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
call fcn.00404197
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
pop ecx
pop ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
jmp 0x402e51
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x403859
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x4c]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403829
test al, al
je 0x4038ee
test al, 0xf0
jne 0x4038ee
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x4038d9
cmp dword [ebp - 4], 0
je 0x403cde
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x40389b
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, al
movzx ecx, word [ebp - 0xa]
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x38], ecx
jne 0x403911
mov dword [esi], 0x17
jmp 0x402e54
test al, 0x20
je 0x403920
mov dword [esi], 0xb
jmp 0x402e54
test al, 0x40
je 0x403930
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x403c93
and eax, 0xf
mov dword [esi + 0x40], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40397d
cmp edi, eax
jae 0x40396b
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x403947
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x38], eax
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x14
mov ecx, dword [esi + 0x50]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x4039c8
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x50]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x48]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403998
test al, 0xf0
jne 0x403a55
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x403a40
cmp dword [ebp - 4], 0
je 0x403cde
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x403a02
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, 0x40
mov dword [ebp - 0x10], ebx
je 0x403a72
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x403c93
movzx ecx, word [ebp - 0xa]
and eax, 0xf
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov dword [esi], 0x15
mov eax, dword [esi + 0x40]
test eax, eax
je 0x403ac9
cmp edi, eax
jae 0x403ab4
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x403a90
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x3c], eax
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
cmp dword [esi + 0x3c], eax
jbe 0x403ae3
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x403c93
mov dword [esi], 0x16
cmp dword [ebp - 0x14], 0
je 0x403ce1
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x403b2d
sub ecx, eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0xc], ecx
jbe 0x403b1b
add eax, dword [esi + 0x20]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x403b20
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], ecx
jbe 0x403b3b
jmp 0x403b38
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ecx
jbe 0x403b46
mov dword [ebp - 0xc], ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0xc]
mov byte [edx], cl
jne 0x403b55
cmp dword [esi + 0x38], 0
jne 0x402e51
mov dword [esi], 0x12
jmp 0x402e51
cmp dword [ebp - 0x14], 0
je 0x403ce1
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [ecx], al
mov dword [esi], 0x12
jmp 0x402e54
cmp dword [esi + 8], 0
je 0x403c50
jmp 0x403bcb
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403ba9
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add dword [edx + 0x14], eax
add dword [esi + 0x18], eax
test eax, eax
mov dword [ebp - 0x20], eax
je 0x403c10
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x403bfd
call fcn.00404ed6
jmp 0x403c02
call fcn.004048d5
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
add esp, 0xc
mov dword [ecx + 0x30], eax
mov edx, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x403c3b
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x403c49
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x403c93
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x403cc6
cmp dword [esi + 0x10], 0
je 0x403cc6
jmp 0x403c82
cmp dword [ebp - 4], 0
je 0x403ce1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x403c64
cmp ebx, dword [esi + 0x18]
je 0x403cc2
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1b
jmp 0x402e54
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
push 2
jmp 0x402e61
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x403ce1
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x403ce1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
cmp dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
jne 0x403d14
cmp dword [esi], 0x18
jge 0x403d30
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x403d30
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
call fcn.00402c87
test eax, eax
je 0x403d30
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x402e61
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edi + 4]
mov ebx, dword [ebp - 0x20]
sub ebx, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], ebx
add dword [esi + 0x18], ebx
cmp dword [esi + 8], 0
mov dword [ebp - 0x2c], eax
je 0x403d7d
test ebx, ebx
je 0x403d7d
mov eax, dword [edi + 0xc]
push ebx
sub eax, ebx
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x403d6c
call fcn.00404ed6
jmp 0x403d71
call fcn.004048d5
mov dword [esi + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [esi], 0xb
jne 0x403d89
mov ecx, 0x80
jmp 0x403d8b
xor ecx, ecx
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, dword [esi + 0x34]
add edx, ecx
test eax, eax
mov dword [edi + 0x2c], edx
jne 0x403da5
test ebx, ebx
je 0x403dab
cmp dword [ebp + 0xc], 4
jne 0x403db8
cmp dword [ebp - 0x24], 0
jne 0x403db8
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x402e62