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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x402929
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x24], edi
test edi, edi
je 0x402929
cmp dword [ecx + 0xc], 0
je 0x402929
cmp dword [ecx], 0
jne 0x401328
cmp dword [ecx + 4], 0
jne 0x402929
cmp dword [edi], 0xb
jne 0x401333
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
push esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], ebp
cmp eax, 0x1e
ja case.default.0x401374
jmp dword [eax*4 + 0x402934]
mov eax, dword [edi + 8]
test eax, eax
jne 0x40138a
mov dword [edi], 0xc
jmp 0x401408
cmp esi, 0x10
jae 0x4013be
nop
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x10
jb 0x401390
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x48]
test al, 2
je 0x401420
cmp edx, 0x8b1f
jne 0x401420
push 0
push 0
push 0
call fcn.00402a10
push 2
lea edx, [esp + 0x2c]
mov ecx, eax
mov dword [edi + 0x18], eax
mov word [esp + 0x2c], 0x8b1f
call fcn.00402a30
xor edx, edx
add esp, 0x10
xor esi, esi
mov dword [edi + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [edi], 1
mov ecx, dword [esp + 0x48]
mov eax, dword [edi]
cmp eax, 0x1e
jbe switch.0x00401374
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x401435
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x4014fe
movzx ecx, dl
mov eax, edx
shl ecx, 8
shr eax, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
mov edx, dword [esp + 0x10]
jne 0x4014fa
mov eax, edx
and al, 0xf
cmp al, 8
je 0x40147c
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.unknown_compression_method
mov dword [edi], 0x1d
jmp 0x401408
mov eax, dword [edi + 0x24]
shr edx, 4
mov ecx, edx
and ecx, 0xf
sub esi, 4
add ecx, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
test eax, eax
jne 0x4014e0
mov dword [edi + 0x24], ecx
mov eax, 1
shl eax, cl
push 0
xor edx, edx
xor ecx, ecx
mov dword [edi + 0x14], eax
call fcn.00402d00
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
shr edx, 8
not edx
and edx, 2
or edx, 9
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [edi], edx
xor edx, edx
add esp, 4
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jmp 0x401408
cmp ecx, eax
jbe 0x40149c
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_window_size
mov dword [edi], 0x1d
jmp 0x401408
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.incorrect_header_check
mov dword [edi], 0x1d
jmp 0x401408
cmp esi, 0x10
jae 0x401540
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x10
jb 0x401515
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x10], edx
cmp dl, 8
je 0x40155a
mov dword [ecx + 0x18], str.unknown_compression_method
mov dword [edi], 0x1d
jmp 0x401408
test edx, 0xe000
je 0x401574
mov dword [ecx + 0x18], str.unknown_header_flags_set
mov dword [edi], 0x1d
jmp 0x401408
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x401585
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [edi + 0x10], 0x200
je 0x4015ad
mov ecx, dword [edi + 0x18]
mov byte [esp + 0x1c], dl
shr edx, 8
mov byte [esp + 0x1d], dl
push 2
lea edx, [esp + 0x20]
call fcn.00402a30
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [edi], 2
jmp 0x4015c2
cmp esi, 0x20
jae 0x4015e5
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 0x20
jb 0x4015c2
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4015ef
mov dword [eax + 4], edx
test dword [edi + 0x10], 0x200
je 0x401629
mov ecx, dword [edi + 0x18]
mov eax, edx
shr eax, 8
mov byte [esp + 0x1d], al
mov eax, edx
mov byte [esp + 0x1c], dl
shr edx, 0x18
shr eax, 0x10
mov byte [esp + 0x1f], dl
push 4
lea edx, [esp + 0x20]
mov byte [esp + 0x22], al
call fcn.00402a30
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [edi], 3
jmp 0x401640
cmp esi, 0x10
jae 0x401663
mov edi, edi
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 0x10
jb 0x401640
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x40167b
movzx eax, dl
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x20]
mov ecx, edx
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [edi + 0x10], 0x200
je 0x4016a3
mov ecx, dword [edi + 0x18]
mov byte [esp + 0x1c], dl
shr edx, 8
mov byte [esp + 0x1d], dl
push 2
lea edx, [esp + 0x20]
call fcn.00402a30
add esp, 4
mov dword [edi + 0x18], eax
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x40172b
cmp esi, 0x10
jae 0x4016e6
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 0x10
jb 0x4016c3
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], edx
test eax, eax
je 0x4016f3
mov dword [eax + 0x14], edx
test dword [edi + 0x10], 0x200
je 0x40171b
mov ecx, dword [edi + 0x18]
mov byte [esp + 0x1c], dl
shr edx, 8
mov byte [esp + 0x1d], dl
push 2
lea edx, [esp + 0x20]
call fcn.00402a30
add esp, 4
mov dword [edi + 0x18], eax
xor esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
jmp 0x401739
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401739
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x4017d0
mov ecx, dword [edi + 0x40]
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4017c6
mov edx, dword [edi + 0x20]
test edx, edx
je 0x40179e
mov eax, dword [edx + 0x10]
mov dword [esp + 0x34], eax
test eax, eax
je 0x40179e
mov eax, dword [edx + 0x14]
sub eax, dword [edi + 0x40]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x3c], eax
add eax, ecx
cmp eax, edx
mov eax, dword [esp + 0x3c]
jbe 0x401789
sub edx, eax
jmp 0x40178b
mov edx, ecx
add eax, dword [esp + 0x34]
push edx
push ebx
push eax
call fcn.004ae030
mov ecx, dword [esp + 0x44]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x4017b7
push ecx
push ebx
push dword [edi + 0x18]
call fcn.00402a10
add esp, 0xc
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x38]
add ebx, eax
sub ebp, eax
sub dword [edi + 0x40], eax
mov dword [esp + 0x14], ebx
cmp dword [edi + 0x40], 0
jne 0x402810
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x401875
test ebp, ebp
je 0x402810
xor ecx, ecx
movzx eax, byte [ecx + ebx]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x20]
inc ecx
test eax, eax
je 0x401823
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x401823
mov esi, dword [edi + 0x40]
cmp esi, dword [eax + 0x20]
jae 0x401823
mov ebx, dword [esp + 0x34]
mov eax, esi
mov byte [edx + eax], bl
inc dword [edi + 0x40]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40182f
cmp ecx, ebp
jb 0x4017f4
test dword [edi + 0x10], 0x200
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
je 0x401863
test ebx, ebx
jne 0x401848
xor edx, edx
jmp 0x401860
push ecx
mov ecx, dword [edi + 0x18]
mov edx, ebx
call fcn.00402a30
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [edi + 0x18], edx
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x402810
jmp 0x401883
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401883
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x401931
test ebp, ebp
je 0x402810
xor ecx, ecx
jmp 0x4018b0
movzx eax, byte [ecx + ebx]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x20]
inc ecx
test eax, eax
je 0x4018df
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4018df
mov esi, dword [edi + 0x40]
cmp esi, dword [eax + 0x28]
jae 0x4018df
mov ebx, dword [esp + 0x34]
mov eax, esi
mov byte [edx + eax], bl
inc dword [edi + 0x40]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4018eb
cmp ecx, ebp
jb 0x4018b0
test dword [edi + 0x10], 0x200
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
je 0x40191f
test ebx, ebx
jne 0x401904
xor edx, edx
jmp 0x40191c
push ecx
mov ecx, dword [edi + 0x18]
mov edx, ebx
call fcn.00402a30
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [edi + 0x18], edx
add ebx, ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x402810
jmp 0x40193f
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40193f
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x4019aa
cmp esi, 0x10
jae 0x40197e
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x10
jb 0x401957
movzx eax, word [edi + 0x18]
cmp edx, eax
je 0x40199c
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.header_crc_mismatch
mov dword [edi], 0x1d
jmp 0x401408
xor esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x4019c7
mov eax, dword [edi + 0x10]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [edi + 0x20]
mov dword [eax + 0x30], 1
push 0
push 0
push 0
call fcn.00402a10
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [edi], 0xb
jmp 0x401408
cmp esi, 0x20
jae 0x401a16
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 0x20
jb 0x4019f3
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
mov ecx, dword [esp + 0x48]
shr edx, 0x18
add eax, edx
xor edx, edx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x4027c2
push 0
xor edx, edx
xor ecx, ecx
call fcn.00402d00
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
add esp, 4
mov dword [edi], 0xb
mov eax, dword [esp + 0x4c]
cmp eax, 5
je 0x402810
cmp eax, 6
je 0x402810
cmp dword [edi + 4], 0
je 0x401ab5
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x18], esi
mov dword [edi], 0x1a
mov dword [esp + 0x10], edx
jmp 0x401404
cmp esi, 3
jae 0x401ae3
lea ebx, [ebx]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 3
jb 0x401ac0
mov eax, edx
and eax, 1
shr edx, 1
mov dword [edi + 4], eax
mov eax, edx
and eax, 3
cmp eax, 3
ja case.default.0x401af7
jmp dword [eax*4 + 0x4029b0]
mov dword [edi], 0xd
mov ecx, dword [esp + 0x48]
shr edx, 2
sub esi, 3
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jmp 0x401408
cmp dword [esp + 0x4c], 6
mov dword [edi + 0x4c], 0x5ca888
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x5cb0b0
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
jne case.default.0x401af7
shr edx, 2
mov dword [esp + 0x10], edx
sub esi, 3
jmp 0x402810
mov ecx, dword [esp + 0x48]
shr edx, 2
sub esi, 3
mov dword [edi], 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jmp 0x401408
mov ecx, dword [esp + 0x48]
shr edx, 2
sub esi, 3
mov dword [ecx + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jmp 0x401408
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
cmp esi, 0x20
jae 0x401bd7
lea ebx, [ebx]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x20
jb 0x401bb0
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x401c00
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_stored_block_lengths
mov dword [edi], 0x1d
jmp 0x401408
xor edx, edx
xor esi, esi
cmp dword [esp + 0x4c], 6
mov dword [edi + 0x40], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [edi], 0xe
je 0x402810
mov ecx, dword [esp + 0x48]
mov dword [edi], 0xf
mov eax, dword [edi + 0x40]
test eax, eax
je 0x401c79
cmp eax, ebp
cmova eax, ebp
cmp eax, dword [esp + 0x20]
cmova eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x402810
push eax
push ebx
push dword [esp + 0x2c]
call fcn.004ae030
mov eax, dword [esp + 0x48]
sub dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
mov edx, dword [esp + 0x1c]
add ebx, eax
add esp, 0xc
sub ebp, eax
sub dword [edi + 0x40], eax
mov dword [esp + 0x14], ebx
jmp 0x401404
mov dword [edi], 0xb
jmp 0x401408
cmp esi, 0xe
jae 0x401cb7
lea esp, [esp]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 0xe
jb 0x401c90
mov ecx, dword [esp + 0x48]
mov eax, edx
and eax, 0x1f
add eax, 0x101
mov dword [edi + 0x60], eax
shr edx, 5
mov eax, edx
and eax, 0x1f
inc eax
shr edx, 5
mov dword [edi + 0x64], eax
mov eax, edx
and eax, 0xf
add eax, 4
shr edx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x5c], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
ja 0x401dec
cmp dword [edi + 0x64], 0x1e
ja 0x401dec
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x5c]
jae 0x401d71
cmp esi, 3
jae 0x401d43
lea ecx, [ecx]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
add esi, 8
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, 3
jb 0x401d20
mov eax, dword [edi + 0x68]
mov ecx, edx
movzx eax, word [eax*2 + 0x5cb088]
and ecx, 7
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
mov eax, dword [edi + 0x68]
shr edx, 3
sub esi, 3
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
cmp eax, dword [edi + 0x5c]
jb 0x401d18
cmp dword [edi + 0x68], 0x13
jae 0x401d9b
jmp 0x401d80
mov eax, dword [edi + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x5cb088]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], 0x13
jb 0x401d80
lea edx, [edi + 0x6c]
lea eax, [edi + 0x530]
mov dword [edx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
lea ecx, [edi + 0x54]
push ecx
push edx
mov dword [ecx], 7
push 0x13
lea edx, [edi + 0x70]
xor ecx, ecx
call fcn.004033d0
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x401dfe
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
mov dword [edi], 0x1d
jmp 0x401408
mov dword [ecx + 0x18], str.too_many_length_or_distance_symbols
mov dword [edi], 0x1d
jmp 0x401408
mov dword [edi + 0x68], 0
mov dword [edi], 0x12
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
add eax, dword [edi + 0x60]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jae 0x402057
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
mov dword [esp + 0x3c], eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x38], eax
cmp ecx, esi
jbe 0x401e81
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebx
add esi, 8
add edx, eax
mov eax, dword [esp + 0x3c]
and eax, edx
dec ebp
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
cmp ecx, esi
ja 0x401e47
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x401eeb
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x3c], ecx
cmp esi, ecx
jae 0x401ec6
jmp 0x401ea0
test ebp, ebp
je 0x402810
movzx edx, byte [ebx]
mov ecx, esi
shl edx, cl
inc ebx
add esi, 8
dec ebp
add dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, dword [esp + 0x3c]
jb 0x401ea0
mov edx, dword [esp + 0x10]
movzx ecx, ah
mov ax, word [esp + 0x3a]
shr edx, cl
sub esi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], esi
mov word [edi + ecx*2 + 0x70], ax
inc dword [edi + 0x68]
mov dword [esp + 0x10], edx
jmp 0x402042
mov cx, word [esp + 0x3a]
cmp cx, 0x10
jne 0x401f61
movzx ecx, ah
mov dword [esp + 0x3c], ecx
lea eax, [ecx + 2]
cmp esi, eax
jae 0x401f2d
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x3c]
inc ebx
add esi, 8
add edx, eax
lea eax, [ecx + 2]
dec ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, eax
jb 0x401f04
mov eax, dword [esp + 0x34]
shr edx, cl
sub esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
test eax, eax
je 0x402080
movzx eax, word [edi + eax*2 + 0x6e]
mov ecx, edx
and ecx, 3
add ecx, 3
shr edx, 2
mov dword [esp + 0x3c], eax
sub esi, 2
jmp 0x40200a
cmp cx, 0x11
movzx ecx, ah
jne 0x401fb6
lea eax, [ecx + 3]
mov dword [esp + 0x18], ecx
cmp esi, eax
jae 0x401f9e
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
inc ebx
add esi, 8
add edx, eax
lea eax, [ecx + 3]
dec ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, eax
jb 0x401f75
shr edx, cl
mov eax, 0xfffffffd
mov ecx, edx
and ecx, 7
add ecx, 3
shr edx, 3
sub eax, dword [esp + 0x18]
jmp 0x402000
lea eax, [ecx + 7]
mov dword [esp + 0x18], ecx
cmp esi, eax
jae 0x401fea
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
inc ebx
add esi, 8
add edx, eax
lea eax, [ecx + 7]
dec ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, eax
jb 0x401fc1
shr edx, cl
mov eax, 0xfffffff9
mov ecx, edx
and ecx, 0x7f
add ecx, 0xb
shr edx, 7
sub eax, dword [esp + 0x18]
add esi, eax
mov dword [esp + 0x3c], 0
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
mov dword [esp + 0x38], ecx
add ecx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
cmp ecx, eax
ja 0x402080
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x402042
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi + 0x68]
mov word [edi + eax*2 + 0x70], bx
inc dword [edi + 0x68]
dec ecx
jne 0x402030
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
add eax, dword [edi + 0x60]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x401e20
cmp dword [edi], 0x1d
je 0x401404
cmp word [edi + 0x270], 0
jne 0x402096
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_code____missing_end_of_block
mov dword [edi], 0x1d
jmp 0x401408
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1d
jmp 0x401408
lea ecx, [edi + 0x6c]
lea eax, [edi + 0x530]
mov dword [ecx], eax
lea edx, [edi + 0x2f0]
push edx
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x54]
push eax
push ecx
push dword [edi + 0x60]
lea edx, [edi + 0x70]
mov ecx, 1
mov dword [eax], 9
call fcn.004033d0
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4020eb
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
mov dword [edi], 0x1d
jmp 0x401408
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], eax
lea eax, [edi + 0x58]
lea edx, [edi + 0x2f0]
push edx
push eax
mov dword [eax], 6
mov eax, dword [edi + 0x60]
push ecx
push dword [edi + 0x64]
add eax, 0x38
mov ecx, 2
lea edx, [edi + eax*2]
call fcn.004033d0
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x402141
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_distances_set
mov dword [edi], 0x1d
jmp 0x401408
cmp dword [esp + 0x4c], 6
mov dword [edi], 0x13
je 0x402810
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov dword [edi], 0x14
cmp ebp, 6
jb 0x4021d2
cmp dword [esp + 0x20], 0x102
jb 0x4021d2
mov eax, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x10], eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x28]
mov dword [edi + 0x3c], esi
call fcn.00402f60
cmp dword [edi], 0xb
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x38]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov esi, dword [edi + 0x3c]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x401408
mov dword [edi + 0x1bc4], 0xffffffff
jmp 0x401408
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
mov dword [edi + 0x1bc4], 0
mov dword [esp + 0x38], ecx
dec eax
mov dword [esp + 0x3c], eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x402239
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebx
add esi, 8
add edx, eax
mov eax, dword [esp + 0x3c]
and eax, edx
dec ebp
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp ecx, esi
ja 0x402203
test al, al
je 0x4022fe
test al, 0xf0
jne 0x4022fe
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov dword [esp + 0x34], ecx
movzx ecx, al
add ecx, edi
mov ebx, 1
shl ebx, cl
mov ecx, edi
mov edx, eax
shr eax, 0x10
dec ebx
and ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
shr ebx, cl
mov ecx, dword [esp + 0x38]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4022e5
test ebp, ebp
je 0x40280c
mov ebx, dword [esp + 0x14]
mov ecx, esi
movzx eax, byte [ebx]
shl eax, cl
inc ebx
mov dword [esp + 0x14], ebx
movzx ebx, dh
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x3e]
movzx ecx, dl
add ecx, ebx
mov edi, 1
shl edi, cl
mov ecx, ebx
add esi, 8
dec ebp
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x402291
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
movzx ecx, dh
mov edx, dword [esp + 0x10]
shr edx, cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr edx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [edi + 0x40], ecx
test al, al
jne 0x40232f
mov dword [edi], 0x19
jmp 0x401404
test al, 0x20
je 0x402348
mov dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x401404
test al, 0x40
je 0x402362
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_literal_length_code
mov dword [edi], 0x1d
jmp 0x401408
movzx eax, al
and eax, 0xf
mov dword [edi + 0x48], eax
mov dword [edi], 0x15
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4023c0
cmp esi, ecx
jae 0x4023a5
lea esp, [esp]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x48]
inc ebx
add esi, 8
add edx, eax
dec ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, ecx
jb 0x402380
mov eax, 1
shl eax, cl
sub esi, ecx
dec eax
and eax, edx
add dword [edi + 0x40], eax
shr edx, cl
add dword [edi + 0x1bc4], ecx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x40]
mov dword [edi + 0x1bc8], eax
mov dword [edi], 0x16
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x38], ecx
dec eax
mov dword [esp + 0x3c], eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x40242c
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x50]
inc ebx
add esi, 8
add edx, eax
mov eax, dword [esp + 0x3c]
and eax, edx
dec ebp
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp ecx, esi
ja 0x4023f6
test al, 0xf0
jne 0x4024e9
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov dword [esp + 0x34], ecx
movzx ecx, al
add ecx, edi
mov ebx, 1
shl ebx, cl
mov ecx, edi
mov edx, eax
shr eax, 0x10
dec ebx
and ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
shr ebx, cl
mov ecx, dword [esp + 0x38]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4024d4
lea esp, [esp]
test ebp, ebp
je 0x40280c
mov ebx, dword [esp + 0x14]
mov ecx, esi
movzx eax, byte [ebx]
shl eax, cl
inc ebx
mov dword [esp + 0x14], ebx
movzx ebx, dh
add dword [esp + 0x10], eax
movzx eax, word [esp + 0x3e]
movzx ecx, dl
add ecx, ebx
mov edi, 1
shl edi, cl
mov ecx, ebx
add esi, 8
dec ebp
dec edi
and edi, dword [esp + 0x10]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x402480
mov edi, dword [esp + 0x30]
movzx ecx, dh
mov edx, dword [esp + 0x10]
shr edx, cl
sub esi, ecx
add dword [edi + 0x1bc4], ecx
mov ebx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
shr edx, cl
sub esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
test al, 0x40
je 0x402521
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_distance_code
mov dword [edi], 0x1d
jmp 0x401408
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
mov dword [edi], 0x17
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x402587
cmp esi, ecx
jae 0x402568
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x48]
inc ebx
add esi, 8
add edx, eax
dec ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
cmp esi, ecx
jb 0x402543
mov eax, 1
shl eax, cl
sub esi, ecx
mov dword [esp + 0x18], esi
dec eax
and eax, edx
add dword [edi + 0x44], eax
shr edx, cl
add dword [edi + 0x1bc4], ecx
mov dword [esp + 0x10], edx
mov dword [edi], 0x18
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x402810
mov eax, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [edi + 0x44]
cmp ecx, eax
jbe 0x4025f4
sub ecx, eax
cmp ecx, dword [edi + 0x2c]
jbe 0x4025cc
cmp dword [edi + 0x1bc0], 0
je 0x4025cc
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
mov dword [edi], 0x1d
jmp 0x401408
mov eax, dword [edi + 0x30]
cmp ecx, eax
jbe 0x4025df
sub ecx, eax
mov eax, dword [edi + 0x34]
add eax, dword [edi + 0x28]
sub eax, ecx
jmp 0x4025e7
mov eax, dword [edi + 0x34]
sub eax, ecx
add eax, dword [edi + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x40]
cmp ecx, eax
jbe 0x402603
jmp 0x402601
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x40]
mov ecx, eax
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
cmova ecx, ebx
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0x40], eax
mov edi, dword [esp + 0x24]
sub ebx, edi
mov al, byte [ebx + edi]
mov byte [edi], al
inc edi
dec ecx
jne 0x402621
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x40], 0
jne 0x401408
mov dword [edi], 0x14
jmp 0x401408
cmp dword [esp + 0x20], 0
je 0x402810
mov ebx, dword [esp + 0x24]
mov al, byte [edi + 0x40]
inc dword [esp + 0x24]
dec dword [esp + 0x20]
mov byte [ebx], al
mov ebx, dword [esp + 0x14]
mov dword [edi], 0x14
jmp 0x401408
cmp dword [edi + 8], 0
je 0x402767
cmp esi, 0x20
jae 0x4026bb
lea esp, [esp]
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x20
jb 0x402690
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x40270d
cmp dword [edi + 0x10], 0
push eax
je 0x4026ee
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
push eax
push dword [edi + 0x18]
call fcn.00402a10
add esp, 0xc
jmp 0x4026ff
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.00402d00
add esp, 4
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov ecx, edx
jne 0x402740
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
cmp ecx, dword [edi + 0x18]
je 0x40275b
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.incorrect_data_check
mov dword [edi], 0x1d
jmp 0x401408
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [edi], 0x1b
cmp dword [edi + 8], 0
je 0x4027f2
cmp dword [edi + 0x10], 0
je 0x4027f2
cmp esi, 0x20
jae 0x4027a7
mov edi, edi
test ebp, ebp
je 0x402810
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
inc ebx
dec ebp
add edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
cmp esi, 0x20
jb 0x402780
cmp edx, dword [edi + 0x1c]
je 0x4027e8
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1d
jmp 0x401408
mov eax, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x10], eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [edi + 0x3c], esi
pop esi
pop ebp
pop ebx
mov dword [edi + 0x38], edx
mov eax, 2
pop edi
add esp, 0x34
ret
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [edi], 0x1c
mov dword [esp + 0x2c], 1
jmp 0x402810
mov dword [esp + 0x2c], 0xfffffffd
jmp 0x402810
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], ebp
cmp dword [edi + 0x28], 0
mov ebp, dword [esp + 0x28]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], esi
jne 0x402849
cmp dword [edi], 0x1a
jge 0x402869
cmp ebp, dword [ebx + 0x10]
je 0x402869
mov edx, ebp
mov ecx, ebx
call fcn.00401200
test eax, eax
je 0x402869
mov dword [edi], 0x1e
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffc
pop edi
add esp, 0x34
ret
mov eax, dword [esp + 0x40]
sub eax, dword [ebx + 4]
sub ebp, dword [ebx + 0x10]
add dword [ebx + 8], eax
add dword [ebx + 0x14], ebp
add dword [edi + 0x1c], ebp
cmp dword [edi + 8], 0
mov dword [esp + 0x40], eax
je 0x4028ba
test ebp, ebp
je 0x4028ba
cmp dword [edi + 0x10], 0
mov edx, dword [ebx + 0xc]
je 0x4028a6
sub edx, ebp
jne 0x40289b
xor eax, eax
jmp 0x4028b4
mov ecx, dword [edi + 0x18]
push ebp
call fcn.00402a30
jmp 0x4028b1
mov ecx, dword [edi + 0x18]
push ebp
sub edx, ebp
call fcn.00402d00
add esp, 4
mov dword [edi + 0x18], eax
mov dword [ebx + 0x30], eax
mov edx, dword [edi]
cmp edx, 0x13
je 0x4028ca
cmp edx, 0xe
je 0x4028ca
xor esi, esi
jmp 0x4028cf
mov esi, 0x100
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp edx, 0xb
mov dword [esp + 0x48], 0x80
cmove eax, dword [esp + 0x48]
add ecx, esi
add eax, ecx
add eax, dword [edi + 0x3c]
cmp dword [esp + 0x40], 0
mov dword [ebx + 0x2c], eax
jne 0x402900
test ebp, ebp
je 0x402907
cmp dword [esp + 0x4c], 4
jne 0x40291d
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
mov ecx, 0xfffffffb
test eax, eax
pop ebx
cmove eax, ecx
pop edi
add esp, 0x34
ret
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret