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

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], edi
call fcn.004125b6
test eax, eax
jne case.default.0x4128f6
xor esi, esi
cmp dword [edi + 0xc], esi
je case.default.0x4128f6
cmp dword [edi], esi
jne 0x4128a5
cmp dword [edi + 4], esi
jne case.default.0x4128f6
mov ebp, dword [edi + 0x1c]
cmp dword [ebp + 4], 0x3f3f
jne 0x4128b8
mov dword [ebp + 4], 0x3f40
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
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], esi
jmp 0x412f7e
jmp dword [eax*4 + 0x413dab]
cmp dword [ebp + 0xc], 0
jne 0x41290f
mov dword [ebp + 4], 0x3f40
jmp 0x412f7e
push 0x10
pop eax
cmp ebx, eax
jae 0x41294d
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x41291a
test byte [ebp + 0xc], 2
je 0x4129aa
cmp edx, 0x8b1f
jne 0x4129aa
cmp dword [ebp + 0x28], esi
jne 0x412967
mov dword [ebp + 0x28], 0xf
push esi
xor edx, edx
xor ecx, ecx
call fcn.00497e8e
push 0x1f
pop ecx
mov byte [esp + 0x28], cl
lea edx, [esp + 0x28]
push 2
mov ecx, eax
mov dword [ebp + 0x1c], eax
mov byte [esp + 0x2d], 0x8b
call fcn.00497e8e
pop ecx
mov edx, esi
mov dword [ebp + 0x1c], eax
mov ebx, esi
mov dword [esp + 0x18], edx
pop ecx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 4], 0x3f35
jmp 0x412f7a
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x14], esi
test eax, eax
je 0x4129b8
or dword [eax + 0x30], 0xffffffff
test byte [ebp + 0xc], 1
je 0x412a6d
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 0x412a6d
mov eax, edx
and al, 0xf
cmp al, 8
je 0x4129fd
mov dword [edi + 0x18], 0x6d269c
mov dword [ebp + 4], 0x3f51
jmp 0x412f7a
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 + 0x28], esi
jne 0x412a1b
mov dword [ebp + 0x28], ecx
cmp ecx, 0xf
ja 0x412a64
cmp ecx, dword [ebp + 0x28]
ja 0x412a64
xor eax, eax
xor edx, edx
inc eax
shl eax, cl
xor ecx, ecx
push esi
mov dword [ebp + 0x18], eax
call fcn.0041022a
mov edx, dword [esp + 0x18]
mov ebx, esi
shr edx, 8
not edx
mov dword [ebp + 0x1c], eax
and edx, 2
mov dword [edi + 0x30], eax
or edx, 0x3f3d
mov dword [ebp + 4], edx
mov edx, esi
pop ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x412f7a
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x4129f1
mov dword [edi + 0x18], str.incorrect_header_check
jmp 0x4129f1
push 0x10
pop eax
cmp ebx, eax
jae 0x412ab7
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x412a84
mov dword [ebp + 0x14], edx
cmp dl, 8
je 0x412ad2
mov dword [edi + 0x18], str.unknown_compression_method
mov dword [ebp + 4], 0x3f51
jmp 0x412f7e
test edx, 0xe000
je 0x412ae3
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x412ac6
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x412af4
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebp + 0x14], 0x200
je 0x412b20
test byte [ebp + 0xc], 4
je 0x412b20
mov ecx, dword [ebp + 0x1c]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.00497e8e
pop ecx
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov edx, esi
mov dword [esp + 0x14], edx
mov ebx, esi
mov dword [ebp + 4], 0x3f36
cmp ebx, 0x20
jae 0x412b6b
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x412b3c
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412b75
mov dword [eax + 4], edx
test dword [ebp + 0x14], 0x200
je 0x412bb3
test byte [ebp + 0xc], 4
je 0x412bb3
mov ecx, dword [ebp + 0x1c]
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.00497e8e
pop ecx
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov edx, esi
mov dword [esp + 0x14], edx
mov ebx, esi
mov dword [ebp + 4], 0x3f37
push 0x10
pop eax
cmp ebx, eax
jae 0x412c00
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x412bd1
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x412c18
movzx eax, dl
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebp + 0x24]
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [ebp + 0x14], 0x200
je 0x412c44
test byte [ebp + 0xc], 4
je 0x412c44
mov ecx, dword [ebp + 0x1c]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.00497e8e
pop ecx
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov edx, esi
mov ebx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 4], 0x3f38
test dword [ebp + 0x14], 0x400
je 0x412ce3
push 0x10
pop eax
cmp ebx, eax
jae 0x412c9e
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x412c6f
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x44], edx
test eax, eax
je 0x412cab
mov dword [eax + 0x14], edx
test dword [ebp + 0x14], 0x200
je 0x412cd7
test byte [ebp + 0xc], 4
je 0x412cd7
mov ecx, dword [ebp + 0x1c]
mov byte [esp + 0x24], dl
shr edx, 8
mov byte [esp + 0x25], dl
lea edx, [esp + 0x24]
push 2
call fcn.00497e8e
pop ecx
mov dword [ebp + 0x1c], eax
mov ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
jmp 0x412ced
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412ced
mov dword [eax + 0x10], esi
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], 0x3f39
test dword [ebp + 0x14], 0x400
je 0x412d89
mov esi, dword [ebp + 0x44]
cmp esi, ecx
cmova esi, ecx
test esi, esi
je 0x412d7e
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x412d4d
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x412d4d
mov edx, dword [ecx + 0x14]
sub edx, dword [ebp + 0x44]
mov ecx, dword [ecx + 0x18]
lea eax, [esi + edx]
cmp eax, ecx
jbe 0x412d37
sub ecx, edx
jmp 0x412d39
mov ecx, esi
mov eax, dword [esp + 0x3c]
push ecx
push dword [esp + 0x1c]
add eax, edx
push eax
call fcn.005b5a50
add esp, 0xc
test dword [ebp + 0x14], 0x200
je 0x412d6d
test byte [ebp + 0xc], 4
je 0x412d6d
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.00497e8e
pop ecx
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x10]
add dword [esp + 0x18], esi
sub ecx, esi
sub dword [ebp + 0x44], esi
mov dword [esp + 0x10], ecx
xor esi, esi
cmp dword [ebp + 0x44], esi
jne 0x413c83
mov dword [ebp + 0x44], esi
mov dword [ebp + 4], 0x3f3a
test dword [ebp + 0x14], 0x800
je 0x412e21
test ecx, ecx
je 0x413c83
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
movzx eax, byte [esi + edx]
inc esi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412ddd
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x412dd9
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x20]
jae 0x412dd9
mov eax, dword [esp + 0x38]
mov byte [edx + ecx], al
inc dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x412de9
cmp esi, edi
jb 0x412db0
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x2c]
je 0x412e0d
test byte [ebp + 0xc], 4
je 0x412e0d
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.00497e8e
pop ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x1c], eax
sub dword [esp + 0x10], esi
add dword [esp + 0x18], esi
test ecx, ecx
jne 0x413c83
xor esi, esi
jmp 0x412e2b
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412e2b
mov dword [eax + 0x1c], esi
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x44], esi
mov dword [ebp + 4], 0x3f3b
test dword [ebp + 0x14], 0x1000
je 0x412ec7
test ecx, ecx
je 0x413c83
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
movzx eax, byte [esi + edx]
inc esi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412e83
mov edx, dword [eax + 0x24]
test edx, edx
je 0x412e7f
mov ecx, dword [ebp + 0x44]
cmp ecx, dword [eax + 0x28]
jae 0x412e7f
mov eax, dword [esp + 0x38]
mov byte [edx + ecx], al
inc dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x412e8f
cmp esi, edi
jb 0x412e56
test dword [ebp + 0x14], 0x200
mov edi, dword [esp + 0x2c]
je 0x412eb3
test byte [ebp + 0xc], 4
je 0x412eb3
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.00497e8e
pop ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x1c], eax
sub dword [esp + 0x10], esi
add dword [esp + 0x18], esi
test ecx, ecx
jne 0x413c83
xor esi, esi
jmp 0x412ed1
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412ed1
mov dword [eax + 0x24], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], 0x3f3c
test dword [ebp + 0x14], 0x200
je 0x412f43
jmp 0x412f18
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
push 0x10
pop eax
cmp ebx, eax
jb 0x412eeb
test byte [ebp + 0xc], 4
je 0x412f39
movzx eax, word [ebp + 0x1c]
cmp edx, eax
je 0x412f39
mov dword [edi + 0x18], str.header_crc_mismatch
jmp 0x4129f1
mov ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x412f5e
mov eax, dword [ebp + 0x14]
xor edx, edx
sar eax, 9
inc edx
and eax, edx
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 0x30], edx
push esi
xor edx, edx
xor ecx, ecx
call fcn.00497e8e
mov dword [ebp + 0x1c], eax
mov dword [edi + 0x30], eax
pop ecx
mov dword [ebp + 4], 0x3f3f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 4]
sub eax, 0x3f34
cmp eax, 0x1e
jbe switch.0x004128f6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
cmp ebx, 0x20
jb 0x412f9a
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 + 0x1c], eax
mov edx, esi
mov dword [edi + 0x30], eax
mov ebx, esi
mov dword [esp + 0x14], edx
mov dword [ebp + 4], 0x3f3e
cmp dword [ebp + 0x10], esi
je 0x413c46
push esi
xor edx, edx
xor ecx, ecx
call fcn.0041022a
mov edx, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x1c], eax
mov dword [edi + 0x30], eax
mov dword [ebp + 4], 0x3f3f
cmp dword [ebp + 8], esi
je 0x413076
mov ecx, ebx
mov dword [ebp + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub ebx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x412f7a
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
cmp ebx, 3
jb 0x41304d
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebp + 8], eax
mov eax, edx
and eax, 3
sub eax, esi
je 0x4130db
sub eax, 1
je 0x4130b6
sub eax, 1
je 0x4130ad
sub eax, 1
jne 0x4130e2
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebp + 4], 0x3f51
jmp 0x4130e2
mov dword [ebp + 4], 0x3f44
jmp 0x4130e2
mov dword [ebp + 0x50], 0x6b5650
mov dword [ebp + 0x58], 9
mov dword [ebp + 0x54], 0x6b5e50
mov dword [ebp + 0x5c], 5
mov dword [ebp + 4], 0x3f47
jmp 0x4130e2
mov dword [ebp + 4], 0x3f41
shr edx, 2
sub ebx, 3
jmp 0x412a57
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jae 0x41313c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test esi, esi
je 0x413c83
movzx eax, byte [ecx]
dec esi
mov ecx, ebx
mov dword [esp + 0x10], esi
shl eax, cl
add ebx, 8
mov ecx, dword [esp + 0x18]
add edx, eax
inc ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x41310b
xor esi, esi
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x413156
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x4129f1
mov edx, esi
mov dword [ebp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov ebx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 4], 0x3f42
mov dword [ebp + 4], 0x3f43
mov esi, dword [ebp + 0x44]
test esi, esi
je 0x4131c9
cmp esi, ecx
cmova esi, ecx
cmp esi, dword [esp + 0x20]
cmova esi, dword [esp + 0x20]
test esi, esi
je 0x413c83
push esi
push dword [esp + 0x1c]
push dword [esp + 0x30]
call fcn.005b5a50
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add dword [esp + 0x18], esi
sub ecx, esi
sub dword [esp + 0x20], esi
add dword [esp + 0x28], esi
sub dword [ebp + 0x44], esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
xor esi, esi
jmp 0x412f7e
mov dword [ebp + 4], 0x3f3f
jmp 0x4131c2
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
cmp ebx, 0xe
jb 0x4131d2
mov eax, edx
sub ebx, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [esp + 0x1c], ebx
mov dword [ebp + 0x64], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebp + 0x68], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [esp + 0x14], edx
cmp dword [ebp + 0x64], 0x11e
mov dword [ebp + 0x60], eax
ja 0x413250
cmp dword [ebp + 0x68], 0x1e
ja 0x413250
mov dword [ebp + 0x6c], esi
mov dword [ebp + 4], 0x3f45
jmp case.0x4128f6.16197
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x412ac6
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
cmp ebx, 3
jb 0x41325c
mov eax, dword [ebp + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [esp + 0x14], edx
movzx eax, word [eax*2 + 0x6b5ed0]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
sub ebx, 3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x60]
jb 0x413285
jmp 0x4132d3
mov eax, dword [ebp + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x6b5ed0]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0x13
jb 0x4132be
lea eax, [ebp + 0x534]
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x50], eax
mov dword [ecx], eax
lea edx, [ebp + 0x58]
lea eax, [ebp + 0x2f4]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea edx, [ebp + 0x74]
xor ecx, ecx
call fcn.00413e5f
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x413323
mov dword [edi + 0x18], str.invalid_code_lengths_set
mov dword [ebp + 4], 0x3f51
jmp 0x412f76
mov dword [ebp + 0x6c], esi
mov dword [ebp + 4], 0x3f46
jmp case.0x4128f6.16198
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413c83
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 + 0x58]
xor edx, edx
mov eax, dword [ebp + 0x50]
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 0x413332
mov edx, eax
push 0x10
shr edx, 0x10
pop ecx
cmp dx, cx
jae 0x4133a7
shr eax, 8
movzx ecx, al
shr dword [esp + 0x14], cl
sub ebx, ecx
mov word [ebp + esi*2 + 0x74], dx
inc dword [ebp + 0x6c]
mov dword [esp + 0x1c], ebx
jmp case.0x4128f6.16198
jne 0x41341c
mov ecx, eax
shr ecx, 8
movzx esi, cl
add esi, 2
jmp 0x4133dd
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x413c83
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, esi
jb 0x4133b6
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 0x413514
movzx eax, word [ebp + eax*2 + 0x72]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [esp + 0x38], eax
sub ebx, 2
jmp 0x4134cd
cmp word [esp + 0x3a], 0x11
mov edx, dword [esp + 0x14]
movzx ecx, ah
jne 0x413478
lea esi, [ecx + 3]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x413467
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413c83
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, esi
jb 0x413436
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x4134c3
lea esi, [ecx + 7]
mov dword [esp + 0x38], ecx
cmp ebx, esi
jae 0x4134b4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413c83
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, esi
jb 0x413483
mov ecx, dword [esp + 0x38]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [esp + 0x3c], 0
pop eax
sub eax, ecx
add ebx, eax
mov ecx, dword [ebp + 0x68]
mov eax, dword [esp + 0x3c]
add ecx, dword [ebp + 0x64]
add eax, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp eax, ecx
ja 0x413529
test esi, esi
je case.0x4128f6.16198
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0x6c]
mov word [ebp + eax*2 + 0x74], cx
inc dword [ebp + 0x6c]
sub esi, 1
jne 0x4134ed
mov eax, dword [ebp + 0x68]
add eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0x6c]
mov dword [esp + 0x3c], esi
cmp esi, eax
jb 0x41335a
jmp 0x413537
mov dword [edi + 0x18], 0x6d278c
mov dword [ebp + 4], 0x3f51
xor esi, esi
jmp 0x412f7a
mov dword [edi + 0x18], str.invalid_bit_length_repeat
mov dword [ebp + 4], 0x3f51
xor esi, esi
cmp dword [ebp + 4], 0x3f51
je 0x412f76
cmp word [ebp + 0x274], si
jne 0x41355b
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x413317
lea eax, [ebp + 0x534]
lea esi, [ebp + 0x70]
mov dword [ebp + 0x50], eax
mov dword [esi], eax
lea ecx, [ebp + 0x58]
lea eax, [ebp + 0x2f4]
mov dword [ecx], 9
push eax
push ecx
push esi
push dword [ebp + 0x64]
xor ecx, ecx
lea edx, [ebp + 0x74]
inc ecx
call fcn.00413e5f
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x4135a4
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], str.invalid_literal_lengths_set
jmp 0x41351b
mov eax, dword [esi]
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x2f4]
push eax
mov eax, dword [ebp + 0x64]
push ecx
push esi
push dword [ebp + 0x68]
lea edx, [eax*2 + 0x74]
mov dword [ecx], 6
push 2
add edx, ebp
pop ecx
call fcn.00413e5f
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x30], eax
test eax, eax
je 0x4135f3
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x412ac6
mov dword [ebp + 4], 0x3f47
mov dword [ebp + 4], 0x3f48
cmp ecx, 6
jb 0x41367b
mov eax, dword [esp + 0x20]
cmp eax, 0x102
jb 0x41367b
mov ecx, dword [esp + 0x28]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ecx
mov ecx, edi
mov dword [edi], eax
mov dword [ebp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x40], ebx
call fcn.004121a2
cmp dword [ebp + 4], 0x3f3f
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jne 0x412f7e
or dword [ebp + 0x1bc8], 0xffffffff
jmp 0x412f7e
mov ecx, dword [ebp + 0x58]
xor eax, eax
inc eax
mov dword [ebp + 0x1bc8], esi
mov esi, dword [ebp + 0x50]
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 0x4136ee
mov esi, dword [esp + 0x10]
test esi, esi
je 0x413c83
mov eax, dword [esp + 0x18]
mov ecx, ebx
dec esi
add ebx, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp + 0x58]
add edx, eax
inc dword [esp + 0x18]
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x14], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
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 0x4136a2
test al, al
je 0x4137ad
test al, 0xf0
jne 0x4137ad
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 0x413798
mov esi, dword [esp + 0x10]
test esi, esi
je 0x413c83
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 0x41373f
mov edi, dword [esp + 0x2c]
movzx ecx, dh
mov edx, dword [esp + 0x14]
shr edx, cl
sub ebx, ecx
mov dword [ebp + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc8], 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 + 0x44], ecx
test al, al
jne 0x4137df
mov dword [ebp + 4], 0x3f4d
jmp 0x413522
test al, 0x20
je 0x4137f6
or dword [ebp + 0x1bc8], 0xffffffff
mov dword [ebp + 4], 0x3f3f
jmp 0x413522
mov ecx, dword [esp + 0x10]
test al, 0x40
je 0x413811
mov dword [edi + 0x18], str.invalid_literal_length_code
mov dword [ebp + 4], 0x3f51
jmp 0x4131c2
movzx eax, al
and eax, 0xf
mov dword [ebp + 4], 0x3f49
mov dword [ebp + 0x4c], eax
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x413879
cmp ebx, esi
jae 0x41385a
mov edi, dword [esp + 0x18]
test ecx, ecx
je 0x413c83
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 0x413830
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 + 0x44], eax
add dword [ebp + 0x1bc8], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x1bcc], eax
mov dword [ebp + 4], 0x3f4a
mov ecx, dword [ebp + 0x5c]
xor eax, eax
mov esi, dword [ebp + 0x54]
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 0x4138f7
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x413c83
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
dec esi
mov ecx, dword [ebp + 0x5c]
add edx, eax
mov eax, dword [ebp + 0x54]
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 0x4138ae
test al, 0xf0
jne 0x4139aa
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 + 0x54]
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 0x413999
mov esi, dword [esp + 0x10]
test esi, esi
je 0x413c83
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 + 0x54]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, ebx
ja 0x413940
movzx ecx, dh
mov edx, dword [esp + 0x14]
sub ebx, ecx
shr edx, cl
add dword [ebp + 0x1bc8], ecx
mov edi, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebp + 0x1bc8], ecx
sub ebx, ecx
shr edx, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
test al, 0x40
je 0x4139d8
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x41351b
mov ecx, eax
mov dword [ebp + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebp + 0x48], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x4c], eax
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x413a49
jmp 0x413a26
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
cmp ebx, esi
jb 0x4139fd
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 + 0x48], eax
add dword [ebp + 0x1bc8], esi
mov dword [esp + 0x14], edx
mov dword [ebp + 4], 0x3f4c
xor esi, esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [ebp + 0x48]
cmp ecx, eax
jbe 0x413aa6
sub ecx, eax
cmp ecx, dword [ebp + 0x30]
jbe 0x413a86
cmp dword [ebp + 0x1bc4], esi
je 0x413a86
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x4129f1
mov esi, dword [ebp + 0x38]
cmp ecx, dword [ebp + 0x34]
jbe 0x413a98
sub ecx, dword [ebp + 0x34]
add esi, dword [ebp + 0x2c]
sub esi, ecx
jmp 0x413a9d
sub esi, ecx
add esi, dword [ebp + 0x34]
mov eax, dword [ebp + 0x44]
cmp ecx, eax
jbe 0x413ab1
jmp 0x413aaf
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 0x44]
sub esi, 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 + 0x44], eax
sub esi, edx
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x413ac9
xor esi, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
cmp dword [ebp + 0x44], esi
jne 0x412f7a
mov dword [ebp + 4], 0x3f48
jmp 0x412f7a
cmp dword [esp + 0x20], 0
je 0x413c83
mov edi, dword [esp + 0x28]
mov al, byte [ebp + 0x44]
inc dword [esp + 0x28]
dec dword [esp + 0x20]
mov byte [edi], al
mov edi, dword [esp + 0x2c]
mov dword [ebp + 4], 0x3f48
jmp 0x412f7e
cmp dword [ebp + 0xc], esi
je 0x413bf4
jmp 0x413b57
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x413b2a
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x20]
add dword [edi + 0x14], eax
add dword [ebp + 0x20], eax
test byte [ebp + 0xc], 4
je 0x413b9a
test eax, eax
je 0x413b9a
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x1c]
sub edx, eax
push eax
cmp dword [ebp + 0x14], esi
je 0x413b8a
call fcn.00497e8e
jmp 0x413b8f
call fcn.0041022a
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x1c], eax
pop ecx
mov dword [edi + 0x30], eax
test byte [ebp + 0xc], 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
je 0x413be4
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 ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebp + 0x14], esi
cmovne ecx, edx
cmp ecx, dword [ebp + 0x1c]
je 0x413be4
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x4129f1
mov ecx, dword [esp + 0x10]
mov edx, esi
mov ebx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [ebp + 4], 0x3f4f
cmp dword [ebp + 0xc], esi
je 0x413c70
cmp dword [ebp + 0x14], esi
je 0x413c70
jmp 0x413c30
test ecx, ecx
je 0x413c83
mov eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esp + 0x10]
add edx, eax
inc dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jb 0x413c07
cmp edx, dword [ebp + 0x20]
je 0x413c6a
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x4129f1
mov eax, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], ebx
push 2
jmp 0x412f91
mov dword [esp + 0x14], esi
mov ebx, esi
mov dword [ebp + 4], 0x3f50
xor eax, eax
inc eax
jmp 0x413c7f
push 0xfffffffffffffffd
pop eax
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x34]
mov dword [esi], ecx
mov dword [ebp + 0x40], ebx
xor ebx, ebx
mov dword [ebp + 0x3c], eax
cmp dword [ebp + 0x2c], ebx
jne 0x413cd5
cmp edi, dword [esi + 0x10]
je 0x413cf8
cmp dword [ebp + 4], 0x3f51
jge 0x413cf8
cmp dword [ebp + 4], 0x3f4e
jl 0x413cd5
cmp dword [esp + 0x44], 4
je 0x413cf8
mov edx, dword [esi + 0xc]
mov eax, edi
sub eax, dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.004127ad
pop ecx
test eax, eax
je 0x413cf8
mov dword [ebp + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x412f91
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 + 0x20], edi
test byte [ebp + 0xc], 4
mov dword [esp + 0x40], edx
je 0x413d3e
test edi, edi
je 0x413d3e
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp + 0x1c]
sub edx, edi
push edi
cmp dword [ebp + 0x14], ebx
je 0x413d2e
call fcn.00497e8e
jmp 0x413d33
call fcn.0041022a
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x1c], eax
pop ecx
mov dword [esi + 0x30], eax
cmp dword [ebp + 4], 0x3f47
je 0x413d50
cmp dword [ebp + 4], 0x3f42
jne 0x413d55
mov ebx, 0x100
mov ecx, dword [ebp + 8]
neg ecx
mov dword [esp + 0x40], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebp + 4], 0x3f3f
cmove eax, dword [esp + 0x40]
add ecx, eax
add ecx, dword [ebp + 0x40]
add ecx, ebx
mov dword [esi + 0x2c], ecx
test edx, edx
jne 0x413d87
test edi, edi
je 0x413d8e
cmp dword [esp + 0x44], 4
jne 0x413d9f
mov eax, dword [esp + 0x30]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x412f92
mov eax, dword [esp + 0x30]
jmp 0x412f92