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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je case.default.0x4081b6
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x28], ebx
test ebx, ebx
je case.default.0x4081b6
xor eax, eax
cmp dword [esi + 0xc], eax
je case.default.0x4081b6
cmp dword [esi], eax
jne 0x40816e
cmp dword [esi + 4], eax
jne case.default.0x4081b6
cmp dword [ebx], 0xb
jne 0x408179
mov dword [ebx], 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], esi
cmp eax, 0x1c
ja case.default.0x4081b6
mov esi, dword [ebp + 8]
jmp dword [eax*4 + 0x409518]
cmp dword [ebx + 8], 0
jne 0x4081ce
mov dword [ebx], 0xc
jmp 0x408fd9
push 0x10
pop eax
cmp edi, eax
jae 0x408205
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x4081d8
test byte [ebx + 8], 2
je 0x408251
cmp edx, 0x8b1f
jne 0x408251
xor edi, edi
push edi
push edi
push edi
call fcn.00407e58
mov dword [ebx + 0x18], eax
push 0x1f
pop eax
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x18]
push 2
push eax
mov byte [ebp - 0x17], 0x8b
push dword [ebx + 0x18]
call fcn.00407e58
mov edx, edi
mov dword [ebx + 0x18], eax
add esp, 0x18
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 1
jmp 0x408fd6
and dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x408260
or dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x4082f9
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x4082f9
mov eax, edx
and al, 0xf
cmp al, 8
je 0x40829f
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1b
jmp 0x408fd6
shr edx, 4
sub edi, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x10], edi
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x4082c1
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x408294
xor edi, edi
xor eax, eax
push edi
inc eax
shl eax, cl
push edi
push edi
mov dword [ebx + 0x14], eax
call fcn.004097ae
mov edx, dword [ebp - 0xc]
add esp, 0xc
shr edx, 8
not edx
mov dword [ebx + 0x18], eax
and edx, 2
mov dword [esi + 0x30], eax
or edx, 9
mov dword [ebx], edx
mov edx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x408fd6
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x408294
push 0x10
pop eax
cmp edi, eax
jae 0x408339
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x40830c
mov dword [ebx + 0x10], edx
cmp dl, 8
je 0x408353
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1b
jmp 0x408fd9
test edx, 0xe000
je 0x408364
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x408348
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x408375
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebx + 0x10], 0x200
je 0x40839b
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.00407e58
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 2
mov dword [ebp - 0xc], edx
mov edi, eax
cmp edi, 0x20
jae 0x4083df
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x4083b5
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4083e9
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x40841f
mov eax, edx
mov byte [ebp - 0x18], dl
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x18]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x15], dl
push dword [ebx + 0x18]
call fcn.00407e58
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 3
mov dword [ebp - 0xc], edx
mov edi, eax
push 0x10
pop eax
cmp edi, eax
jae 0x408465
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x40843b
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x40847d
movzx eax, dl
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebx + 0x20]
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [ebx + 0x10], 0x200
je 0x4084a3
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.00407e58
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 4
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test dword [ebx + 0x10], 0x400
je 0x408534
push 0x10
pop eax
cmp edi, eax
jae 0x4084f5
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x4084cb
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x408502
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x408528
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.00407e58
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
jmp 0x40853f
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40853f
and dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ebx], 5
test dword [ebx + 0x10], 0x400
je 0x4085d5
mov esi, dword [ebx + 0x40]
cmp esi, ecx
jbe 0x40855e
mov esi, ecx
test esi, esi
je 0x4085c5
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x40859c
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40859c
mov edx, dword [ecx + 0x14]
sub edx, dword [ebx + 0x40]
mov ecx, dword [ecx + 0x18]
lea eax, [esi + edx]
cmp eax, ecx
jbe 0x408587
sub ecx, edx
jmp 0x408589
mov ecx, esi
mov eax, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 8]
add eax, edx
push ecx
push eax
call fcn.00423060
add esp, 0xc
test dword [ebx + 0x10], 0x200
je 0x4085b7
push esi
push dword [ebp - 8]
push dword [ebx + 0x18]
call fcn.00407e58
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
add dword [ebp - 8], esi
sub ecx, esi
sub dword [ebx + 0x40], esi
mov dword [ebp - 4], ecx
xor edx, edx
cmp dword [ebx + 0x40], edx
jne 0x409439
mov esi, dword [ebp + 8]
jmp 0x4085d7
xor edx, edx
mov dword [ebx + 0x40], edx
mov dword [ebx], 6
jmp 0x4085e4
xor edx, edx
test dword [ebx + 0x10], 0x800
je 0x408674
test ecx, ecx
je 0x409439
mov esi, dword [ebp - 4]
mov eax, edx
mov edx, dword [ebp - 8]
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x408634
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x408631
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x408631
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x30]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x30], 0
je 0x40863e
cmp eax, esi
jb 0x408601
test dword [ebx + 0x10], 0x200
mov esi, dword [ebp + 8]
je 0x40865d
push eax
push edx
push dword [ebx + 0x18]
call fcn.00407e58
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], ecx
jne 0x409439
jmp 0x40867e
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40867e
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx], 7
mov dword [ebx + 0x40], edx
jmp 0x40868d
xor edx, edx
test dword [ebx + 0x10], 0x1000
je 0x40871d
test ecx, ecx
je 0x409439
mov esi, dword [ebp - 4]
mov eax, edx
mov edx, dword [ebp - 8]
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x4086dd
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x4086da
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x4086da
mov ecx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x30]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x30], 0
je 0x4086e7
cmp eax, esi
jb 0x4086aa
test dword [ebx + 0x10], 0x200
mov esi, dword [ebp + 8]
je 0x408706
push eax
push edx
push dword [ebx + 0x18]
call fcn.00407e58
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], ecx
jne 0x409439
jmp 0x408727
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x408727
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx], 8
test dword [ebx + 0x10], 0x200
je 0x408790
push 0x10
pop eax
cmp edi, eax
jae 0x408770
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x408743
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x408784
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x408294
xor edx, edx
mov edi, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x408792
xor edx, edx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4087af
mov eax, dword [ebx + 0x10]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], 1
push edx
push edx
push edx
call fcn.00407e58
mov dword [ebx + 0x18], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
mov edx, dword [ebp - 0xc]
jmp 0x408fd6
cmp edi, 0x20
jae 0x408800
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x4087d6
mov ecx, edx
mov edi, 0xff00
and ecx, edi
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
add eax, ecx
shr edx, 0x18
mov ecx, dword [ebp - 4]
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebx], 0xa
mov dword [ebp - 0xc], edx
mov edi, eax
jmp 0x40883d
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x4093fd
push eax
push eax
push eax
call fcn.004097ae
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x409439
cmp dword [ebx + 4], 0
je 0x40888d
mov ecx, edi
mov dword [ebx], 0x18
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x408fd6
cmp edi, 3
jae 0x4088bf
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x408895
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x408917
dec eax
je 0x4088f3
dec eax
je 0x4088eb
dec eax
jne 0x40891d
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x40891d
mov dword [ebx], 0xf
jmp 0x40891d
mov dword [ebx + 0x4c], 0x430d60
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x431560
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x40891d
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x4082ee
mov ecx, edi
and ecx, 7
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jae 0x40896c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40943c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x40893f
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x40898b
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x408294
xor eax, eax
mov dword [ebx + 0x40], ecx
mov ecx, dword [ebp - 4]
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0xe
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x4089ef
cmp esi, ecx
jbe 0x4089b0
mov esi, ecx
mov ecx, dword [ebp - 0x14]
cmp esi, ecx
jbe 0x4089b9
mov esi, ecx
test esi, esi
je 0x409439
push esi
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.00423060
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp - 8], esi
sub ecx, esi
sub dword [ebp - 0x14], esi
add dword [ebp - 0x1c], esi
sub dword [ebx + 0x40], esi
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
jmp 0x408fd9
mov dword [ebx], 0xb
jmp 0x4089e7
cmp edi, 0xe
jae 0x408a29
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0xe
jb 0x4089ff
mov eax, edx
sub edi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x60], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebx + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 0xc], edx
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
ja 0x408a76
cmp dword [ebx + 0x64], 0x1e
ja 0x408a76
and dword [ebx + 0x68], 0
push 0x10
pop eax
mov dword [ebx], eax
jmp case.0x4081b6.16
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x408348
cmp edi, 3
jae 0x408ab4
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x408a8a
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x4315e0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub edi, 3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x408a82
jmp 0x408afa
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x4315e0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x408ae5
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.004099df
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x408b49
mov dword [esi + 0x18], str.invalid_code_lengths_set
mov dword [ebx], 0x1b
jmp 0x4087c6
and dword [ebx + 0x68], 0
push 0x11
pop eax
mov dword [ebx], eax
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jae 0x408d9b
mov ecx, dword [ebx + 0x54]
xor edx, edx
mov eax, dword [ebx + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
jbe 0x408bcb
mov esi, dword [ebp - 4]
test esi, esi
je 0x409439
mov edx, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
movzx eax, byte [edx]
shl eax, cl
add dword [ebp - 0xc], eax
inc edx
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 8], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
ja 0x408b8a
mov ecx, eax
push 0x10
shr ecx, 0x10
pop edx
cmp cx, dx
jae 0x408c27
mov ecx, eax
shr ecx, 8
movzx esi, cl
jmp 0x408c04
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40943c
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
add edi, 8
cmp edi, esi
jb 0x408be2
mov edx, dword [ebp - 0x30]
movzx ecx, ah
mov ax, word [ebp - 0x2a]
sub edi, ecx
shr dword [ebp - 0xc], cl
mov word [ebx + edx*2 + 0x70], ax
inc dword [ebx + 0x68]
mov dword [ebp - 0x10], edi
jmp 0x408d63
cmp word [ebp - 0x2a], dx
mov edx, dword [ebp - 0xc]
jne 0x408c92
movzx esi, ah
lea eax, [esi + 2]
cmp edi, eax
jae 0x408c60
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40943c
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
jmp 0x408c33
mov eax, dword [ebp - 0x30]
mov ecx, esi
shr edx, cl
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test eax, eax
je 0x408d7c
movzx eax, word [ebx + eax*2 + 0x6e]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [ebp - 0x2c], eax
sub edi, 2
jmp 0x408d39
push 0x11
pop ecx
cmp word [ebp - 0x2a], cx
movzx ecx, ah
jne 0x408ce8
lea esi, [ecx + 3]
mov dword [ebp - 0x38], ecx
cmp edi, esi
jae 0x408cd7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40943c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x408cab
mov ecx, dword [ebp - 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x408d30
lea esi, [ecx + 7]
mov dword [ebp - 0x38], ecx
cmp edi, esi
jae 0x408d21
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40943c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x408cf5
mov ecx, dword [ebp - 0x38]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [ebp - 0x2c], 0
pop eax
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebp - 0x30]
add ecx, dword [ebx + 0x60]
add eax, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp eax, ecx
ja 0x408d8b
test esi, esi
je 0x408d63
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
dec esi
jne 0x408d55
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jb 0x408b66
mov esi, dword [ebp + 8]
jmp 0x408d9b
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x408294
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
cmp dword [ebx], 0x1b
je 0x4087c6
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 9
push eax
push edx
push ecx
push dword [ebx + 0x60]
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.004099df
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x408de8
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x408b3e
lea ecx, [ebx + 0x6c]
mov eax, dword [ecx]
lea edx, [ebx + 0x58]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x2f0]
push eax
mov eax, dword [ebx + 0x60]
push edx
push ecx
push dword [ebx + 0x64]
add eax, 0x38
mov dword [edx], 6
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.004099df
mov edx, dword [ebp - 0xc]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x408e32
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x408348
mov dword [ebx], 0x12
cmp ecx, 6
jb 0x408e94
mov eax, dword [ebp - 0x14]
cmp eax, 0x102
jb 0x408e94
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
push esi
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
call fcn.00409e1a
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
pop ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x408fd9
mov ecx, dword [ebx + 0x54]
xor eax, eax
mov esi, dword [ebx + 0x4c]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x38], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x408efc
mov esi, dword [ebp - 4]
test esi, esi
je 0x409439
mov eax, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0xc], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x408eb7
test al, al
je 0x408faf
test al, 0xf0
jne 0x408faf
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x30], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x28]
add esi, ecx
cmp esi, edi
jbe 0x408fa5
mov esi, dword [ebp - 4]
test esi, esi
je 0x409439
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 0xc], eax
inc esi
movzx eax, word [ebp - 0x2e]
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0xc]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x408f4d
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov ecx, eax
mov dword [ebp - 0xc], edx
shr ecx, 0x10
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x408fee
mov dword [ebx], 0x17
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x004081b6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x20
je 0x408ffa
mov dword [ebx], 0xb
jmp 0x408fd3
mov ecx, dword [ebp - 4]
test al, 0x40
je 0x409010
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x408348
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x13
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x40906d
cmp edi, esi
jae 0x409056
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x40902d
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
xor eax, eax
mov esi, dword [ebx + 0x50]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x38], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x4090db
mov esi, dword [ebp - 4]
test esi, esi
je 0x409439
mov eax, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x58]
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0xc], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x409096
test al, 0xf0
jne 0x409186
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x30], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x28]
add esi, ecx
cmp esi, edi
jbe 0x40917c
mov esi, dword [ebp - 4]
test esi, esi
je 0x409439
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 0xc], eax
inc esi
movzx eax, word [ebp - 0x2e]
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0xc]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x409124
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test al, 0x40
je 0x4091ab
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x408294
mov ecx, eax
mov dword [ebx], 0x15
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x409213
cmp edi, esi
jae 0x4091fc
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x4091d3
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x14]
sub eax, esi
mov ecx, dword [ebp - 0x20]
add eax, ecx
cmp dword [ebx + 0x44], eax
jbe 0x409234
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x408294
mov dword [ebx], 0x16
jmp 0x409242
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x409439
mov eax, ecx
mov ecx, dword [ebx + 0x44]
sub eax, esi
cmp ecx, eax
jbe 0x409277
mov esi, dword [ebx + 0x34]
sub ecx, eax
cmp ecx, dword [ebx + 0x30]
jbe 0x409269
sub ecx, dword [ebx + 0x30]
add esi, dword [ebx + 0x28]
sub esi, ecx
jmp 0x40926e
sub esi, ecx
add esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x409281
jmp 0x40927f
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
sub esi, ecx
mov ecx, eax
cmp ecx, dword [ebp - 0x14]
jbe 0x409289
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 0x14], ecx
sub eax, ecx
mov edx, dword [ebp - 0x1c]
sub esi, edx
mov dword [ebx + 0x40], eax
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x409296
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0xc]
cmp dword [ebx + 0x40], ecx
jne 0x408fd3
mov dword [ebx], 0x12
jmp 0x408fd3
cmp dword [ebp - 0x14], 0
je 0x409439
mov esi, dword [ebp - 0x1c]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [esi], al
mov dword [ebx], 0x12
jmp 0x4089e7
cmp dword [ebx + 8], 0
je 0x4093a7
cmp edi, 0x20
jae 0x40931b
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jb 0x4092ee
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
sub ecx, eax
add dword [esi + 0x14], ecx
add dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x409358
mov eax, dword [ebp - 0x1c]
push ecx
sub eax, ecx
cmp dword [ebx + 0x10], 0
push eax
push dword [ebx + 0x18]
je 0x409344
call fcn.00407e58
jmp 0x409349
call fcn.004097ae
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, edx
xor eax, eax
cmp dword [ebx + 0x10], eax
jne 0x409389
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp ecx, dword [ebx + 0x18]
mov ecx, dword [ebp - 4]
je 0x40939d
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x408348
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0x19
xor eax, eax
cmp dword [ebx + 8], eax
je 0x409423
cmp dword [ebx + 0x10], eax
je 0x409423
cmp edi, 0x20
jae 0x4093ec
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x409439
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jb 0x4093c1
xor eax, eax
cmp edx, dword [ebx + 0x1c]
je 0x40941e
mov dword [esi + 0x18], str.incorrect_length_check
jmp 0x408294
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x408fe6
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x409439
mov dword [ebp - 0x24], 0xfffffffd
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], ecx
xor ecx, ecx
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], edx
mov dword [ebx + 0x3c], edi
mov edi, dword [ebp - 0x20]
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x28], ecx
jne 0x409470
cmp dword [ebx], 0x18
jge 0x40948c
cmp edi, dword [esi + 0x10]
je 0x40948c
push edi
push esi
call fcn.004096db
pop ecx
pop ecx
test eax, eax
je 0x40948a
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x408fe6
xor ecx, ecx
mov edx, dword [ebp - 0x34]
sub edx, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], edx
add dword [esi + 0x14], edi
add dword [ebx + 0x1c], edi
mov dword [ebp - 0x34], edx
cmp dword [ebx + 8], ecx
je 0x4094d3
test edi, edi
je 0x4094d3
mov eax, dword [esi + 0xc]
push edi
sub eax, edi
push eax
push dword [ebx + 0x18]
cmp dword [ebx + 0x10], ecx
je 0x4094c0
call fcn.00407e58
jmp 0x4094c5
call fcn.004097ae
mov edx, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov dword [esi + 0x30], eax
cmp dword [ebx], 0xb
jne 0x4094dd
mov ecx, 0x80
mov eax, dword [ebx + 4]
neg eax
sbb eax, eax
and eax, 0x40
add eax, ecx
add eax, dword [ebx + 0x3c]
mov dword [esi + 0x2c], eax
test edx, edx
jne 0x4094f7
test edi, edi
je 0x4094fd
cmp dword [ebp + 0xc], 4
jne 0x40950f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x408fe7
push 0xfffffffffffffffb
jmp 0x408fe6
mov eax, dword [ebp - 0x24]
jmp 0x408fe7