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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x28], esi
push edi
test esi, esi
je case.default.0x404174
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je case.default.0x404174
xor edi, edi
cmp dword [esi + 0xc], edi
je case.default.0x404174
cmp dword [esi], edi
jne 0x404129
cmp dword [esi + 4], edi
jne case.default.0x404174
cmp dword [ebp], 0xb
jne 0x404136
mov dword [ebp], 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
jmp 0x404b42
jmp dword [eax*4 + 0x4055d5]
cmp dword [ebp + 8], 0
jne 0x40418d
mov dword [ebp], 0xc
jmp 0x404b42
push 0x10
pop eax
cmp ebx, eax
jae 0x4041cb
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x10
jb 0x404198
test byte [ebp + 8], 2
je 0x404210
cmp edx, 0x8b1f
jne 0x404210
push 0x1f
pop eax
push 2
lea edx, [esp + 0x28]
mov dword [ebp + 0x18], edi
xor ecx, ecx
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x8b
call fcn.004027de
mov edx, edi
mov dword [ebp + 0x18], eax
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 1
jmp 0x404b3e
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x10], edi
test eax, eax
je 0x40421e
or dword [eax + 0x30], 0xffffffff
test byte [ebp + 8], 1
je 0x4042bb
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 [esp + 0x14]
jne 0x4042bb
mov eax, edx
and al, 0xf
cmp al, 8
je 0x40425f
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebp], 0x1d
jmp 0x404b3e
shr edx, 4
sub ebx, 4
mov ecx, edx
mov dword [esp + 0x14], edx
and ecx, 0xf
mov dword [esp + 0x1c], ebx
add ecx, 8
cmp dword [ebp + 0x24], 0
jne 0x4042ad
mov dword [ebp + 0x24], ecx
xor ebx, ebx
shr edx, 8
inc ebx
not edx
mov eax, ebx
mov dword [ebp + 0x18], ebx
shl eax, cl
and edx, 2
or edx, 9
mov dword [ebp + 0x14], eax
mov dword [esi + 0x30], ebx
mov ebx, edi
mov dword [ebp], edx
mov edx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x404b3e
cmp ecx, dword [ebp + 0x24]
jbe 0x40427e
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x404253
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x404253
push 0x10
pop eax
cmp ebx, eax
jae 0x404302
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x10
jb 0x4042cf
mov dword [ebp + 0x10], edx
cmp dl, 8
je 0x40431d
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebp], 0x1d
jmp 0x404b42
test edx, 0xe000
je 0x40432e
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x404311
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x40433f
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebp + 0x10], 0x200
je 0x404364
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.004027de
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov edx, edi
mov dword [esp + 0x14], edx
mov ebx, edi
mov dword [ebp], 2
cmp ebx, 0x20
jae 0x4043af
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x404380
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4043b9
mov dword [eax + 4], edx
test dword [ebp + 0x10], 0x200
je 0x4043f0
mov ecx, dword [ebp + 0x18]
mov eax, edx
shr eax, 8
mov byte [esp + 0x25], al
mov eax, edx
mov byte [esp + 0x24], dl
shr edx, 0x18
shr eax, 0x10
mov byte [esp + 0x27], dl
lea edx, [esp + 0x24]
push 4
mov byte [esp + 0x2a], al
call fcn.004027de
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov edx, edi
mov dword [esp + 0x14], edx
mov ebx, edi
mov dword [ebp], 3
push 0x10
pop eax
cmp ebx, eax
jae 0x40443d
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x40440e
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x404455
movzx eax, dl
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebp + 0x20]
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [ebp + 0x10], 0x200
je 0x40447a
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.004027de
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov edx, edi
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 4
test dword [ebp + 0x10], 0x400
je 0x404512
push 0x10
pop eax
cmp ebx, eax
jae 0x4044d4
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x4044a5
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x40], edx
test eax, eax
je 0x4044e1
mov dword [eax + 0x14], edx
test dword [ebp + 0x10], 0x200
je 0x404506
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.004027de
mov dword [ebp + 0x18], eax
mov ebx, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebx
jmp 0x40451c
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40451c
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x10]
mov dword [ebp], 5
test dword [ebp + 0x10], 0x400
je 0x4045b7
mov edi, dword [ebp + 0x40]
cmp edi, ecx
cmova edi, ecx
test edi, edi
je 0x4045ac
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x40457c
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40457c
mov edx, dword [ecx + 0x14]
sub edx, dword [ebp + 0x40]
mov ecx, dword [ecx + 0x18]
lea eax, [edi + edx]
cmp eax, ecx
jbe 0x404566
sub ecx, edx
jmp 0x404568
mov ecx, edi
mov eax, dword [esp + 0x3c]
push ecx
push dword [esp + 0x1c]
add eax, edx
push eax
call fcn.0040bb10
add esp, 0xc
test dword [ebp + 0x10], 0x200
je 0x40459b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404598
mov ecx, dword [ebp + 0x18]
mov edx, eax
push edi
call fcn.004027de
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x10]
add dword [esp + 0x18], edi
sub ecx, edi
sub dword [ebp + 0x40], edi
mov dword [esp + 0x10], ecx
xor edi, edi
cmp dword [ebp + 0x40], edi
jne 0x4054c8
mov dword [ebp + 0x40], edi
mov dword [ebp], 6
test dword [ebp + 0x10], 0x800
je 0x404658
test ecx, ecx
je 0x4054c8
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
movzx eax, byte [edi + ebx]
inc edi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404607
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x404607
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x404607
mov eax, dword [esp + 0x38]
mov byte [edx + ecx], al
inc dword [ebp + 0x40]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x404613
cmp edi, esi
jb 0x4045de
test dword [ebp + 0x10], 0x200
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
je 0x40463e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40463b
mov ecx, dword [ebp + 0x18]
mov edx, eax
push edi
call fcn.004027de
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], edi
sub eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4054cc
xor edi, edi
jmp 0x404662
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404662
mov dword [eax + 0x1c], edi
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x40], edi
mov dword [ebp], 7
test dword [ebp + 0x10], 0x1000
je 0x404707
test ecx, ecx
je 0x4054c8
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
movzx eax, byte [edi + ebx]
inc edi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4046b6
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4046b6
mov ecx, dword [ebp + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x4046b6
mov eax, dword [esp + 0x38]
mov byte [edx + ecx], al
inc dword [ebp + 0x40]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4046c2
cmp edi, esi
jb 0x40468d
test dword [ebp + 0x10], 0x200
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
je 0x4046ed
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4046ea
mov ecx, dword [ebp + 0x18]
mov edx, eax
push edi
call fcn.004027de
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], edi
sub eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4054cc
xor edi, edi
jmp 0x404711
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404711
mov dword [eax + 0x24], edi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebp], 8
test dword [ebp + 0x10], 0x200
je 0x404787
push 0x10
pop eax
cmp ebx, eax
jae 0x404767
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x10
jb 0x404734
movzx eax, word [ebp + 0x18]
cmp edx, eax
je 0x40477b
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x404253
mov edx, edi
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4047a4
mov eax, dword [ebp + 0x10]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [eax + 0x30], 1
mov dword [ebp + 0x18], edi
mov dword [esi + 0x30], edi
mov dword [ebp], 0xb
jmp 0x404b3e
cmp ebx, 0x20
jae 0x4047ee
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jb 0x4047bf
mov ecx, edx
mov ebx, 0xff00
and ecx, ebx
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, ebx
add eax, ecx
shr edx, 0x18
mov ecx, dword [esp + 0x10]
add eax, edx
mov dword [ebp + 0x18], eax
mov edx, edi
mov dword [esi + 0x30], eax
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [ebp], 0xa
cmp dword [ebp + 0xc], edi
je 0x40548b
xor eax, eax
inc eax
mov dword [ebp + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebp], 0xb
cmp dword [ebp + 4], edi
je 0x404863
mov ecx, ebx
mov dword [ebp], 0x1a
and ecx, 7
shr edx, cl
sub ebx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x404b3e
cmp ebx, 3
jae 0x40489b
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x40486c
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 4], eax
mov eax, edx
and eax, 3
sub eax, edi
je 0x4048f4
dec eax
je 0x4048cf
dec eax
je 0x4048c7
dec eax
jne 0x4048fb
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebp], 0x1d
jmp 0x4048fb
push 0x10
pop eax
mov dword [ebp], eax
jmp 0x4048fb
mov dword [ebp + 0x4c], 0x4256a8
mov dword [ebp + 0x54], 9
mov dword [ebp + 0x50], 0x425ed8
mov dword [ebp + 0x58], 5
mov dword [ebp], 0x13
jmp 0x4048fb
mov dword [ebp], 0xd
shr edx, 2
sub ebx, 3
jmp 0x4042a0
mov ecx, ebx
and ecx, 7
shr edx, cl
sub ebx, ecx
jmp 0x404936
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4054cc
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
cmp ebx, 0x20
jb 0x404911
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x404962
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x404253
mov edx, edi
mov dword [ebp + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0xe
mov dword [ebp], 0xf
mov edi, dword [ebp + 0x40]
test edi, edi
je 0x4049d5
cmp edi, ecx
cmova edi, ecx
cmp edi, dword [esp + 0x20]
cmova edi, dword [esp + 0x20]
test edi, edi
je 0x4054c8
push edi
push dword [esp + 0x1c]
push dword [esp + 0x30]
call fcn.0040bb10
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add dword [esp + 0x18], edi
sub ecx, edi
sub dword [esp + 0x20], edi
add dword [esp + 0x28], edi
sub dword [ebp + 0x40], edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
xor edi, edi
jmp 0x404b42
mov dword [ebp], 0xb
jmp 0x4049ce
cmp ebx, 0xe
jae 0x404a16
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 0xe
jb 0x4049e7
mov eax, edx
sub ebx, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [esp + 0x1c], ebx
mov dword [ebp + 0x60], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebp + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [esp + 0x14], edx
cmp dword [ebp + 0x60], 0x11e
mov dword [ebp + 0x5c], eax
ja 0x404a65
cmp dword [ebp + 0x64], 0x1e
ja 0x404a65
push 0x11
pop eax
mov dword [ebp + 0x68], edi
mov dword [ebp], eax
jmp case.0x404174.17
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x404311
cmp ebx, 3
jae 0x404aa9
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, 3
jb 0x404a7a
mov eax, dword [ebp + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x14], edx
movzx eax, word [eax*2 + 0x425eb0]
mov word [ebp + eax*2 + 0x70], cx
inc dword [ebp + 0x68]
sub ebx, 3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x5c]
jb 0x404a71
jmp 0x404af2
mov eax, dword [ebp + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x425eb0]
mov word [ebp + eax*2 + 0x70], cx
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x13
jb 0x404add
lea eax, [ebp + 0x530]
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebp + 0x54]
lea eax, [ebp + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea edx, [ebp + 0x70]
xor ecx, ecx
call fcn.00405651
mov dword [esp + 0x30], eax
test eax, eax
je 0x404b59
mov dword [esi + 0x18], str.invalid_code_lengths_set
mov dword [ebp], 0x1d
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
cmp eax, 0x1e
jbe switch.0x00404174
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [ebp + 0x68], edi
mov dword [ebp], 0x12
jmp case.0x404174.18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4054cc
mov edx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x10], eax
mov ecx, ebx
movzx eax, byte [edx]
shl eax, cl
add dword [esp + 0x14], eax
inc edx
mov dword [esp + 0x18], edx
add ebx, 8
mov ecx, dword [ebp + 0x54]
xor edx, edx
mov eax, dword [ebp + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x38], eax
cmp ecx, ebx
ja 0x404b68
mov edx, eax
push 0x10
shr edx, 0x10
pop ecx
cmp dx, cx
jae 0x404bdd
shr eax, 8
movzx ecx, al
shr dword [esp + 0x14], cl
sub ebx, ecx
mov word [ebp + edi*2 + 0x70], dx
inc dword [ebp + 0x68]
mov dword [esp + 0x1c], ebx
jmp case.0x404174.18
jne 0x404c52
mov ecx, eax
shr ecx, 8
movzx edi, cl
add edi, 2
jmp 0x404c13
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4054c8
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx]
mov ecx, ebx
shl edx, cl
add dword [esp + 0x14], edx
inc dword [esp + 0x18]
add ebx, 8
cmp ebx, edi
jb 0x404bec
mov edx, dword [esp + 0x14]
movzx ecx, ah
mov eax, dword [esp + 0x3c]
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x404d4a
movzx eax, word [ebp + eax*2 + 0x6e]
mov edi, edx
and edi, 3
shr edx, 2
add edi, 3
mov dword [esp + 0x38], eax
sub ebx, 2
jmp 0x404d05
mov edx, dword [esp + 0x14]
push 0x11
pop ecx
cmp word [esp + 0x3a], cx
movzx ecx, ah
jne 0x404cb0
lea edi, [ecx + 3]
mov dword [esp + 0x38], ecx
cmp ebx, edi
jae 0x404c9f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4054cc
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp ebx, edi
jb 0x404c6e
mov ecx, dword [esp + 0x38]
shr edx, cl
mov edi, edx
and edi, 7
add edi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x404cfb
lea edi, [ecx + 7]
mov dword [esp + 0x38], ecx
cmp ebx, edi
jae 0x404cec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4054cc
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp ebx, edi
jb 0x404cbb
mov ecx, dword [esp + 0x38]
shr edx, cl
mov edi, edx
and edi, 0x7f
add edi, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [esp + 0x3c], 0
pop eax
sub eax, ecx
add ebx, eax
mov ecx, dword [ebp + 0x64]
mov eax, dword [esp + 0x3c]
add ecx, dword [ebp + 0x60]
add eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp eax, ecx
ja 0x404d5f
test edi, edi
je case.0x404174.18
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0x68]
mov word [ebp + eax*2 + 0x70], cx
inc dword [ebp + 0x68]
dec edi
jne 0x404d25
mov eax, dword [ebp + 0x64]
add eax, dword [ebp + 0x60]
mov edi, dword [ebp + 0x68]
mov dword [esp + 0x3c], edi
cmp edi, eax
jb 0x404b90
jmp 0x404d6d
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp], 0x1d
xor edi, edi
jmp 0x404b3e
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp], 0x1d
xor edi, edi
cmp dword [ebp], 0x1d
je 0x404b3a
cmp word [ebp + 0x270], di
jne 0x404d8e
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x404b33
lea eax, [ebp + 0x530]
lea edi, [ebp + 0x6c]
mov dword [ebp + 0x4c], eax
mov dword [edi], eax
lea ecx, [ebp + 0x54]
lea eax, [ebp + 0x2f0]
mov dword [ecx], 9
push eax
push ecx
push edi
push dword [ebp + 0x60]
xor ecx, ecx
lea edx, [ebp + 0x70]
inc ecx
call fcn.00405651
mov dword [esp + 0x30], eax
test eax, eax
je 0x404dd1
mov edx, dword [esp + 0x14]
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x404d51
mov eax, dword [edi]
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x2f0]
push eax
mov eax, dword [ebp + 0x60]
push ecx
push edi
push dword [ebp + 0x64]
lea edx, [eax*2 + 0x70]
mov dword [ecx], 6
push 2
add edx, ebp
pop ecx
call fcn.00405651
mov edx, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
test eax, eax
je 0x404e1d
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x404311
mov dword [ebp], 0x13
mov dword [ebp], 0x14
cmp ecx, 6
jb 0x404ea2
mov eax, dword [esp + 0x20]
cmp eax, 0x102
jb 0x404ea2
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, esi
mov dword [esi], eax
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x3c], ebx
call fcn.00403add
cmp dword [ebp], 0xb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jne 0x404b42
or dword [ebp + 0x1bc4], 0xffffffff
jmp 0x404b42
mov ecx, dword [ebp + 0x54]
xor eax, eax
inc eax
mov dword [ebp + 0x1bc4], edi
mov edi, dword [ebp + 0x4c]
shl eax, cl
dec eax
and eax, edx
mov eax, dword [edi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x404f16
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4054cc
dec eax
mov ecx, ebx
mov dword [esp + 0x10], eax
add ebx, 8
movzx eax, byte [edi]
shl eax, cl
mov ecx, dword [ebp + 0x54]
add edx, eax
mov eax, dword [ebp + 0x4c]
inc edi
mov dword [esp + 0x14], edx
xor edx, edx
inc edx
mov dword [esp + 0x18], edi
shl edx, cl
dec edx
mov dword [esp + 0x1c], ebx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x404ec9
test al, al
je 0x404fd5
test al, 0xf0
jne 0x404fd5
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [ebp + 0x4c]
add edi, eax
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
add esi, ecx
cmp esi, ebx
jbe 0x404fc0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4054c8
dec esi
movzx edi, dh
mov dword [esp + 0x10], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x14], eax
inc esi
movzx eax, word [esp + 0x3e]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x404f67
mov esi, dword [esp + 0x2c]
movzx ecx, dh
mov edx, dword [esp + 0x14]
shr edx, cl
sub ebx, ecx
mov dword [ebp + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc4], ecx
sub ebx, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 0x40], ecx
test al, al
jne 0x405007
mov dword [ebp], 0x19
jmp 0x404d58
test al, 0x20
je 0x40501e
or dword [ebp + 0x1bc4], 0xffffffff
mov dword [ebp], 0xb
jmp 0x404d58
mov ecx, dword [esp + 0x10]
test al, 0x40
je 0x405039
mov dword [esi + 0x18], str.invalid_literal_length_code
mov dword [ebp], 0x1d
jmp 0x4049ce
movzx eax, al
and eax, 0xf
mov dword [ebp], 0x15
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x48]
test esi, esi
je 0x4050a1
cmp ebx, esi
jae 0x405082
mov edi, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [edi]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
inc edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
cmp ebx, esi
jb 0x405058
xor eax, eax
mov ecx, esi
inc eax
sub ebx, esi
shl eax, cl
dec eax
mov dword [esp + 0x1c], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x40], eax
add dword [ebp + 0x1bc4], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x1bc8], eax
mov dword [ebp], 0x16
mov ecx, dword [ebp + 0x58]
xor eax, eax
mov esi, dword [ebp + 0x50]
inc eax
shl eax, cl
dec eax
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x40511f
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x4054c8
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
dec esi
mov ecx, dword [ebp + 0x58]
add edx, eax
mov eax, dword [ebp + 0x50]
inc edi
mov dword [esp + 0x14], edx
add ebx, 8
xor edx, edx
mov dword [esp + 0x10], esi
inc edx
mov dword [esp + 0x18], edi
shl edx, cl
dec edx
mov dword [esp + 0x1c], ebx
and edx, dword [esp + 0x14]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x4050d6
test al, 0xf0
jne 0x4051d2
mov ebx, eax
movzx ecx, al
shr ebx, 8
xor edi, edi
movzx esi, bl
inc edi
add ecx, esi
mov edx, eax
shl edi, cl
mov ecx, esi
dec edi
shr eax, 0x10
and edi, dword [esp + 0x14]
shr edi, cl
mov ecx, dword [ebp + 0x50]
add edi, eax
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
add esi, ecx
cmp esi, ebx
jbe 0x4051c1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4054c8
dec esi
movzx edi, dh
mov dword [esp + 0x10], esi
mov ecx, ebx
mov esi, dword [esp + 0x18]
add ebx, 8
movzx eax, byte [esi]
shl eax, cl
add dword [esp + 0x14], eax
inc esi
movzx eax, word [esp + 0x3e]
mov dword [esp + 0x18], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [esp + 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebp + 0x50]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x405168
movzx ecx, dh
mov edx, dword [esp + 0x14]
sub ebx, ecx
shr edx, cl
add dword [ebp + 0x1bc4], ecx
mov esi, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc4], ecx
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
test al, 0x40
je 0x405200
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x404d51
mov ecx, eax
mov dword [ebp], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + 0x48]
test edi, edi
je 0x405278
cmp ebx, edi
jae 0x405259
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp ebx, edi
jb 0x40522b
xor eax, eax
mov ecx, edi
inc eax
sub ebx, edi
shl eax, cl
dec eax
mov dword [esp + 0x1c], ebx
and eax, edx
shr edx, cl
add dword [ebp + 0x44], eax
add dword [ebp + 0x1bc4], edi
mov dword [esp + 0x14], edx
mov dword [ebp], 0x18
xor edi, edi
cmp dword [esp + 0x20], 0
je 0x4054c8
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x44]
cmp ecx, eax
jbe 0x4052d6
sub ecx, eax
cmp ecx, dword [ebp + 0x2c]
jbe 0x4052b6
cmp dword [ebp + 0x1bc0], edi
je 0x4052b6
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x404253
mov edi, dword [ebp + 0x34]
cmp ecx, dword [ebp + 0x30]
jbe 0x4052c8
sub ecx, dword [ebp + 0x30]
add edi, dword [ebp + 0x28]
sub edi, ecx
jmp 0x4052cd
sub edi, ecx
add edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x40]
cmp ecx, eax
jbe 0x4052e1
jmp 0x4052df
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0x40]
sub edi, ecx
mov ecx, eax
cmp ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
cmova ecx, dword [esp + 0x20]
sub dword [esp + 0x20], ecx
sub eax, ecx
mov dword [ebp + 0x40], eax
sub edi, edx
mov al, byte [edi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x4052f9
xor edi, edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
cmp dword [ebp + 0x40], edi
jne 0x404b3e
mov dword [ebp], 0x14
jmp 0x404b3e
cmp dword [esp + 0x20], 0
je 0x4054c8
mov esi, dword [esp + 0x28]
mov al, byte [ebp + 0x40]
inc dword [esp + 0x28]
dec dword [esp + 0x20]
mov byte [esi], al
mov esi, dword [esp + 0x2c]
mov dword [ebp], 0x14
jmp 0x404b42
cmp dword [ebp + 8], edi
je 0x405431
cmp ebx, 0x20
jae 0x405392
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x40535f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
sub ecx, eax
add dword [esi + 0x14], ecx
add dword [ebp + 0x1c], ecx
test ecx, ecx
je 0x4053e1
cmp dword [ebp + 0x10], edi
je 0x4053c4
mov eax, dword [esp + 0x28]
sub eax, ecx
jne 0x4053b7
mov eax, edi
jmp 0x4053d7
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, eax
call fcn.004027de
jmp 0x4053d3
mov edx, dword [esp + 0x28]
push ecx
sub edx, ecx
mov ecx, dword [ebp + 0x18]
call fcn.00401040
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebp + 0x10], edi
cmovne ecx, edx
cmp ecx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
je 0x405425
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x404311
mov edx, edi
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0x1b
cmp dword [ebp + 8], edi
je 0x4054b5
cmp dword [ebp + 0x10], edi
je 0x4054b5
cmp ebx, 0x20
jae 0x40547a
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x4054c8
movzx eax, byte [eax]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x40544b
cmp edx, dword [ebp + 0x1c]
je 0x4054af
mov dword [esi + 0x18], str.incorrect_length_check
jmp 0x404253
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], ebx
push 2
jmp 0x404b50
mov dword [esp + 0x14], edi
mov ebx, edi
mov dword [ebp], 0x1c
xor eax, eax
inc eax
jmp 0x4054c4
push 0xfffffffffffffffd
pop eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi], ecx
mov dword [ebp + 0x3c], ebx
xor ebx, ebx
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x28], ebx
jne 0x405507
cmp edi, dword [esi + 0x10]
je 0x405529
cmp dword [ebp], 0x1d
jge 0x405529
mov edx, dword [esi + 0xc]
mov eax, edi
sub eax, dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00404030
test eax, eax
je 0x405529
mov dword [ebp], 0x1e
push 0xfffffffffffffffc
jmp 0x404b50
mov edx, dword [esp + 0x40]
sub edx, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], edx
add dword [esi + 0x14], edi
add dword [ebp + 0x1c], edi
mov dword [esp + 0x40], edx
cmp dword [ebp + 8], ebx
je 0x405579
test edi, edi
je 0x405579
mov edx, dword [esi + 0xc]
cmp dword [ebp + 0x10], ebx
je 0x405564
sub edx, edi
jne 0x405559
mov eax, ebx
jmp 0x40556f
mov ecx, dword [ebp + 0x18]
push edi
call fcn.004027de
jmp 0x40556f
mov ecx, dword [ebp + 0x18]
sub edx, edi
push edi
call fcn.00401040
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x18], eax
mov dword [esi + 0x30], eax
cmp dword [ebp], 0x13
je 0x405585
cmp dword [ebp], 0xe
jne 0x40558a
mov ebx, 0x100
mov ecx, dword [ebp + 4]
neg ecx
mov dword [esp + 0x40], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebp], 0xb
cmove eax, dword [esp + 0x40]
add ecx, ebx
add eax, ecx
add eax, dword [ebp + 0x3c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x30]
test edx, edx
jne 0x404b51
test edi, edi
jne 0x404b51
push 0xfffffffffffffffb
test eax, eax
pop ecx
cmove eax, ecx
jmp 0x404b51